exim: rejected EHLO, syntactically invalid argument

If you email having problem with rejected EHLO or HELO, caused by syntactically invalid argument(s).

  • Possible the hostname contains underscore(_).
  • This is not standard practice, having _ for your domain
  • for example takizo_mail.takizo.com
  • Most of the mail server rejected hostname with underscore.
  • Possibility is a Windows Admin

Error message shows in exim’s log;

2007-01-31 09:13:21 rejected EHLO from [123.123.123.123]: syntactically invalid argument(s): stupid_proxy.windowsadmin.com.my
2007-01-31 09:13:21 rejected HELO from [123.123.123.123]: syntactically invalid argument(s): stupid_proxy.windowsadmin.com.my

Solutions: Add this line in exim configuration main section;

helo_allow_chars = _

Now your exim should be working and receive email from the l33t! hostname. _hell_.lamer.com

Related posts:

  1. Exim – anti-spam per domain setting acl_check_rcpt: blah … blah … blah … deny message =...
  2. Grep Exim Email Transaction with Bash While email transport having problem, the first we look for...
  3. Force Email Delivery on Exim Hundred emails are queuing on your mail relay server, and...
  4. Exim, Recipient Verify on Relay and Mail Server How many of you got dictionary/ratware attack on your mail...
  5. Backup and Archive Incoming Email with Exim Loitering around Google and finding a way to archive/backup incoming...
  6. Exim, refused: too many connections One of our mailserver having problem last week. It’s caused...
  7. useful unix command: xargs In our mailserver, we backup every incoming email and keep...
  8. How to dig SRV record after creating it in DNS dig <record type> <host.name> e.g dig SRV _someservice._port.hostname.domainame.com.my OR dig...
  9. exim, playing with mail queue in server there are over thousand emails queue in our mail server,...
  10. ls & rm with regular expression e.g. rm -rf backup-20070[8-9]-* would delete : backup-200708-morning backup-200708-evening backup-200709-night...

Leave a Reply