base.m4: Accept bad `HELO' hosts from `submission' clients.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 27 Apr 2020 18:14:56 +0000 (19:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 27 Apr 2020 18:14:56 +0000 (19:14 +0100)
base.m4

diff --git a/base.m4 b/base.m4
index c0dd892..51cacc8 100644 (file)
--- a/base.m4
+++ b/base.m4
@@ -125,6 +125,10 @@ SECTION(global, acl)m4_dnl
 acl_smtp_helo = helo
 SECTION(acl, misc)m4_dnl
 helo:
+       ## Don't worry if this is local submission.  MUAs won't necessarily
+       ## have a clear idea of their hostnames.  (For some reason.)
+       accept   condition = ${if !eq{$acl_c_mode}{submission}}
+
        ## Check that the caller's claimed identity is actually plausible.
        ## This seems like it's a fairly effective filter on spamminess, but
        ## it's too blunt a tool.  Rather than reject, add a warning header.