On 26 May 2018, at 12:59, Benny Pedersen <m...@junc.eu> wrote: > just kidding, i would like to see main.cf smaller, so postconf -n gives more > settings as default from -d > > as it is now setting is more or less random default from main.cf > > keep main.cf minimal is good sense
I’m not sure what you mean, the only things you need to put in main.cf are settings that differ from the defaults. At a minimum you need maybe 20-30 lines? My postconf -n is 102 lines, and I suspect some of those could be eliminated if I went through and check the defaults (that is, the defaults would be close enough). Some of the settings probably date from when the mail server was on a T1 and I did some rate limiting and such and could be updated or eliminated. Now, I suspect that there are some defaults that should be updated (swap_bangpath allow_percent_hack are two that spring to mind) but I suspect there are reasons they haven’t. At least it looks like those two would never realistically come into play on a modern install, based on the restriction on rewrite in postfix 2.2, so it is quite possible there is no need to change these defaults at all. It might be useful, but probably not, to have a version of postconf -n that showed the default value along sinde the changed value: mailbox_size_limit = 52428800 (51200000) This is a setting I could easily eliminate as the difference between my setting ant the default is much closer than I thought it was, and it’s irrelevant on my setup because postfix doesn’t write a mailbox file. The only reason I’d need to change it is if I increased the message_size_limit beyond the 25MB it is set to currently, and that’s not going to happen. -- Secret to a happy relationship: when you're wrong, admit it. When you're right, shut up.