EGOPOLY

Topics include: programming, Apple, Unix, gadgets, large-scale web sites and other nerdy stuff.

Postfix configuration on Lion and Mountain Lion Server... WTF?

2013-01-23 09:23:38

I was trying to configure SMTP on my Lion (and then Mountain Lion) Server machine in the office. It's a mac mini. I only wanted basic relaying so that the phone system can connect to it and send voicemail notifications. It had been a while since I had edited a postfix configuration, but it all came back to me quickly.


I kept editing the configs in /etc/postfix and running 'postfix reload' ; but nothing seemed to ahve any effect. I kept getting 'relay denied' errors. 

It turns out on Lion/MoLo server, the postfix configs are actually in /Library/Server/Mail/Config/postfix ; but a completely valid config is also in /etc/postfix. One minute of editing the correct files solved my problem.