Results 1 to 1 of 1
-
28th Sep 2018, 06:03 AM #1
Configure Postfix to use an alternate port for SMTP
- Log into your server as root, or any other user with the ability to sudo.
- CD to /etc/postfix/
- Create a backup of master.cf (cp master.cf master.cf-bak)
- Open master.cf with a text editor
- Find the line labeled: "smtp inet n......"
- Just below the line, insert a new line containing the following:
587 inet n - n - - smtpd
- 587 can be changed to match the port that you wish to use.
- Save the file, and exit the text editor.
- Run "/etc/init.d/postfix restart" to restart Postfix.
Configure the firewall to accept incoming connections
- Add the new port to iptables by running: "iptables -A INPUT -p tcp --dport 587 -j ACCEPT", changing 2525 to the port you choose.
- Run "/etc/init.d/iptables save" to save the rule.
- Run "/etc/init.d/iptables restart" to apply the new rule.
Kepler Reviewed by Kepler on . Configure Postfix to use an alternate port for SMTP Log into your server as root, or any other user with the ability to sudo. CD to /etc/postfix/ Create a backup of master.cf (cp master.cf master.cf-bak) Open master.cf with a text editor Find the line labeled: "smtp inet n......" Just below the line, insert a new line containing the following: 587 inet n - n - - smtpd Rating: 5
- Log into your server as root, or any other user with the ability to sudo.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
themaManager - edit and manage...
Version 4.04 released. Open older version (or...