Cottonshope
2 years ago
Hello!

I am using the EASendMail Service Manager on my server running IIS. There is a specific email domain that appears to be causing the error below whenever an email is sent to that domain:

SERVER_ERROR: 421 EHLO MXIN201 Your HELO/EHLO [REDACTED_1] is not matching your DNS configuration [REDACTED_2]


I can see within the EASendMail Service Manager that there is a field named "HELO Domain" - currently this is empty.

To clarify, I have hundreds of thousands of emails being sent successfully, it appears to just be 1 email domain that is having the error.

I don't typically handle the configuration of the EASendMail configuration, so I'm not sure what I might need to do to resolve this, as such is anyone able to offer any advice on how I should approach this?

Thanks!
ivan
  • ivan
  • 100% (Exalted)
  • Administration
2 years ago
Hi, you should set a valid internet domain whose A record is resolved to your current server IP address, then it should work.

for example, your current server IP address is: 192.168.xxx.xxx, your helo domain is mail.mydomain, then you should set a A record in your DNS server:

The record host is mail.mydomain, the record value is the IP address of your server.
Cottonshope
2 years ago

Hi, you should set a valid internet domain whose A record is resolved to your current server IP address, then it should work.

for example, your current server IP address is: 192.168.xxx.xxx, your helo domain is mail.mydomain, then you should set a A record in your DNS server:

The record host is mail.mydomain, the record value is the IP address of your server.

Originally Posted by: ivan 



Hi Ivan,

Thanks for the response, when performing a DNS lookup of the A record, it does appear to have a value for the name, for example:

- example.server.net

Whereas the error message suggests that the HELO/EHLO is:

- example.domain

To resolve this without changing my DNS, would I be expected to populate the "HELO Domain" part of the EASendMail Service Manager with the value from my A record, so in this case "example.server.net" ?
ivan
  • ivan
  • 100% (Exalted)
  • Administration
2 years ago
you can set Helo domain in EASendMail Service Manager -> SMTP configuration.

If you specify the server in your codes, you can use Server.HeloDomain property to specify the domain.
Cottonshope
2 years ago

you can set Helo domain in EASendMail Service Manager -> SMTP configuration.

If you specify the server in your codes, you can use Server.HeloDomain property to specify the domain.

Originally Posted by: ivan 



Thanks! I can confirm setting the HELO domain within the EASendMail Service Manager has resolved the issue for the problematic emails in the queue.

Regarding specifying the server within my code - currently I do not do this and the EASendMail.SmtpServer is declared as NULL. However I do have some emails that are sent immediately (SendEmail) as opposed to being added to the queue (SendMailToQueue). In this case, does the configuration in the EASendMail Service Manager affect those emails that are sent immediately and not via the queue?

I'm trying to identify if I'll need to update my code by specifying the EASendMail.SmtpServer details for these immediately sent emails.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
2 years ago
If you specify the NULL to server and you always use SendMailToQueue method, then you don't have to change your code.

If you use SendMail method, you can do it like this (c#):


SmtpServer server = new SmtpServer("");
server.HeloDomain = "yourdomain";

oSmtp.SendMail(server, mail);

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.