Bowie Bailey writes:

I need to block connections from a misconfigured mailserver that is sending
me lots and lots of junk.  I'm confused about the 'deny' and the 'BLOCK='
settings for smtpaccess.  How do they interact?  If I want to send a
customized message, which do I do?

IP<tab>allow,BLOCK="500 Blocking misconfigured server"

   or

IP<tab>deny,BLOCK="500 Blocking misconfigured server"

I'm thinking it's probably the first one since I need to allow the
connection in order to send the block message, but I'm not sure.

Right. "deny" drops the connection (the variable settings have no effect). "allow" accepts the connection, but sets the given environment variable. When BLOCK is set courieresmtpd will play along, but reject all messages.


Attachment: pgpy61HiplLgB.pgp
Description: PGP signature

Reply via email to