If you need to change default mail delivery port of Postfix mail server from 25 to any other port lets say to 995. Here is how:
Edit /etc/postfix/master.cf – a small note to make here is master.cf is located on same location on mostly all Linux distributions as well as FreeBSD.
Find line with:
smtp inet n – n – – smtpd
Change smtp – which is actually a reference for port 25 to whatever port you need – i.e. 995 After change line should look like:
995 inet n – n – – smtpd
Save config file and restart postfix to load new settings:
# /etc/rc.d/postfix restart
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: starting the Postfix mail system
More helpful Articles
Tags: default mail, default port, Linux, linux distributions, mail delivery, mail server, postfix mail system, server smtp, smtp, SMTPD