2

I hope this is the right site to ask this question. I have successfully configured OS X server (3.0.2 on mavericks) mail service, but if i edit my /Library/Server/Mail/Config/postfix/main.cf (postfix config file), it won't affect the behaviour of the server mail service.

For example I changed smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated to smtpd_client_restrictions = reject and the same with smtpd_recipient_restrictions, but i'm still able to login to the SMTP Server and send emails. I always did sudo postfix reload and sudo serveradmin stop mail, sudo serveradmin start mail.

What am i doing wrong?

  • Are the more config files which can be used? Looks like your editing an unused config file. – Rob Feb 1 '14 at 10:45
  • Not really, actually that must be the right/main config file (postfix.org/postconf.5.html). Indeed there is master.cf, but i think that's not the right file to make this changes. – Leonardo Feb 1 '14 at 11:00
2

To check which file your postfix is using do a ps ax | grep master at the command line and you should see a line with

master -c /Library/Server/Mail/Config/postfix

which tells you that it is indeed using the files in that directory.

If it is using those files then I'd try logging in from another machine using telnet and see what is says.

telnet mailserver.example.com 25

If you want to try sending a message "by hand" then check out http://www.smtp2go.com/articles/smtp-protocol for some good notes on SMTP.

It is here that Postfix will probably reject your email. If it does reject your email then set smtpd_client_restrictions back to the default and see if it then allows your email through.

  • Yes that's right.. i see it. – Leonardo Feb 2 '14 at 0:22
  • Yes and there is the program /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd (master) that uses it – Leonardo Feb 2 '14 at 0:25
  • Ok now i know that OSX Server is using the config file under /Library/Server/Mail/Config/postfix, but why doesn't it react on the changes? – Leonardo Feb 2 '14 at 0:29
  • 1
    That sounds right. SMTP is terribly insecure so it lets you connect but then rejects any mail you send. – Tony Williams Feb 2 '14 at 2:10
  • 1
    Actually you don't. You can connect to it and not send mail without authorisation. Try telnetting to smtp.gmail.com on port 25 and you connect. – Tony Williams Feb 2 '14 at 10:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .