[Mimedefang] SpamAssassin via mimedefang is slow

Daniel Bourque dbourque at weatherdata.com
Thu Nov 6 17:19:35 EST 2008


Thanks for the reply

in deed ,

/usr/local/bin/mimedefang.pl :
....

    if (!defined($SASpamTester)) {
        if (!defined($config)) {
            if (-r "/etc/mail/sa-mimedefang.cf") {
                $config = "/etc/mail/sa-mimedefang.cf";
            } elsif (-r "/etc/mail/spamassassin/sa-mimedefang.cf") {
                $config = "/etc/mail/spamassassin/sa-mimedefang.cf";
            } elsif (-r "/etc/mail/spamassassin/local.cf") {
                $config = "/etc/mail/spamassassin/local.cf";
            } else {
                $config = "/etc/mail/spamassassin.cf";
            }
        }

...

[root at mail2 mail]# time spamassassin 
--config-file=/etc/mail/spamassassin/local.cf -t < /tmp/junk6 > /dev/null

real    0m0.772s
user    0m0.713s
sys     0m0.047s

Same result ( It is the same config anyways )

[root at mail2 mail]# ll sa-mimedefang.cf
lrwxrwxrwx 1 root root 21 Oct 28 17:20 sa-mimedefang.cf -> 
spamassassin/local.cf


I am going to go put some more debug statements in mimefilter.pl to find 
which spamassassin module call is taking so long...


-- 
Dan

>>>>


Same modules, but likely a different configuration.  Unless otherwise
specified in your filter, MIMEDefang will check for and use the first
one of:
    /etc/mail/sa-mimedefang.conf
    /etc/mail/spamassassin/sa-mimedefang.conf
    /etc/mail/spamassassin/local.cf
    /etc/mail/spamassassin.cf
that it finds.

Try running /usr/bin/spamassassin with the same configuration file as
your MIMEDefang install and see if it's just as slow.

Cheers,
Dave





More information about the MIMEDefang mailing list