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
Prev Previous Post   Next Post Next
Old 11th June 2009, 17:44
davew davew is offline
Junior Member
Join Date: May 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding rules to IPTables/Postfix ports

I need to accept smtp traffic on additional ports to 25 because some of my clients have ISPs that block port 25 traffic to anything other than their ISPs mail servers.

A while ago I implemented this with a quick workaround using IPTables where I added the rule...
-A PREROUTING -p tcp -m tcp --dport 587 -j REDIRECT --to-ports 25

to /etc/sysconfig/iptables

When I turn the firewall on in ISPConfig 3, the bastille script (I assume) rewrites iptables and discards my redirect.

Is there an easy way to add my rerouting rule so it "sticks" or any other way of allowing postfix to listen on more than one port ? I assume I need to use /usr/local/ispconfig/server/conf-custom/ for the former ?

Am I correct in thinking that this prerouting rule also allows fail2ban (on port 25) to work correctly for this new port ?
Reply With Quote
Sponsored Links


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
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 19:37
Virtual Users with Postfix/Courier/Amavis etc...Quarantine? volksman HOWTO-Related Questions 9 30th January 2008 12:53
Strato Server - Restoring with SystemImager popper2001 HOWTO-Related Questions 5 28th July 2007 11:18
ISPconfig, blocked ports (pop/smtp), Authentication/SSL orasis Installation/Configuration 13 19th March 2007 14:29
Creating image with Systemimager cuongtim HOWTO-Related Questions 3 18th November 2006 14:55

All times are GMT +2. The time now is 06:18.

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