Bug 9461 - amavisd-new fails to start
Summary: amavisd-new fails to start
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thomas Spuhler
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-20 03:39 CET by Vladimir Gurevich
Modified: 2013-03-23 15:30 CET (History)
0 users

See Also:
Source RPM: amavisd-new-2.8.0-9.mga3
CVE:
Status comment:


Attachments

Description Vladimir Gurevich 2013-03-20 03:39:24 CET
Description of problem:

amavisd-new doesn't seem to be fully adapted to the new filesystem layout and fails to start because of the missing directories

Version-Release number of selected component (if applicable):

2.8.0-9.mga3

How reproducible:

Always

Steps to Reproduce:
1. systemctl start amavisd.service
2. systemctl status amavisd.service


Temporary workaround to prove the point:

mkdir -p /var/run/amavis/tmp /var/run/amavis/db
chown -R amavis.amavis /var/run/amavis

This probably needs to be added to /etc/init.d/amavisd

After that amavis starts just fine (another problem is that by default it listens on port 100024, though Postfix expects it to listen on 10025, that is fixed by editing /etc/amavisd/amavisd.conf). 

Unless there is another replacement for a good email content filter, this is a big deal.


Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-03-21 00:15:24 CET

Assignee: bugsquad => thomas

Thomas Spuhler 2013-03-21 15:31:16 CET

Status: NEW => ASSIGNED

Comment 1 Thomas Spuhler 2013-03-22 22:15:08 CET
Did you restart the box after installing amavisd-new.
The files are being created at boot. My box shows after e-boot:
# systemctl status amavisd
amavisd.service - LSB: A Mail Virus Scanner
          Loaded: loaded (/etc/rc.d/init.d/amavisd)
          Active: active (running) since Fri, 2013-03-22 14:06:44 MST; 1min 35s ago
         Process: 1136 ExecStart=/etc/rc.d/init.d/amavisd start (code=exited, status=0/SUCCESS)
        Main PID: 1440 (/usr/sbin/amavi)
          CGroup: name=systemd:/system/amavisd.service
                  â 1440 /usr/sbin/amavisd (master)
                  â 1877 /usr/sbin/amavisd (virgin child)
                  â 1879 /usr/sbin/amavisd (virgin child)

Mar 22 14:06:44 localhost amavis[1440]: Found decoder for    .arj  at /usr/bin/7z
Mar 22 14:06:44 localhost amavis[1440]: Found decoder for    .rar  at /usr/bin/7z
Mar 22 14:06:44 localhost amavis[1440]: Found decoder for    .swf  at /usr/bin/7z
Mar 22 14:06:44 localhost amavis[1440]: Found decoder for    .lha  at /usr/bin/7z
Mar 22 14:06:44 localhost amavis[1440]: Found decoder for    .iso  at /usr/bin/7z
Mar 22 14:06:44 localhost amavis[1440]: Found decoder for    .exe  at /usr/bin/lha
Mar 22 14:06:44 localhost amavis[1440]: No decoder for       .lrz
Mar 22 14:06:44 localhost amavis[1440]: No decoder for       .zoo
Mar 22 14:06:44 localhost systemd[1]: Started LSB: A Mail Virus Scanner.
Mar 22 14:06:44 localhost amavis[1440]: Deleting db files  in /var/run/amavis/db
Mar 22 14:06:44 localhost amavis[1440]: Creating db in /var/run/amavis/db/; BerkeleyDB 0.51, libdb 5.3
Comment 2 Thomas Spuhler 2013-03-23 15:30:51 CET
The line in the %post section was wrong.
Thanks for the bug report. I believe it's now solved

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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