New configuration files for Amavisd-new on Debian
If you install the new 2.3.3 version of amavisd-new via the Debian package, you are in for a few (possibly unpleasant) surprises. Among other changes, /etc/amavis/amavisd.conf no longer works.
The new configuration files in /etc/amavis/conf.d there are:
01-debian
05-node_id
15-av_scanners
15-content_filter_mode
20-debian_defaults
30-template_localization
50-user
To my dismay I also found that virus and spam filtering were also rendered inoperative although mail kept passing through Amavis just fine…
The header of 50-user says : “Place your configuration directives here. They will override those in earlier files“. It should have said “Place most of your configuration directives here” because there is another place where a couple of essential configuration parameters must be set, and it is not made obvious nor even pointed to by the documentation or anything encountered on forums and mailing list. The header of /etc/amavis/conf.d/15-content_filter_mode mentions : “You can modify this file to re-enable SPAM checking through spamassassin and to re-enable antivirus checking“. And indeed, commenting out the couple of lines that obviously needed being commented out re-enabled my favorite content filters.
And the lesson of the day : just porting the old configuration does not cut it, you really need to read every new configuration file – RTFC (Read The Fine Configuration)…
5 responses to “New configuration files for Amavisd-new on Debian”
Leave a Reply
You must be logged in to post a comment.
‘zless changelog.Debian.gz’
* (rw)15-content_filter_mode: added: Make it easy for the user to
re-enable spam checking and antivirus checking
Enjoy RTFM ! ;)
Hindsight : always 20/20… I have actually read the changelog but it did not spring to my mind that this line contained the solution to my problem.
Had you not known the solution, would the changelog have made obvious sense to you ? I believe that something as fundamental as re-enabling a previously enabled service that an automated change disabled should have been the object of a proeminent warning of some kind…
Maybe I should have taken the release title as a warning… “A Xmas minor miracle” sounds like it contains a bit too much magic for my tastes…
But then again we 31337 sysadmins don’t need the handholding – sysadmining would be boring if there was not the sense of adventure… It is all about how much adventure is the right dose…
Debian : by developpers and sysadmins for developpers and sysadmins. I love it and I don’t complain : if I really wanted the 100% no surprises production release distribution I would not be running my mix of unstable/testing with a sprinkle of extenal packages…
And besides we are dealing with a changelog, not technicaly part of the manual. So it is not a case of “RTFM” but of “RTFC” !
Nitpicking is one of the small pleasures that make life so enjoyable…
to you (life so enjoyable…) O;-)
how to activeted 7z ?
when i write in 01-debian :
$7z = [‘7zr’,’7za’,’7z’];
i have on syslog :
Starting amavisd: Bareword found where operator expected at /etc/amavis/conf.d/01-debian line 47, near “$7z”
(Missing operator before z?)
Error in config file “/etc/amavis/conf.d/01-debian”: syntax error at /etc/amavis/conf.d/01-debian line 47, near “$7z ”
(failed).
invoke-rc.d: initscript amavis, action “restart” failed.
someone know the syntax?
thinks for your help
best regards
philippe