Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Port 25 listening and master.cf' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Port 25 listening and master.cf
Authored by: Rainy Day on Jun 04, '06 12:01:57PM
I believe that Apple's configuration (i.e. to listen to port 25) is correct, and that what your procedure is doing is disabling that feature (in master.cf), only to re-enable it again another way.

While Apple's default configuration listens to port 25, it only accepts connections from localhost! That behavior is exactly what would be desired to only allow local outgoing mail through the SMTP server, and it is set toward the end of main.cf with this line:

inet_interfaces = localhost

So it looks to me that Apple has Postfix properly configured and all that you need to do is configure launchd to call Postfix whenever a local connection to Port 25 is attempted. Your procedure should be able to be reduced to just that; everything else seems to be unnecessary (e.g. changes to /etc/postfix/master.cf and /etc/hostconfig). And that configuration should be made easier by using /Developer/Applications/Utilities/Property List Editor.app/, if you have the Developer Tools installed.

I didn't test this out, however, because my application is for Postfix to run as a deamon to constantly accept connections from the outside world (this is how i learned that Apple disabled external connections by their $inet_interfaces setting). For my application, i had to disable this by commenting out Apple's setting, and also set the variables $myhostname, $mydomain and $mydestination.

Important note for those running Postifx daemons: When changing the setting of $inet_interfaces, issuing a postfix reload will not do the trick; you must do a postfix stop followed by postfix start!

[ Reply to This | # ]

Port 25 listening and master.cf
Authored by: airbedman on Nov 21, '07 05:02:52PM

Hi,

I'm trying to implement this is Leopard, but its not working and I keep getting the following error in my mail.log

postfix/smtpd[269]: error: incorrect SMTP server privileges: uid=xxx euid=xxx
postfix/smtpd[269]: fatal: the Postfix SMTP server must run with $mail_owner privileges

any ideas??



[ Reply to This | # ]