Developer forum

Forum » Development » Form Submissions Being Sent to SMTP Server When IP Is Banned

Form Submissions Being Sent to SMTP Server When IP Is Banned

Tim Eddings
Reply

We get a handful of bad form submissions a day that result in the referral IP being banned.  In lookking at the content of the form submission, they are usually in Russian and talking about male enhancement products or spending time online with beautiful women.  So banning the IP seems resonable to me.  What does seem odd is that we get the following two error message logged by the EmailHandler every time this happens.  Can anyone explain what is happening here?

[7/13/2020 3:12:49 PM]: Error: Mail not sent. 

[7/13/2020 3:12:49 PM]: Error: System.Exception: No valid SMTP host found. Please specify a valid SMTP host in Control Panel. Errors: smtp.office365.com: System.Net.Mail.SmtpException: 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. 0.35250:E3020000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:863D0000, 1.36674:0E000000, 1.61250:00000000, 1.45378:8B3D0000, 1.44866:EC010000, 16.55847:111D0000, 17.43559:0000000024020000000000000100000000000000, 20.52176:140F668C1900F01F00000000, 20.50032:140F668C8917F01F00000000, 0.35180:140F668C, 255.23226:0A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:2D000000, 0.35250:1F001336, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:9C000000, 1.36674:32000000, 1.61250:00000000, 1.45378:A1000000, 1.44866:01000000, 16.55847:08010000, 17.43559:0000000070030000000000000000000000000000, 20.52176:140F668C1900101053000000, 20.50032:140F668C891700006B000000, 0.35180:58000000, 255.23226:4800D13D, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:81000000, 4.21921:DC040000, 255.27962... 
at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse) 
at System.Net.Mail.DataStopCommand.Send(SmtpConnection conn) 
at System.Net.ClosableStream.Close() 
at System.Net.Mail.SmtpClient.Send(MailMessage message) 
at Dynamicweb.Mailing.EmailHandler.SendUsingSmptProtocol(MailMessage mailMessage, SmtpSender sender, List`1 hostList) 

at Dynamicweb.Mailing.EmailHandler.SendUsingSmptProtocol(MailMessage mailMessage, SmtpSender sender, List`1 hostList) 
at Dynamicweb.Mailing.EmailHandler.Send(MailMessage mailMessage, Boolean logging, Boolean throwException, String username, String password, Int32 port, Boolean useSsl, String host) 
[7/13/2020 3:12:49 PM]: Error: The message was saved for reference. Filename is 'ed9fe92d-bc81-44b9-8042-71d4efc88ff2.eml'.

Thank you,

Tim Eddings
Rupp Seeds, Inc.

 


Replies

 
Tim Eddings
Reply
This post has been marked as an answer

I think I may have figured this out myself.  When using Microsoft's smtp.office365.com server, the email's From address has to be the same as the SMTP account log in Username.  I noticed that our Dynamicweb System email address was not the same.  I've changed it an will see if I start getting system emails.  smiley

Tim

 

Votes for this answer: 1

 

You must be logged in to post in the forum