LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-22-2008, 07:48 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
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?
 
Old 04-22-2008, 09:16 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
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

Last edited by frndrfoe; 04-22-2008 at 09:18 PM.
 
Old 04-23-2008, 03:06 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
So this will not work for Postfix?
 
Old 04-23-2008, 08:25 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop all traffic - Guarddog r00ster Linux - Desktop 3 10-24-2007 08:48 AM
Configuring sendmail to allow SMTP traffic from my IP, domain, or email address hlslaughter Linux - Software 0 03-29-2007 02:19 PM
SMTP traffic on my DialUp connection how ...? shahg_shahg Linux - Networking 0 02-14-2005 01:04 AM
How can block my SMTP Traffic? krishnakishore Linux - Networking 3 06-19-2004 07:49 AM
network stop working after 2GB traffic bwMarkus Linux - Networking 1 10-22-2003 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration