Lindsay Haisley writes:

If I get a hit on a RBL from one of the BLACKLISTS sources
in /etc/courier/esmtpd, Courier sets the contents of the associated
BLOCK* env variable to "511" followed by the text retrieved from the RBL
hit.  I'd like to change this to "550 5.7.1" to be consistent with what
I'm using for other filtering facilities.  Can this be done from Courier
configuration, or does it have to be done by modifying the source?

You cannot modify a portion of the error message returned by the DNSBL, but you can override it with a fixed message.

I'm not sure that you can change the 550 to 511, but you can definitely change the rest of the message by adding more stuff to the -block parameter -- it's documented in the couriertcpd man page:

"-block=dnsbl.example.com,BLOCK,5.7.1 Access denied from IP address @"

Try prefixing it with a 511, it may work, I don't recall:

"-block=dnsbl.example.com,BLOCK,511 5.7.1 Access denied from IP address @"


Attachment: pgpEK0aEvFDTN.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to