Red Hat Bugzilla – Bug 201157
RPM update replaces amavisd.conf
Last modified: 2007-11-30 17:11:39 EST
Description of problem:
When yum automatically updates the amavisd-new rpm, it replaces the amavisd.conf
file (saving the old amavisd.conf as .rpmsave).
Version-Release number of selected component (if applicable):
Yum automatic update.
Steps to Reproduce:
Amavisd restarts and uses new "default" config file.
Amavisd restarts and uses site-specific, customised config file.
When amavisd starts using a default config file, it starts sending spam bounces
(i.e. it starts generating spam) and sends any virus alerts to
email@example.com. This has gotten me in trouble with upstream mail operators.
The config file is marked %config(noreplace) in the spec. It should never be
overwritten. (On my servers, there is now a /etc/amavisd/amavisd.conf.rpmnew
The default config in the rpm has $virus_admin and $mailfrom_notify_* set to
undef and has $final_virus_destiny set to D_DISCARD, so I can't imagine why it
would be sending any email.
Are you sure you didn't switch from dag or someone else's amavisd-new to the
one in Extras?
I indeed switched from dag's amavisd-new rpm (amavisd-new.i386 2.4.1-2.fc4.rf).
The config file location then changed from /etc to /etc/amavisd. Yum probably
did not detect an existing config file?
As for the mails (bounces, alerts) being sent: I was mistaken. These mails were
sent before the installation of the new rpm.
(In reply to comment #2)
> I indeed switched from dag's amavisd-new rpm (amavisd-new.i386
> The config file location then changed from /etc to /etc/amavisd. Yum
> did not detect an existing config file?
No, since it isn't in the same location, as far as rpm is concerned they
aren't the same file.
Cross-repo upgrades are not (and can't be) guaranteed to work.