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.!

3 comments:

cartier said...

The perfect!These articles written too great,they rich contents and data accurately.they are help to me.I expect to see your new share.
-----------------
RS Gold Runescape Gold Buy WOW Gold

SYNERGOS said...

Hey read latest linux administration book http://www.goodvalue.in/book/linux_administration/9789350044209

I found it very interesting

Kalyan Thatikonda said...

Easy to go!