Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 17th November 2010, 14:12
precessionone precessionone is offline
Junior Member
Join Date: Nov 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default block all outgoing email except one Virtual Domain

Hey guys,

Great job. I tried ISPConfig 3, liked it, so I subscribed.

I am now using it as the ISP in my development network.

The development network has NAT gateway with resolvable public fqdn.
The internal network uses a private address range and fictitiuos TLD.

I want to block all outgoing mail, at the ISPConfig(ed) server, except for one Mail Virtual Domain which is publicly resolvable.

How can I do this with ISPCOnfig 3 or do I need to edit the postfix configuration directly?

I have the option of doing this at the gateway, but I would prefer to do it with postfix on the ISP server.

Reply With Quote
Sponsored Links
Old 17th November 2010, 15:15
edge edge is offline
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts

I'm doing this with "header_checks" in /etc/postfix/

(discard) domain XYZ.TLD to send email with postfix use this in the /etc/postfix/header_checks

/^From: .*@XYZ\.TLD>/ DISCARD
Make sure that you restart postfix after addin the domain(s)
Never execute code written on a Friday or a Monday.
Reply With Quote
Old 20th November 2010, 14:09
precessionone precessionone is offline
Junior Member
Join Date: Nov 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: header_checks

Thanks, edge.

I will look into this and let you know how I go.
Reply With Quote


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
Domain not able to receive outside mail jtheed Installation/Configuration 2 23rd October 2010 14:46
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 04:39
Email and domain grant-skywalker Installation/Configuration 1 1st December 2006 07:44
Email sent to domain being rejected Lil'Brudder Installation/Configuration 9 25th October 2005 12:17
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58

All times are GMT +2. The time now is 03:33.

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