LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Configuring Ports on Mail Server [Postfix] (https://www.linuxquestions.org/questions/linux-server-73/configuring-ports-on-mail-server-%5Bpostfix%5D-933013/)

carlosinfl 03-06-2012 07:54 AM

Configuring Ports on Mail Server [Postfix]
 
I've got my company to throw down some cash for a new mail server. I will be getting the new hardware in the next 30-60 days however I wanted to start planning out my new Postfix mail server. My questions is about the correct way to configure the mail server ports. According to RFC 4409 client mail submission to an email server is supposed to use port 587. Server to server SMTP relays are to use port 25. Is this how I "should" configure my Postfix / Dovecot services to run? Currently my Postfix server now is running on TCP 25 and so are the clients. Should I change this? Should I configure my new Postfix server to relay email on port 25 but configure the clients to relay all mail on TCP 587?

leslie_jones 03-07-2012 01:26 AM

There are a number of differing views, but I subscribe to the view that port 25 is best assigned for incoming mail/smtp only. Anything heading outbound, which requires authentication, I use a higher port assignment.

I tend to keep the two separate by using multiple instances of Postfix with their own independent inbound/outbound configs. That way I can apply fierce spam and virus scanning to incoming mail, but - rather selfishly/commonly found - less stringent rules on the outbound.

I guess one of the questions I would ask would be "What are my main clients going to be, and how much desktop to desktop hoping are you going to have to do?"

Port 465 is also worth mentioning. I'm sure I had some issues with Microsoft clients in the dim and distance past and that port played a part in it - but don't quote me on it!

Just my view, but I'm certainly no expert.


All times are GMT -5. The time now is 07:52 AM.