Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-06-2012, 07:54 AM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question 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?
Old 03-07-2012, 01:26 AM   #2
Registered: Sep 2011
Posts: 130

Rep: Reputation: Disabled
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.


25, 587, ports, postfix, relay

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] configuring postfix, trying to deliver mail, even local doesn’t arrives jstitch Linux - Server 2 08-04-2010 09:41 AM
Postfix,Open web mail Mail Server Hostname /FQDN Porblem farrukhndm Linux - Server 7 02-18-2009 06:35 PM
Ubuntu server with postfix. My mail goes to Spam in Gmail and Yahoo Mail. Ideeas? bob808 Linux - Server 4 02-07-2009 04:11 PM
Configuring Mail Proxy ( MTA Postfix ) antodeepak Linux - General 3 09-08-2006 06:44 AM
configuring mail server (postfix+fetchmail+procmail) amolchikhale Linux - Networking 0 08-01-2003 04:59 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:47 AM.

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