[pfx] Re: which main.cf and postconf

2023-07-11 Thread Ken Gillett via Postfix-users
Thanks Bill. Yes I then realised it must be the case that the binaries were compiled with different defaults. Just had initially assumed they would be the same. Explains why I was seeing what I was seeing. I would strip out all the OSX Server stuff, but as my long term intention is not to keep

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Bill Cole via Postfix-users
On 2023-07-10 at 12:42:24 UTC-0400 (Mon, 10 Jul 2023 17:42:24 +0100) Ken Gillett via Postfix-users is rumored to have said: From where is postconf getting its information? Does it have a config directory hard coded? Yes. Note: # strings /Applications/Server.app/Contents/ServerRoot/usr/sbin

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
Apart from /usr/sbin/postconf, I also found:- /Applications/Server.app/Contents/ServerRoot/usr/sbin/postconf Running the latter gives entirely different output from the former and according to that, the changes to the main.cf I've made have been incorporated. So I need to check the resu

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Viktor Dukhovni via Postfix-users
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 w

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
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

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
Aha. Had not tried that (hadn't seen that as a config. parameter). postconf -d config_directory => config_directory = /etc/postfix So, despite the process itself saying it's using one directory, postconf reports a different one, the default. How would different postconf files account f

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Ken Gillett via Postfix-users
Thanks for all that and from Viktor. It was occurring to me that the hard coded parameters in question (as Viktor mentioned) get their info from the hardware at runtime. So that explains my question regarding that. I have been looking at postconf -d, -p and -n as I understand what they purport

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Bill Cole via Postfix-users
On 2023-07-10 at 05:34:44 UTC-0400 (Mon, 10 Jul 2023 10:34:44 +0100) Ken Gillett via Postfix-users is rumored to have said: It is many years since I set up postfix on my Mac server and it's use is now purely for local email, i.e. users on home network. However I have some issues with this and

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Viktor Dukhovni via Postfix-users
On Mon, Jul 10, 2023 at 09:17:52AM -0400, Viktor Dukhovni via Postfix-users wrote: > > First of all, changes I have made in main.cf are not being used. > > AFAICT I am editing the main.cf that is used:- > > > > ps ax | grep master => master -c /Library/Server/Mail/Config/postfix > > Yes, wi

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Viktor Dukhovni via Postfix-users
On Mon, Jul 10, 2023 at 10:34:44AM +0100, Ken Gillett via Postfix-users wrote: > First of all, changes I have made in main.cf are not being used. > AFAICT I am editing the main.cf that is used:- > > ps ax | grep master => master -c /Library/Server/Mail/Config/postfix Yes, with "-c" the pro

[pfx] Re: which main.cf and postconf

2023-07-10 Thread Wietse Venema via Postfix-users
Ken Gillett via Postfix-users: > What does 'postconf -d' show? "postconf -d config_directory" shows where the postconf command looks for main.cf (and master.cf). The settings in mainl.cf then determine the location of other Postfix program and data files. It would be worthwhile to find out if t