How to add another listening port to Postix mail server

Edit /etc/services file and declare another network service. This file maps services name to their underlying assigned port numbers and protocol types. For example add the following smtp2 service

...

smtp 25/tcp mail smtp2 2525/tcp mail ..

You just have to choose a name, a port (here 2525) and a protocol (tcp).

Then in Postfix's master.cf file, add the smtp2 service declaration:

smtp      inet  n       -       -       -       -       smtpd

smtp2 inet n - - - - smtpd

Finally reload Postfix

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>. The supported tag styles are: <foo>, [foo].

More information about formatting options