So for reasons unknown, I need to block emails To or From a certain email address.
I don't care what is in the emails, but I would like a notification email sent to another address if possible, however this is not vital.
Details:
Kernel 2.8.18
Dovecot - 1.0.rc15
Postfix - 2.3.3
Thanks.
Details:
Ok so I've added
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
to /etc/postfix/main.cf
added
myemail@address.com DISCARD TestDiscard
to /etc/postfix/access
ran
postmap /etc/postfix/access
Reloaded / Restarted postfix, and emails still get sent to and from the email address blocked.
Does this setting in /etc/postfix/main.cf make a difference:
mailbox_command = /usr/bin/procmail -a "$EXTENSION"