Changing SMTP port in postfix mail server

Published February 1, 2010 by Siva

The default SMTP port is 25. In Postfix we can change it to some other port (say 2525) using the following steps.

Open the file master.cf.

$  vi /etc/postfix/master.cf

Add the following line to the file.

2525 inet n – n – – smtpd

Restart postfix.

$ /etc/init.d/postfix restart

You can check the connection to the new port using telnet. Also make sure that the new port is not blocked in the server firewall.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: