I've got a CPanel server running Exim 4.69 (WHM 11.28.33). I'm trying to get PCI compliance for a customer, and the only issue left is that Exim is accepting certian malformed HELO statements that spoof a local domain, permitting relaying to internal accounts. First an example that works correctly (assume myhost.com is the user domain and server.com is the server hosting the domain):
telnet server.com 25
HELO myhost.com
250 server.com Hello someisp.com [xx.xx.xx.xx]
MAIL FROM someuser@myhost.com
550 "REJECTED - Bad HELO - Host impersonating [myhost.com]"
Connection closed by foreign host.
So given a properly formed (albeit spoofed) HELO it correctly rejects the unauthorized mail. Now if I just malform the HELO:
telnet server.com 25
HELO MAIL FROM someuser@myhost.com
250 server.com Hello someisp.com [xx.xx.xx.xx]
MAIL FROM: someuser@myhost.com
250 OK
RCPT TO: someuser@myhost.com
250 Accepted
SecurityMetrics PCI scan barfs on this and indicates an open relay (albeit for interal mail). No external relay seems to be possible using this method, but they fail the scan nonetheless. Is there some way to prevent Exim from accepting an obviously malformed HELO?
For the record, the following options are all set to ON:
Require incoming SMTP connections to send HELO before MAIL
Require incoming SMTP connections to send a HELO that does not match the primary hostname or a local IP address.
Require incoming SMTP connections to send a HELO that does not match this server's local domains.
Require incoming SMTP connections to send HELO conforming to internet standards (RFC2821 4.1.1.1)
Thanks for any help or insight.



LinkBack URL
About LinkBacks
Reply With Quote





