Thursday, June 14, 2012

How to change default SMTP 25 port in postfix on CentOs?

How to change default SMTP 25 port in postfix on CentOs?

Check and open master.cf

vi /etc/postfix/master.cf
-------------------------------------------------------------------
#Comment default line as below.
#smtp      inet  n       -       n       -       -       smtpd
#Add new line with port as you like as below.
9485      inet  n       -       n       -       -       smtpd
-------------------------------------------------------------------

Then you need to restart postfix service.

/etc/init.d/postfix restart

And configue you SMTP as

Hostname            Port no   Username  Password   
SMTP.domain.com     9485       abc      passwd

  
Thats it.!