I need to modify Postfix to listen to port 587
Mountain Lion Server OS X 10.8.4
Running Mail service with Postfix and Dovecot. In production with several mailboxes.
I need to modify Postfix to listen to port 587. I should be able to telnet to port 587, and finally send mail via 587.
587 already redirects to 25 via the firewall, but external devices need to visit the internal subnet without modifications to the mail app.
At this stage I just want to get it working with password authentication. SSL is a project for another day.
Here's my understanding of the OS X Postfix config:
/etc/services file:
Maps service names to port numbers. Port 25 is "smtp" and port 587 is "submission".
/etc/postfix/master.cf file:
Loads Postfix preferences. Service configurations for "smtp" and "submission" are listed at the top of the file. Each service configuration can be modified with parameters (-o variable_name_here=value_here).
I found many discussion boards with instructions for enabling 587. They suggest removing the comment syntax for the existing "submission" line:
# submission inet n - - n - smtpd
My server didn't have a comment, the line was already enabled:
submission inet n - - n - smtpd
I restarted services and 587 didn't work.
Then I tried a more direct approach:
587 inet n - - n - smtpd
This had no effect.
After each attempt to enable 587 I test with:
telnet 127.0.0.1 587
And I get: Connection Refused
I used the Server app and turned Mail off and on. This stops and starts Postfix.
I also used commands to restart Postfix:
postfix stop
postfix start
sudo postfix stop
sudo postfix start
postfix reload
sudo postfix reload
Nothing opens 587. Any ideas? Thanks in advance for your insights.
-SE30Emulation
Mac Pro, OS X Mountain Lion (10.8.4)