Bug 201157 - RPM update replaces amavisd.conf
Summary: RPM update replaces amavisd.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: amavisd-new
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Steven Pritchard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-03 09:19 UTC by Dennis Wagelaar
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-05 23:11:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dennis Wagelaar 2006-08-03 09:19:15 UTC
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):
amavisd-new-2.4.2-2.fc4

How reproducible:
Yum automatic update.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Amavisd restarts and uses new "default" config file.

Expected results:
Amavisd restarts and uses site-specific, customised config file.

Additional info:
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
virusalert. This has gotten me in trouble with upstream mail operators.

Comment 1 Steven Pritchard 2006-08-03 18:19:18 UTC
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 
as expected.)

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?

Comment 2 Dennis Wagelaar 2006-08-05 19:11:37 UTC
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.

Comment 3 Steven Pritchard 2006-08-05 23:11:54 UTC
(In reply to comment #2)
> 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?

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.


Note You need to log in before you can comment on or make changes to this bug.