baudehlo/Haraka — pull request #243 by smfreegard (2012-08-31 12:05:03+00:00)
Title: Reject commands containing non-ASCII characters

I noticed a few connections like this in my logs:

[core] disconnect ip=37.114.171.69 rdns="DNSERROR" helo="æëîðæë-ÏÊ" relay=N early=N esmtp=Y tls=N pipe=N txns=1 rcpts=0/0/1 msgs=0/0/0 bytes=0 lr="550 host [37.114.171.69] is blacklisted by zen.ip.fslupdate.com" time=1.646

Note the EHLO/EHLO argument. This connection did actually yield a sender and recipient too, it was just the EHLO/HELO that was bogus. This patch rejects this with a '501 Syntax error'.