Felix Schwarz wrote:
Eric Yellin schrieb:
'./dspam --process --user zimbra --deliver=spam,innocent --stdout <
email.txt'
So it has something to do with dspam (not with some glue code in
amavisd-new/zimbra).
Takes over 3 minutes... when running the same with user 'root' it took
a split second.
It depends on your user's profile.
OK I seem to have found the culprit. It seems to be the size of the
signature directory... Felix, I think you suspected this earlier...
I renamed the 'zimbra' signature directory and let DSPAM recreate a new
one. Once I did that spam checking was instantaneous.
What does DSPAM do? with the signature files? Why does it take so long?
Does it grep (or similar) all the signature files? The signature
directory has over 400MB in over 35,000 files.
How can this be avoided?
To enable debug logging I need to have DSPAM compiled with the
--enable-debug option. It is not...
Sure? Quoting yourself:
Configuration parameters: --prefix=/opt/zimbra/dspam-3.6.2
--sysconfdir=/opt/zimbra/conf --with-logdir=/opt/zimbra/log
--enable-daemon --enable-large-scale
--with-storage-driver=hash_drv,mysql_drv
--with-mysql-includes=/opt/zimbra/mysql/include/mysql
--with-mysql-libraries=/opt/zimbra/mysql/lib --enable-debug
--enable-clamav
You are right of course.
Here is a sample output with a 5 minute + delay:
2386: [02/12/2007 07:34:21] No QuarantineAgent option found. Using
standard quarantine.
2386: [02/12/2007 07:34:21] DSPAM Instance Startup
2386: [02/12/2007 07:34:21] input args: ./dspam --process --debug --user
zimbra --deliver=spam,innocent --stdout
2386: [02/12/2007 07:34:21] pass-thru args:
2386: [02/12/2007 07:34:21] processing user zimbra
2386: [02/12/2007 07:34:21] uid = 501, euid = 501, gid = 500, egid = 500
2386: [02/12/2007 07:34:21] loading preferences for user zimbra
2386: [02/12/2007 07:34:21] default preferences empty. reverting to
dspam.conf preferences.
2386: [02/12/2007 07:34:21] Loading preferences from dspam.conf
2386: [02/12/2007 07:34:21] using
/opt/zimbra/dspam-3.6.2/var/dspam/opt-in/zimbra.dspam as path
2386: [02/12/2007 07:34:21] using
/opt/zimbra/dspam-3.6.2/var/dspam/opt-out/zimbra.nodspam as path
2386: [02/12/2007 07:34:21] sedation level set to: 5
2386: [02/12/2007 07:39:43] Whitelist threshold: 10
2386: [02/12/2007 07:39:43] [graham] [0.000100] Subject*POS (1frq, 0s, 53i)
2386: [02/12/2007 07:39:43] [burton] [0.000100] Subject*POS (1frq, 0s, 53i)
2386: [02/12/2007 07:39:43] [graham] [0.000100] X-Spam-Status*1+495
(1frq, 0s, 11i)
2386: [02/12/2007 07:39:43] [burton] [0.000100] X-Spam-Status*1+495
(1frq, 0s, 11i)
2386: [02/12/2007 07:39:43] [graham] [0.000100] X-MIMEOLE*V5+00 (1frq,
0s, 57i)
2386: [02/12/2007 07:39:43] [burton] [0.000100] X-MIMEOLE*V5+00 (1frq,
0s, 57i)
2386: [02/12/2007 07:39:43] [graham] [0.000100] X-Spam-Status*ROUND
(1frq, 0s, 29i)
...
Thanks, Eric