LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-20-2004, 04:13 AM   #1
tamakizu
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Unhappy Configuring Postfix to recieve on a different port??


Hi all i need a bit of help with a problem i'm having basicly what i need to do is find a way to make postfix recieve mail on a different port so i can get passed a problem with an ISP stopping all port 25 traffic unless to there mail server any ideas?.
 
Old 04-20-2004, 01:14 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I don't think you will be able to do this because any server that tries to deliver mail will only try port 25. If you only want to use it for the client side where you can configure the client software then it should be possible.
 
Old 04-30-2004, 11:54 AM   #3
kakubei
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
As they said before, all other mail servers will send email through port 25. But if you still want to change it here's how:

Add a line to your /etc/services:

smtp2 5000/tcp

Now edit your /etc/postfix/master.cf so the smtpd line starts with smtp2:

smtp2 inet n - n - - smtpd

Restart Postfix.

I will say that this worked for me on a Linux Red Hat 9 box, but it would only respond locally, that is, it would not accept connections through that port from any other machine on my network. I am still trying to figure out why.
 
Old 04-30-2004, 01:29 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
tcpwrapper, maybe? Perhaps you have to edit /etc/hosts.allow for the new port.
 
Old 04-30-2004, 01:33 PM   #5
kakubei
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Well, after much head-banging and cursing I finally discovered the problem:

Being new to postfix I didn't know about this entry in main.cf:

inet_interfaces = localhost

It means that postfix will only listen to the localhost for any connections! No, why postfix comes like this out of the box is (idiotic) and beyond me. But like I said, I'm new to postfix. Changing that to inet_interfaces = all and restarting postfix did the trick.
 
  


Reply



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
POSTFIX won't recieve external mail deviance99 Linux - Networking 2 10-16-2004 04:57 PM
cant send recieve mail with postfix bentman78 Linux - Software 3 05-05-2004 09:12 AM
configuring kmail to recieve yahoomail arunshivanandan Linux - General 3 10-21-2003 03:34 AM
configuring postfix 2 markus1982 Linux - Networking 0 05-25-2003 05:05 AM
help configuring postfix importboy03 Linux - Software 1 05-01-2003 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:03 AM.

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