HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Stop a certain domain sending any email? (http://www.howtoforge.com/forums/showthread.php?t=37026)

edge 26th June 2009 11:40

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.

falko 27th June 2009 20:23

You can do this with Postfix header checks: http://www.postfix.org/header_checks.5.html

edge 27th June 2009 21:15

That looks promising.
Thank you

edge 28th June 2009 12:27

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


All times are GMT +2. The time now is 10:14.

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