LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2006, 01:52 PM   #1
wardjame
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Rep: Reputation: 0
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.
 
Old 08-01-2006, 03:46 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 08-01-2006, 04:29 PM   #3
wardjame
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the excellent suggestion. I'm getting on with 587 locally now.
 
Old 08-02-2006, 01:32 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
and of cource locally port 25 still works fine within your lan and the machine itself.
 
Old 08-02-2006, 11:08 AM   #5
wardjame
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
It sure does. Thanks for all the help

Last edited by wardjame; 08-02-2006 at 02:03 PM.
 
  


Reply

Tags
debiansoftware, postfix



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot create listening port Braynid Linux - Newbie 3 06-06-2006 03:33 PM
ssh listening on port 22 sharpie Linux - Security 9 06-08-2004 03:28 PM
Postfix running but not listening on 25 pnh73 Linux - Networking 1 05-27-2004 12:07 AM
Apache listening on port.. well it isn't Newman_SCO Linux - Newbie 10 08-15-2003 12:32 PM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration