I use postfix on my mail server, and had been getting flooded with mails to admin@<domain> so I decided I needed to put a stop to it.
Once I'd ploughed through the terse postfix documentation, the simple solution was:
add this to main.cf:
smtpd_recipient_restrictions =
check_recipient_access hash:/etc/postfix/access,
permit_mynetworks,check_relay_domains
and create the /etc/postfix/access file like this:
# block admin@all_domains admin@ REJECT
a quick postfix reload and all is better. That's not to say that I don't get spam any more, but that cut out a lot. It's surprising sometimes how it can seem such an effort to get around to doing things like this - I should have done it ages ago.
Posted by Simon at May 7, 2003 11:03 PM