Hi,
I’m experiencing a strange problem, and after 5+ hours searching the web for solutions to no avail, I hope that someone here can help me.
The setting:
My ASP.net multi-language website is hosted on my own VPS, which also hosts Microsoft Exchange Server 2016. There are two forms on the website that generate an email requesting info using smtp. This has basically always worked correctly, but as we’re now implementing a Russian translation, we’re experiencing something strange.
Sending an email from form 1 works fine with the email address sales-by@xxxx.
Sending an email from form 2 with the same email address sales-by@xxxx, doesn’t work, but sending the exact same email using the addresses sales-ru@xxxx, sales-ua@xxxx and sales-kz@xxxx works fine.
Similarly, sending an English email from form 2 with the email address sales-lt@xxxx works fine. However, sending a Russian email with the same address doesn’t work.
The error is generated at the moment the system tries to send the email and says "Exception message: Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering."
So, somehow a change of email address turns the content into spam? Plus the email address is on the same domain as the Exchange Server that is used for the smtp. I implemented a mail flow rule in the Exchange Server to bypass spam filtering for internal emails, but that didn’t help.
The (simplified) code with confidential info masked to create and send the email:
Anyone an idea how to fix this?
Thanks in advance.
Regards,
Erwin
I’m experiencing a strange problem, and after 5+ hours searching the web for solutions to no avail, I hope that someone here can help me.
The setting:
My ASP.net multi-language website is hosted on my own VPS, which also hosts Microsoft Exchange Server 2016. There are two forms on the website that generate an email requesting info using smtp. This has basically always worked correctly, but as we’re now implementing a Russian translation, we’re experiencing something strange.
Sending an email from form 1 works fine with the email address sales-by@xxxx.
Sending an email from form 2 with the same email address sales-by@xxxx, doesn’t work, but sending the exact same email using the addresses sales-ru@xxxx, sales-ua@xxxx and sales-kz@xxxx works fine.
Similarly, sending an English email from form 2 with the email address sales-lt@xxxx works fine. However, sending a Russian email with the same address doesn’t work.
The error is generated at the moment the system tries to send the email and says "Exception message: Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering."
So, somehow a change of email address turns the content into spam? Plus the email address is on the same domain as the Exchange Server that is used for the smtp. I implemented a mail flow rule in the Exchange Server to bypass spam filtering for internal emails, but that didn’t help.
The (simplified) code with confidential info masked to create and send the email:
Code:
SmtpClient smtpmail = new SmtpClient();
smtpmail.Host = "--host-address--";
smtpmail.UseDefaultCredentials = false;
smtpmail.Credentials = new System.Net.NetworkCredential("--username--", "--password--");
MailMessage mail = new MailMessage();
mail.Subject = "Custom subject in selected language";
mail.Body = "Custom content in selected language";
smtpmail.Send(mail);
Anyone an idea how to fix this?
Thanks in advance.
Regards,
Erwin