[BlueOnyx:19245] Re: Feature Request - Ability to set the blacklist message returned
Michael Stauber
mstauber at blueonyx.it
Mon Feb 29 23:52:55 -05 2016
Hi Jim,
> dnl FEATURE(enhdnsbl,`sbl-xbl.spamhaus.org',`',`t',`Spam blocked - see http://ordb.org/')dnl
> dnl FEATURE(enhdnsbl,`bl.spamcop.net',`',`t',`Spam blocked see: http://spamcop.net/bl.shtml?$&{client_addr}')dnl
>
> However when you enable blacklist support in the GUI it creates
> the following which will not have the extra error information
> in the returned email.
>
> FEATURE(dnsbl, `sbl-xbl.spamhaus.org',,)
> FEATURE(dnsbl, `bl.spamcop.net',,)
>
> Also not sure if it matters but the default config uses enhdnsbl vs the GUI setting to dnsbl ?
Sendmail's enhanced DNS Blacklist feature (enhdnsbl) is identical to the
dnsbl feature. Except that it allows you to specify an optional fifth
argument. The fifth argument is for matching against the value returned
in the right-hand-side of the blacklist's DNS resource record.
When you use "dnsbl" you don't really need to fill in all the blanks. If
something gets rejected, Sendmail will generate a standard rejection
message.
The usage of "enhdnsbl" is only really useful if a DNSBL doesn't use
standard return signals.
Example with custom error message:
FEATURE(`enhdnsbl',`dnsbl.sorbs.net',`"554 Rejected " $&{client_addr} "
found in dnsbl.sorbs.net"',`t', `127.0.0.9')dnl
Example without custom error message:
FEATURE(`enhdnsbl',`dnsbl.sorbs.net', , , `127.0.0.9')dnl
Both would only reject if the answer is 127.0.0.9.
If you just want custom error messages, then this can be done with
either "dnsbl" or "enhdnsbl".
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list