LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   postfix listening port (http://www.linuxquestions.org/questions/linux-software-2/postfix-listening-port-469818/)

wardjame 08-01-2006 01:52 PM

postfix listening port
 
Hi All,
I just completed the wonderful postfix spamassassin tutorial located at http://www200.pair.com/mecham/spam/s...r20060630.html and everything seems to have gone ok.

I realized afterword that the isp this server is hosted on blocks traffic on port 25 so I need to adjust my postfix settings to get it listening and relaying on port 587.

I added the following entry to my iptables:
Code:

iptables -A FIREWALL -p tcp -m tcp --dport 587 --syn -j ACCEPT
And the following line to my master.cf
Code:

127.0.0.1:587  inet    n      -      n      -      -      smtpd
But I still can't connect on 587. I am testing this on the local network and port 25 is responding via telnet without any problems. There are no errors in my mail.log file and grep 587 /etc/services give me:
Code:

submission      587/tcp                        # Submission [RFC2476]
submission      587/udp

Any thoughts on what I missed to get this thing listening on port 587? Thanks much.

acid_kewpie 08-01-2006 03:46 PM

might be nicer for yourself if you just leave postfix alone and do a port translation on the network:
Code:

iptables -t nat -A PREROUTING -p tcp --dport 587 -j REDIRECT --to-ports 25
this way postfix remains unmessesboutwithandllathat

wardjame 08-01-2006 04:29 PM

Thanks for the excellent suggestion. I'm getting on with 587 locally now.

acid_kewpie 08-02-2006 01:32 AM

and of cource locally port 25 still works fine within your lan and the machine itself.

wardjame 08-02-2006 11:08 AM

It sure does. Thanks for all the help


All times are GMT -5. The time now is 06:56 PM.