Problems on Solaris x86

Pascal Maes pascal.maes at elec.ucl.ac.be
Mon Aug 14 09:20:52 IST 2006


Le 13 août 06 à 10:14, Pascal Maes a écrit :

> Hello,
>
> I have installed MailScanner (4.55.10-3) on a solaris 10 (x86) box.
> MailScanner is using SpamAssassin 3.1.4
>
> I'm also using postfix and MailScanner is running as the user postfix.
>
> MailScanner, in debugging mode, is going fine.
> When I run spamassassin -D --lint (as user postfix) all is going  
> fine too.
>
> But when I launch MailScanner in "normal" mode (with fork), the  
> call to
>
> $self->do_full_eval_tests($priority, \$fulltext);
>
> never finish;
>
> In MailScanner, we have
>
> $MailScanner::SA::SAspamtest = new Mail::SpamAssassin(\%settings);
> $MailScanner::SA::SAspamtest->compile_now();
>
> That's this last call which never finish except if the line
> $self->do_full_eval_tests($priority, \$fulltext);
> is commented.
>
>
> Everything is going fine with the same config on a linux box or on  
> a solaris 9 sparc box
>
>
> Any idea ?
>

I have made some other tests :

    - reactivate the line do_full_eval_tests
    - suppress everything except local.cf, init.pre, v310.pre anfd  
v312.pre
      from /etc/mail/spamassassin and comment all lines in this files.

Restarting MailScanner and commenting out one line at a time, I found  
that the problem is with

loadplugin Mail::SpamAssassin::Plugin::Razor2



When I test spamassassin, all is working fine :

# spamassassin -D < sample-nonspam.txt |& grep -i razor
[12725] dbg: config: read file /usr/local/share/spamassassin/ 
25_razor2.cf
[12725] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from  
@INC
[12725] dbg: razor2: razor2 is available, version 2.82
[12725] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::Razor2=HASH(0x8e53c24)
[12725] dbg: plugin: registering glue method for check_razor2_range  
(Mail::SpamAssassin::Plugin::Razor2=HASH(0x8e53c24))
[12725] dbg: razor2: part=0 engine=4 contested=0 confidence=-17
[12725] dbg: razor2: part=0 engine=8 contested=0 confidence=0
[12725] dbg: razor2: part=0 engine=8 contested=0 confidence=0
[12725] dbg: razor2: part=0 engine=8 contested=0 confidence=0
[12725] dbg: razor2: part=0 engine=8 contested=0 confidence=0
[12725] dbg: razor2: part=0 engine=8 contested=0 confidence=0
[12725] dbg: razor2: part=0 engine=8 contested=0 confidence=0
[12725] dbg: razor2: results: spam? 0
[12725] dbg: razor2: results: engine 8, highest cf score: 0
[12725] dbg: razor2: results: engine 4, highest cf score: 0
[12725] dbg: plugin: registering glue method for check_razor2  
(Mail::SpamAssassin::Plugin::Razor2=HASH(0x8e53c24))


but when the compile_now() function is called from the main  
MailScanner process, it doesn't finish and comsummes high CPU

# ps -ef | grep MailScanner
     root 12755  1099   0 10:18:29 pts/5       0:00 grep MailScanner
postfix 12714 12713  50 10:13:31 ?           4:57 /usr/bin/perl -I/ 
opt/MailScanner/lib /opt/MailScanner/bin/MailScanner
postfix 12713  2400   0 10:13:31 ?           0:00 /usr/bin/perl -I/ 
opt/MailScanner/lib /opt/MailScanner/bin/MailScanner

#top
load averages:  1.04,  1.05,   
1.02                                                                     
                                              10:18:12
50 processes:  47 sleeping, 3 on cpu
CPU states: 49.5% idle, 50.2% user,  0.3% kernel,  0.0% iowait,  0.0%  
swap
Memory: 2047M real, 1146M free, 680M swap in use, 2820M swap free

    PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
12714 postfix    1  20    0   53M   41M cpu/1    4:40 49.92% MailScanner
12749 root       1  59    0 3184K 1220K cpu/0    0:00  0.01% top



--
Pascal





More information about the MailScanner mailing list