Maintained by Thijmen Heuvelink

Are you facing difficulties with setting up a mail server as port 25 is already in use by Ubuntu for postfix? Follow the instructions to free up port 25.

  1. Edit the master configuration file of postfix using the following command:
vim /etc/postfix/master.cf
  1. Locate the line that specifies port 25 and modify it to use a different port, such as 2525:
smtp            inet      n      -       n       -       -        smtpd

Change it to:

2525            inet      n      -       n       -       -        smtpd
  1. Save the changes and exit the file.

  2. Apply the modifications to postfix by restarting the service:

/etc/init.d/postfix restart

This knowledge base serves as a valuable tool to simplify installations, troubleshoot common problems and to enhance the overall developer / admin experience. mail@thijmenheuvelink.nl - all rights reserved