Configuring Postfix to recieve on a different port??
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.