Beware postconf and newaliases

I'm going to post this to the discussions in case I'm not the only one overconfidently trusting the command line tools. This has been making me absolutely batty, and now I think I've figured it out:


Server.app relocates the postfix configuration files to /Library/Server/Mail/Config/postfix, except for aliases which it leaves in /etc.


There is a main.cf file in /etc/postfix that has a few lines at the bottom of the file, including a directive pointing to /Library/Server... as the configuration directory. I can't figure out yet what if any role that file plays.


Nothing seems to tell postconf and newaliases that the configuration directory has been moved. You can call postconf to set and query config options and it will succeed without warning. newaliases will listen to the changes made by postconf and index any new alias files you've added. Yet nothing will work.


If you use postconf to check your setup, everything will appear happy.


This can almost certainly be resolved by using the respective -c and -C options on these tools, but from here on out I'm hand editing main.cf and sticking with postaliases with absolute paths.


Now that I think of it, I'm still assuming that 'postfix reload' is working as I'd expect, and it probably isn't either.

Posted on Sep 1, 2012 10:18 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Beware postconf and newaliases

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.