Issue
In our SharePoint 2016 farm, the outgoing emails are not working on a couple of servers. This includes alerts emails, sharing emails, workflow emails, etc.
One of the Web fronts (KFSP1) in SharePoint 2016 Server is unable to send the email using the exchange relay.
Troubleshooting
We checked the following settings:
- Outgoing email settings properly configured.
- The Server is properly registered with Exchange Relay
- Checked the CSP(Software firewall), No SMTP port (25) blocked by CSP.
- No Antivirus blocking
- No Firewall blocking.
- When we checked the ULS logs we found these entries.
Time: 05/18/2018 10:52:26.19
Attempting to send mail to recipients: [email protected]. Mail Subject: You have successfully created an alert for 'Documents-10182017-1'. Stack Trace:
at Microsoft.SharePoint.Email.SPSmtpClient.SendOnce(MailMessage msg, Boolean useAlternateServer)
at Microsoft.SharePoint.Email.SPSmtpClient.Send(MailMessage msg)
at Microsoft.SharePoint.Email.SPSmtpClient.TrySend(MailMessage msg)
at Microsoft.SharePoint.Email.SPMailMessageHelper.TrySendMailMessage(SPSmtpClient smtpClient, MailMessage mailMessage, SPUserToken currentUserToken, Nullable`1 currentUserInfo, Boolean useEwsIfFromCurrentUser, Boolean doNotSaveCopy)
at Microsoft.SharePoint.SPManagedCodeInterop.SendEmail(Guid webApplicationId, SPSite site, String from, String replyTo, String sender, String[]& to, String[]& cc, String[]& bcc, Object& headers, String subject, String body, Boolean isBodyHtml, Int32 bodyCodePage, String
Failed attempt 1 sending mail to recipients: [email protected]. Mail Subject: You have successfully created an alert for 'Documents-10182017-1'. Error: SmtpException while sending email: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: Server configuration rejects your message from that IP address
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Microsoft.SharePoint.Email.SPSmtpClient.SendOnce(MailMessage msg, Boolean useAlternateServer)
at Microsoft.SharePoint.Email.SPSmtpClient.Send(MailMessage msg)
SPSmtpClient Failure: Failed attempt 3 sending mail to recipients: [email protected]. Mail Subject: You have successfully created an alert for 'Documents-10182017-1'. Error: SmtpException while sending email: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: Server configuration rejects your message from that IP address
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
SPSMTPClient.TrySend::Exception caught; return value from TrySend will be false. Exception: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: Server configuration rejects your message from that IP address
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
Failed to send an email using SMTP.


Join the conversation! Your thoughts help the community grow.