Question

Office 365 IFS SMTP - APPS9

  • 19 November 2020
  • 7 replies
  • 66 views

Badge +3

Hi,

I’m trying to move our SMTP from our on premise exchange to O365… 

 

I’m trying to use smtp.outlook365 as the SMTP host, ive tried port 25 and 587 but nothing works..

someone mentioned that they used a mail.protection.outlook.com host and port 25 which sort of works for internal addresses but i still cant send external…

has anyone successfully got this working? what settings have you used?

 

Thanks,

Mick.


7 replies

Userlevel 4
Badge +7

Hi @MickD ,

What exactly is the error that you see in the application messages? Office 365 outbound emails would need to use “smtp.office365.com” as the SMTP_HOST and should have “USE_TLS” checked. your “USER_NAME” and “DEFAULT_MAIL_SENDER” should both map to a valid O365 account with “PERFORM_SMTP_AUTH” checked. 

One thing to note is that O365 will not allow this account to relay email for other senders. So the “FROM” address for your email notifications should always match the address defined in “USER_NAME”.

Cheers



 

Userlevel 3
Badge +6

We migrated to O365 from on prem Exchange a little while back and have it working nicely.

Config below.

Our mail is set to only work with an authenticated account, so we have an Exchange account exclusively to allow IFS to send emails i.e. we don’t allow anonymous sending.

 

Badge +3

Hi @MickD ,

What exactly is the error that you see in the application messages? Office 365 outbound emails would need to use “smtp.office365.com” as the SMTP_HOST and should have “USE_TLS” checked. your “USER_NAME” and “DEFAULT_MAIL_SENDER” should both map to a valid O365 account with “PERFORM_SMTP_AUTH” checked. 

One thing to note is that O365 will not allow this account to relay email for other senders. So the “FROM” address for your email notifications should always match the address defined in “USER_NAME”.

Cheers



 

Sajith,

Thanks for your reply.

If I configure our mail sender like this then nothing happens, no error ( that I can see ? ), then when I change it back to our on premise exchange server all the emals that I sent will then be delivered..

One thing that may be an issue, currently we haven’t got SSL enabled on either of our environments, does this need to be enabled for this to work?

Mick.

Badge +3

We migrated to O365 from on prem Exchange a little while back and have it working nicely.

Config below.

Our mail is set to only work with an authenticated account, so we have an Exchange account exclusively to allow IFS to send emails i.e. we don’t allow anonymous sending.

 

Garak,

Thanks for your reply.

As per my reply to Sajith if I configure the mail sender like this then nothing happens, no error the Emails just aren’t sent, then when I configure it to use our on site exchange server then all the emails get delivered.. also as mentioned could it be the SSL that is the issue?

Thanks,

Mick.

Userlevel 4
Badge +7

Hi @MickD ,

Quite strange that you are not seeing anything in the Application Messages? Do all the messages go in to the status Finished/Transferred? If there is an error with the message they should go in to Waiting and eventually Error. 

Not having SSL in your apps environment shouldn't really cause any issues as far as i can see but probably worth checking up on. If that is the case, you should most probably see some sort of an SSL related error in the Application messages though. 

 

Cheers. 

Badge +3

Hi @MickD ,

Quite strange that you are not seeing anything in the Application Messages? Do all the messages go in to the status Finished/Transferred? If there is an error with the message they should go in to Waiting and eventually Error. 

Not having SSL in your apps environment shouldn't really cause any issues as far as i can see but probably worth checking up on. If that is the case, you should most probably see some sort of an SSL related error in the Application messages though. 

 

Cheers. 

Thanks for your reply.

I couldn’t remember what the status was ( if any ) so i retried… and get the following error ( stopped at a Waiting Status )

Error while sending data...

Caused by: com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:0A007581, 1.36674:01000000, 1.61250:00000000, 1.45378:02000000, 1.44866:00000000, 1.36674:7A000000, 1.61250:00000000, 1.45378:05000000, 1.44866:00140000, 1.36674:0A000000, 1.61250:00000000, 1.45378:16000000, 1.44866:64210000, 1.36674:0E000000, 1.61250:00000000, 1.45378:7D210000, 1.44866:FE010000, 16.55847:51100000, 17.43559:0000000030020000000000000200000000000000, 20.52176:140F058E1E00F01F1F001432, 20.50032:140F058E8E17F01F07000000, 0.35180:1F000130, 255.23226:FB230000, 255.27962:7A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:35000000, 0.35250:0A001336, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:22000000, 1.36674:32000000, 1.61250:00000000, 1.45378:27000000, 1.44866:01000000, 16.55847:8E000000, 17.43559:00000000A0030000000000000000000000000000, 20.52176:140F058E1E0010106E000000, 20.50032:140F058E8E170000A2240000, 0.35180:73000000, 255.23226:0A001380, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:D8240000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:09250000, 0.38698:20000000, 0.37692:01000000, 0.44092:0F010480, 0.41232:01000000, 0.60208:0F010480, 0.37136:0F010480, 0.34608:0F010480, 0.55056:01000000, 0.42768:00000000, 0.56112:0B000000, 0.52807:00000000, 7.36354:010000000000010900000000, 4.33016:DC040000, 7.40748:010000000000010B00000000, 7.57132:00000000000000000A000000, 1.63016:32000000, 4.39640:DC040000, 8.45434:4B781A1BEEE3F849803FD70DDDEF04A200000000, 5.10786:0000000031352E32302E333538392E3033303A43574C503132334D42323432303A39646463373536352D383335662D343665392D393237652D3564376533393335363365350000109C000000, 7.51330:6CD9E2784E90D80822010000, 0.39570:08000000, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002

 

I’ve checked the username and password and these are definitely correct..

I’ll continue to look at this.

 

Thanks,

Mick.

 

Userlevel 4
Badge +7

Hi @MickD ,

If i’m not mistaken this is caused by having the sender address in your email notification different from the account you are using in the Connect sender. 

One way to work around this would be to make sure that you always have a single sender for any emails going out of the system. I.e. If you are using “ifsadmin@mydomain.com” as your email user in your connect sender, assign the same address to the IFSADMIN user account as its email address. Then you use IFSADMIN in the FROM field in all your email events so that the from email address will always be “ifsadmin@mydomain.com”

Cheers

Reply