LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How To Stop All SMTP Traffic to a Domain? (https://www.linuxquestions.org/questions/linux-server-73/how-to-stop-all-smtp-traffic-to-a-domain-637016/)

carlosinfl 04-22-2008 07:48 AM

How To Stop All SMTP Traffic to a Domain?
 
I want to disable all incoming and outgoing SMTP traffic to a specific domain on my Postfix email server. Right now I do NOT want users to be able to send to a specific domain nor do I want my email server to accept messages from that domain. Has anyone done this and can assist me in setting this parameter up on my Postfix server?

frndrfoe 04-22-2008 09:16 PM

add a couple lines to /etc/mail/access (assuming thats the location on your server)

Code:

badbadbad.com                    ERROR:5.0.0:550 We dont like you
To:badbadbad.com                  REJECT


ooh shoot! i didn't see "postfix" till after i submitted. I hate ADD somtimes

carlosinfl 04-23-2008 03:06 PM

So this will not work for Postfix?

trickykid 04-23-2008 08:25 PM

Or you can simply just remove the MX records for that domain, that's like rejecting the mail at the post office instead of at your own mailbox (server).


All times are GMT -5. The time now is 04:40 PM.