[SOLVED] Amavisd hangs
When enabling AV/AS, on a certain server (5.0, upgraded to last version today) I have a runnig problem wih AMAVISD: amavisd runs on 100% processor, and seems to hang continuously. All mail is getting deferred as it cannot be passed from postfix to amavis. Disabling AV/AS is a workaround, but as this issue remains in 5.0, I'd like to find a solution.
I have been searching different fora, bugzilla's, wiki's, but I'm afraid I can't seem to find any solution on why this is happening. I already enabled some verbose loggings (smtp -v from postfix to amavis, log_level 5 in amavis), but this does not give any extra info on why Amavis itself is running loose.
Any pointers on how to start troubleshoting this?
Jan 4 17:00:05 deepthroat postfix/qmgr: 5EC4F584E1: to=<firstname.lastname@example.org>, relay=none, delay=0.14, delays=0.12/0.02/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
I'd start by verifying that the amavis user can bind to the LDAP server.
amavis user bind to LDAP
Thanks. Any pointer on the syntax? I can't find any info on this.
Originally Posted by quanah
zmlocalconfig -s ldap_amavis_password
to get the password. Then:
It'll prompt for the password. If the result is success, then the password is correct in the LDAP server DB. If you get an error, please post it. :)
ldapwhoami -x -h ldaphost.FQDN -ZZZ -D "uid=zmamavis,cn=appaccts,cn=zimbra" -W
No problem here:
zimbra@deepthroat:~$ ldapwhoami -x -h deepthroat.cafe.denbeirensystems.be -ZZZ -D "uid=zmamavis,cn=appaccts,cn=zimbra" -W
Enter LDAP Password:
Result: Success (0)
Okay, so that excludes two issues -- A password problem, or a TLS problem (The -ZZZ option forces the use of TLS). I'm not sure what then would cause Amavis to hang, I'll see if others have some idea.
I might add that this behaviour started when upgrading from the last beta to the RC, and survived when upgrading to the definitive december FOSS version.
I have a similar other server, same OS, same kind of config, which does not have the problem. It somehow started on this one (customer) setup
Hm, have you tried clearing the amavis DB on the problematic server? (See /opt/zimbra/amavisd-new-2.5.2/db), and verified that /opt/zimbra/amavisd is linked to the right release?
IIRC one of the RCs didn't migrate amavis correctly.
Soft link was ok, after moving the logs en re-enabling amavis I get this difference in db files:
I looks solved now. I monitor this a day and give feedback later.
zimbra@deepthroat:~/amavisd-new-2.5.2$ ls -l db*
-rw-r----- 1 zimbra zimbra 12288 2008-01-08 12:21 cache.db
-rw-r----- 1 zimbra zimbra 4096 2008-01-08 12:21 cache-expiry.db
-rw-r----- 1 zimbra zimbra 16384 2008-01-08 12:21 __db.001
-rw-r----- 1 zimbra zimbra 278528 2008-01-08 12:21 __db.002
-rw-r----- 1 zimbra zimbra 450560 2008-01-08 12:21 __db.003
-rw-r----- 1 zimbra zimbra 12288 2008-01-08 12:21 nanny.db
-rw-r----- 1 zimbra zimbra 12288 2008-01-08 12:21 snmp.db
-rw-r----- 1 zimbra zimbra 12288 2008-01-04 16:17 cache.db
-rw-r----- 1 zimbra zimbra 4096 2008-01-04 16:17 cache-expiry.db
-rw-r----- 1 zimbra zimbra 16384 2008-01-04 16:17 __db.001
-rw-r----- 1 zimbra zimbra 278528 2008-01-04 16:17 __db.002
-rw-r----- 1 zimbra zimbra 450560 2008-01-04 16:17 __db.003
-rw-r----- 1 zimbra zimbra 12288 2007-11-29 18:01 __db.snmp.db
I really hope that didn't come back for you ;) How is it going now? long time, but still I would like to know.
I find amavis taking up load on server and sometimes hanging up, causing postfix to defer mails. I checked amavis password with ldap server and it is connecting fine(though no success line ;)).
[zimbra@server ~]$ ldapwhoami -x -h mail.domain.com -ZZZ -D "uid=zmamavis,cn=appaccts,cn=zimbra" -W
Enter LDAP Password:
$ ls -l /opt/zimbra/amavisd
lrwxrwxrwx 1 root root 29 Jul 16 23:02 /opt/zimbra/amavisd -> /opt/zimbra/amavisd-new-2.6.4 (directory)
But I can't confirm if amavisd is linked to the right version, I can find these too in /opt/zimbra besides amavisd-new-2.6.4
and in /opt/zimbra/amavisd-new-2.6.4, this is all I could find.
$ ls -l /opt/zimbra/amavisd-new-2.6.4
-r--r--r-- 1 root root 63 Jun 17 05:21 DB_CONFIG.amavisd
drwxrwxr-x 2 root root 4096 Jul 16 23:02 sbin
any thoughts? :)