Leak a little bit of info about why a message is rejected
authorTollef Fog Heen <tfheen@err.no>
Sun, 5 May 2013 07:22:49 +0000 (09:22 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 5 May 2013 07:23:35 +0000 (09:23 +0200)
It's less confusing for users if we say something like "your DNS is
broken" rather than just "message rejected".

modules/exim/templates/eximconf.erb

index 5c9f8bb..fb0da2e 100644 (file)
@@ -837,6 +837,7 @@ check_recipient:
                         ${lookup{$local_part}lsearch{/var/lib/misc/$primary_hostname/mail-callout}{$local_part}{}}
           !hosts   = +debianhosts : WHITELIST
          !verify  = sender/callout=90s,maxwait=300s
+         message  = "Sender verification failed: $acl_verify_message"
 
 <%- end -%>
 <%- if scope.lookupvar('site::nodeinfo')['mailrelay'] -%>