Tools

Kiwi Syslog - Office 365 SMTP mail issues Mail error: SMTP protocol error. 554 5.2.252 SendAsDenied

This article described an issue when Kiwi Syslog Manager is unable to send emails using an Office 365 SMTP server. The Kiwi Syslog Manager will log an error message as below: 2022-07-06 17:10:16 Mail error: SMTP protocol error. 554 5.2.252 SendAsDenied; alertas@domain.net not allowed to send as no-reply@domain.net; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. : [EndDiagnosticData] [Hostname=hostname.(geo)prodx.prod.outlook.com]. 2022-07-06 17:10:17 Requeuing 50 e-mail messages. Will retry in 1 minute.

First published date

7/11/2022 8:21 AM

Last published date

7/11/2022 8:21 AM

Overview

In Kiwi Syslog, with Office 365 SMTP settings configured under Setup > Email section. 

In this issue, Kiwi Syslog manager will fail to send email with Office 365 as the SMTP server, you will encounter the above error message and which can be seen in the Errorlog.txt file you get from the TechSupport.zip file. This file is also located in C:\Program Files (x86)\Syslogd
 

Product section

Kiwi Syslog Server

Cause

  • Authenticated using one email address, but tried to send email using another email address for the “FROM” address.  (i.e. you are “sending as” another person). That is if the email address used for authentication is different than the FROM email address

Resolution

2022-07-06 17:10:16 Mail error: SMTP protocol error. 554 5.2.252 SendAsDenied; alertas@domain.net not allowed to send as no-reply@domain.net; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. 
:
[EndDiagnosticData] [Hostname=hostname.(geo)prodx.prod.outlook.com].
2022-07-06 17:10:17	Requeuing 50 e-mail messages. Will retry in 1 minute.

 

  • The Microsoft Office 365 SMTP server provided a informative error message. 
  • The clue in all of the above gibberish is the “SendAs” in “SendAsDeniedException”.  It means you authenticated using one email address, but tried to send email using another email address for the “FROM” address.  (i.e. you are “sending as” another person).
  • Your Office365 account may need to be setup to “Send email on behalf of another user”
  • See Give mailbox permissions to another user (© 2022 Microsoft, available at https://docs.microsoft.com/, obtained on July 8, 2022)
  • This error occurs if the email address used for authentication is different than the FROM email address.
  • The solution is to update your Office365 account settings to allow for sending on behalf of the FROM email address.

Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.