LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix: blocking OUTBOUND email to certain TLDs (http://www.linuxquestions.org/questions/linux-software-2/postfix-blocking-outbound-email-to-certain-tlds-910130/)

jkd_dude 10-25-2011 04:26 PM

Postfix: blocking OUTBOUND email to certain TLDs
 
I'm new to postfix. Trying to block OUTBOUND mail to certain TLDs. I have this in /etc/postfix/main.cf:

Code:

smtpd_sender_restrictions = hash:/etc/postfix/access
reject_unauth_destination = hash:/etc/postfix/access

this in /etc/postfix/access:

Code:

.cn REJECT
.ua REJECT
.cz REJECT

I then rebuilt the database with: postmap /etc/postfix/access

and restarted postfix.

But I tried sending to one of the bad TLDs and it did deliver the message.

Any help is appreciated!


All times are GMT -5. The time now is 11:05 AM.