Hello Connections,
Need your help in resolving the below issue in IBMi system.
Our requirement - The user in AS400 has to authenticate the external SMTP server and post successful authentication, then only it will deliver the email to recipients.
We have already configured user (QSECOFR) Through I Navigator using the below path, Network -> Server -> TCP/IP Servers -> SMTP -> SMTP properties -> Authentication, added QSECOFR profile authentication details with the SMTP (SMTP hostname, User ID and Password).
Using QSECOFR, we are able to send emails successfully from AS400 with SNDDST and SNDSMTPEMM and it delivers to recipients as well.
Now, we want similar functionality for other users in AS400 for the same SMTP hostname to execute, but since same hostname (duplicate entry is not allowed) cannot be added into authentication method from I-Navigator - we have followed the remote login entry method
We have added an additional user (i.e., HAADMIN) into remote login entry (using ADDSMTPRLE) with authentication to the external SMTP host server, so that it can authorize at SMTP server level and send emails to recipients.
When email sent from HAADMIN user, its not getting delivered to recipients.
But when we send it from QSECOFR, the emails are getting delivered.
Upon checking the external SMTP server logs, We see the Authorization Account and Mail Account are different.
Ex:- In As400, Emails sent from HAADMIN profile. But in the SMTP server logs, below are the details.
Authorization Account : QSECOFR.CNJDEPR@bp365test.bp.com.cn (Even though we sent email from HAADMIN profile, not sure how QSECOFR.CNJDEPR@bp365test.bp.com.cn profile is getting authrorized here instead of HAADMIN.CNJDEPR@bp365test.bp.com.cn - please let us know where to change this?).
Mail Account : haadmin.cnjdepr@bp365test.bp.com.cn
Scenario1:- If mail sent from user QSECOFR then both Authorization Account and Mail account should be qsecofr.cnjdepr@bp365test.bp.com.cn
Scenario2:- If mail sent from user HAADMIN then both Authorization Account and Mail account should be haadmin.cnjdepr@bp365test.bp.com.cn
Upon checking with SMTP server Team, they have informed us that when a email is sent from HAADMIN profile then both the Authorization Account and Mail account should be same haadmin.cnjdepr@bp365test.bp.com.cn in order to deliver the emails to end users.
In the above case, both are different, that's why the email delivery is not happening..
When sent from QSECOFR, we don't have any issue at all as both Authorization and Mail account are qsecofr.cnjdepr@bp365test.bp.com.cn
So could you please check and advise...
Thank in advance..
------------------------------
Manoj Nahak
------------------------------