Windows 2016 smtp relay server for Office 365

We build a windows 2016 SMTP relay server for office 365. All the messages passing through SMTP relay is working fine but we have some messages stuck in the SMTP relay queue and those messages will not leave from the queue, it fails after 12 hours. Is there any setting in IIS causing this? Any information regarding this is greatly appreciated.
Sam HaqueTier 3 engineerAsked:
Who is Participating?
 
Sam HaqueTier 3 engineerAuthor Commented:
It could be ISP issues. It seems to be working with the same configuration on different ISP.
0
 
Casey WeaverNetwork EngineerCommented:
First things first, enable some logging and then post that information. It can be any range of issues, but most often I see an incorrectly configured SPF record so that some email providers distrust email coming from your relay. http://www.itswapshop.com/tutorial/how-enable-logging-iis-smtp-server-windows-server
0
 
Sam HaqueTier 3 engineerAuthor Commented:
We are getting the email from our relay without any issues to any domain. The only problem we are facing when our automated program attaches the document and sent an email via the SMTP relay. All of those emails shows on SMTPQueue folder relay server's queue folder.
log.txt
0
 
Sam HaqueTier 3 engineerAuthor Commented:
We set up another SMTP relay which is pointing to different ISP provider and it worked fine.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.