I'm trying to prevent my CentOS 6.5 server from sending out emails to a certain list of recipients. (
email@example.com and so on).
I've configured postfix like this:
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access
firstname.lastname@example.org REJECT email@example.com REJECT
DB is built via:
postfix is reloaded
service postfix reload
sendmail_path = /usr/sbin/sendmail -t -i
Unfortunately this doesn't seems to work. If i use PHP mail() to send a mail to
firstname.lastname@example.org, it is delivered as always.
What am I missing?