How to change Postfix default smtp port to 2525

article1

By default Postfix listens on Port 25. You can change it to any port. In our case, we would want to change it to 2525.

vi /etc/postfix/master.cf

Replace

smtp inet n - n - - smtpd

with

2525 inet n - n - - smtpd

Restart Postfix service.

systemctl restart postfix.service

Comments

Popular posts from this blog

StatusDnsQueryFailed resolving domain

How to include Gmail's Feedback-ID header in DKIM signature