Knowledgebase & Downloads
The knowledgebase provides documentation written by our team. Please select a category or search for answers.
Articles
REJECTED - Bad HELO - Host impersonating - exim
If you are getting 'REJECTED - Bad HELO - Host impersonating' in your Java/Jsp application logs then:
1) Verify the server you ae hosting on has correct reverse DNS, for example use http://mxtoolbox.com/diagnostic.aspx SMTP Diagnostics.
2a) if you are using shared IP
In your Java/JSP code make sure you are using localhost as mail server name.
Use
props.put("mail.smtp.host", "localhost");
instead of
props.put("mail.smtp.host", "mail.yourdomain.com");
as if you are using shared IP your email will be sent via the shared IP and the IP will not resolve back to your domain.
2b) if you are using dedicated IP
Make sure mail.yourdomain.com resolves to your dedciated IP
and that your dedciated IP has reverse DNS record set. Contact us if not.
You will then be able to use
props.put("mail.smtp.host", "mail.yourdomain.com");
- © 2016-2024 JVMHost.com All rights are reserved.