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

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

How to enable inbound TLS(starttls) in Postfix with Signed Certificate from CA(LetsEncrypt)

421 4.5.1 No more messages on this connection http://tele.dk/25153