554+5.2.0+STOREDRV.Submission.Exception:SendAsDeniedException in IIS SMTP Relay When Scanning to Email from a Sharp MX-M364N

iis-6microsoft-office-365smtpwindows-server-2012-r2

I am getting the following error in my Windows Server 2012 R2 – IIS6 – SMTP Relay logs when I send a scan from a Sharp MX-M364N copier:

2018-09-25 20:28:54 40.97.132.2 OutboundConnectionResponse SMTPSVC1 – 0 – – 554+5.2.0+STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;+Failed+to+process+message+due+to+a+permanent+exception+with+message+Cannot+submit+message.

The email is also sent to the BADMAIL folder.

Other information:
My relay authenticates with Office 365.
The credentials to login to Office 365 have been verified as correct.
Other copiers in my organization can connect and relay without a problem.

Any ideas on where to look for answers?
I Googled the error code above and checked Sharp's documentation to see if a specific model might have this problem.

Best Answer

I found I the Sender Name: value MUST be set under System Settings -> Image Send Settings -> Scan Settings.

If Sender Name: value is blank the email will not send and you will receive the above mentioned error in your SMTP logs.