I would like to see UCR settings for the spam kill level in amavis. 5 is a good default for marking, but I would like to have 10 be a level which simply discards the spam. I don’t even want to see it in the spam folder. To be safe this setting could be turned off by default and be set by the user themselves when enabled.
Also I’d like to have sender restrictions in postfix so we could have domain based blacklist and/or whitelists from UCR.
As it stands right now it appears I will have to edit templates and create my own variables to implement these two features. It seems simply editing config files doesn’t work as they get regenerated.
You don’t have to edit templates for this particular feature. Just use main.cf.local (don’t forget to ucr commit /etc/postfix/main.cf after changes to main.cf.local).
Thanks for that. I didn’t realize. Is the .local file option only for certain services or does that convention work for any service which is implemented with the UCR templating system? Could I do the same with Amavis?
it’s something specific to Postfix as adding custom options to main.cf was requested over and over again by customers.
For Amavis it’s even easier. Amavis will read all files in /etc/amavis/conf.d in alphabetical order. Each file is a Perl file. The latter means that assigning to a variable that’s already been set in an earlier file will simply overwrite that value with the one from the later file.
In other words: create e.g. /etc/amavis/conf.d/99-mysettings and overwrite whichever variable you want to change.