Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transaction failed. The server response was: 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;

Tags:

email

Can someone help me out to this below issue. We done change smtp to office365 but after change the smtp host, we start getting below issue

Transaction failed. The server response was: 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.

like image 763
Mohit Monga Avatar asked Feb 26 '20 02:02

Mohit Monga


1 Answers

The email address used in the SMTP protocol (MAIL From:<[email protected]>) must be identical to your office365 account name, i.e. "[email protected]".

Source: check this Microsoft support page, related to printers and scanners:

"Your printer or application must send email from the same address that you entered logon credentials for during email setup. If the printer or application tries to send email from a different account, this results in an error similar to:

5.7.60 SMTP; Client does not have permissions to send as this sender.

For example, if you entered login credentials for [email protected] in your application settings, but the application tries to send emails from [email protected], this is not supported. For this scenario, use Microsoft 365 or Office 365 SMTP relay instead."

In our case, the address mismatch causes office365.com to reply with the following error message:

554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.

and has been resolved as described.

like image 135
caucus Avatar answered Oct 05 '22 21:10

caucus