On Mon, Jul 10, 2023 at 04:56:31PM +0100, Ken Gillett via Postfix-users wrote:

> Ok, so logged in on Mac and used the Server admin tool to change a
> setting (added a relay host). The main.cf in
> /Library/Server/Mail/Config/postfix was updated. So that's what MacOS
> thinks is the config dir as well as the actual running 'master'
> process.
> 
> However, postconf -n does not list the relayhost parameter and
> postconf -p shows it as still being unset.

Likely the compiled-in default configuration directory is different from
the override "-c" value in the LaunchDaemon config.  To see the live
configuration, as I mentioned upthread:

    $ export MAIL_CONFIG=/Library/Server/Mail/Config/postfix
    $ postconf -n

Or, if you prefer:

    $ postconf() { command postconf -c /Library/Server/Mail/Config/postfix 
"$@"; }
    $ postconf -n

The shell function can be added to ".bashrc" or whatever your shell
uses.

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to