View Single Post
  #1  
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