View Single Post
  #3  
Old 13th April 2009, 22:11
jborton jborton is offline
Junior Member
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default another way

Here's how I did it, probably easier than procmail or maildrop.

in postfix main.cf

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
check_sender_access hash:/etc/postfix/sender_access, (etc)

in /etc/postfix/sender_access
domain.tld REJECT You are not me!
mail.domain.tld REJECT You are not me!

now anyone who tries to send me email using any address from my own domain is rejected. My own users are either authenticated or on my network, so the third option never gets checked.
Reply With Quote