1

Topic: amavisd cant be started = amavisd dead but subsys locked

==== Required information ====
- iRedMail version: iRedMail-0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.6
- Related log if you're reporting an issue: screen
====

the Service amavisd can not be started

[root@ssssssslx init.d]# ./amavisd status
amavisd dead but subsys locked
---------------------------------------
[root@sssssssslx init.d]# ./amavisd restart
Shutting down amavisd: The amavisd daemon is apparently not running, no PID file /var/run/amavisd/amavisd.pid
                                                           [FAILED]

Starting amavisd:                                          [  OK  ]

its a clean minimal innstall of CentOS und i installed step for step
http://www.iredmail.org/docs/install.ir … .rhel.html
everything went fine. just the amavisd doesnt start and so no emails can be sent/received
i can not find any information on this
what is the issue there ?
any ideas ? - if you need more infos just let me know - thx

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: amavisd cant be started = amavisd dead but subsys locked

Try this:

1) Stop amavisd service first:

# service amavis stop

2) Remove its PID file, then start it again:

# rm -f /var/run/amavisd/amavisd.pid
# service amavis start

3

Re: amavisd cant be started = amavisd dead but subsys locked

you think the solution is so easy ?
there is no pid file

[root@ssdfsflx init.d]# service amavisd stop
Shutting down amavisd: The amavisd daemon is apparently not running, no PID file /var/run/amavisd/amavisd.pid
                                                           [FAILED]

[root@srafddalx init.d]# rm -f /var/run/amavisd/amavisd.pid
[root@safdafx init.d]# service amavisd start
Starting amavisd:                                          [  OK  ]

[root@safasfx init.d]# service amavisd status
amavisd dead but subsys locked
[root@servername init.d]# ps | grep ama

in the mail log is following
an 13 15:12:37 sssssssss amavis[4151]: starting. /usr/sbin/amavisd at sssssssss.sssssss.local amavisd-new-2.9.1 (20140627), Unicode aware, LANG="en_US.UTF-8"
Jan 13 15:12:37 servername amavis[4152]: (!)Net::Server: 2015/01/13-15:12:37 Can't connect to TCP port 10024 on ::1 [Cannot assign requested address]\n  at line 68 in file /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm

netstat -tulpn | grep 100
tcp        0      0 127.0.0.1:10025             0.0.0.0:*                   LISTEN      1483/master
tcp        0      0 127.0.0.1:10031             0.0.0.0:*                   LISTEN      1377/perl
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      1618/perl
udp        0      0 0.0.0.0:10000               0.0.0.0:*                               1618/perl

ps aux | grep am
clam      1179  0.0 15.9 430220 305600 ?       Ssl  11:33   0:06 clamd
root      4094  0.0  0.0  19200  1500 ?        S    15:11   0:00 dovecot/ssl-params
root      4196  0.0  0.0 103248   872 pts/2    S+   15:15   0:00 grep am

4

Re: amavisd cant be started = amavisd dead but subsys locked

Check output:

# ps aux | grep perl
# ps aux | grep master

Looks like one Amavisd progress is still running and using port 10024.