Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th June 2009, 11:40
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts
Default Stop a certain domain sending any email?

Is it possible to block one domain that I'm hosting on my ISPconfig2 system to send e-mail with postfix?

Why?? I know that it sounds stupid, but some person found a way to send email through an application that I'm hosting.

I'm working on a fix for this application, but for now the easiest (and fastest) way to fix this is to stop ANY email that is beeing send from this domain. Receiving email for this domain must still work!

Thank you for any info on this.
Reply With Quote
Sponsored Links
  #2  
Old 27th June 2009, 20:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

You can do this with Postfix header checks: http://www.postfix.org/header_checks.5.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
edge (27th June 2009)
  #3  
Old 27th June 2009, 21:15
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts
Default

That looks promising.
Thank you
Reply With Quote
  #4  
Old 28th June 2009, 12:27
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts
 
Default

Okay.

To stop (discard) domain XYZ.TLD to send email with postfix use this in the /etc/postfix/header_checks
Code:
/^From: .*@XYZ\.TLD>/ DISCARD

Last edited by edge; 28th June 2009 at 22:19.
Reply With Quote
The Following User Says Thank You to edge For This Useful Post:
falko (28th June 2009)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
Email domain forwarding stevieb Installation/Configuration 8 30th January 2009 18:51
ISPConfig 3RC1 - email domain vs. site domain across users Ben Developers' Forum 2 13th January 2009 19:57
Email and domain grant-skywalker Installation/Configuration 1 1st December 2006 07:44
sending email (connect, login) = slow TheRudy Server Operation 7 8th July 2006 13:46


All times are GMT +2. The time now is 13:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.