I've made some debugging: -----------QS 1.20 code----------- sub spamassassin { #Only run SA if mail is from a "remote" SMTP client, or QS_SPAMASSASSIN #is defined via tcpserver... return if (defined($ENV{'RELAYCLIENT'}) && !defined($ENV{'QS_SPAMASSASSIN'})); #SpamAssassin client scanner my ($spamassassin_found,$spamassassin_status); my ($start_spamassassin_time)=[gettimeofday]; my ($sa_tag,$DD,$spamassassin_status,$stop_spamassassin_time,$spamassassin_time,$cmdline_recip); my ($sa_status)=0; my ($sa_score)=0; my ($sa_max)=0;
&debug("ONE_RECIP: \"$one_recip\""); #Cleanup $one_recip so it's usable from the commandline... #any char that isn't supported to changed into an '_' ($cmdline_recip=$one_recip)=~s/[EMAIL PROTECTED]/_/gi; $cmdline_recip=~/^([EMAIL PROTECTED])$/i; $cmdline_recip=tolower($1); $spamc_options="$spamc_options -u \"$cmdline_recip\"" if ($cmdline_recip ne ""); &debug("SA: run $spamc_binary $spamc_options < $scandir/$wmaildir/new/$file_id"); ---------------------- Well, when there is the problem, $one_recip is EMPTY so, after cleanup code, $cmdline_recip is empty too. Why ? When all it's ok, $one_recip has correct recipient address. My recente statistics show that this problem is expected on 1/4 incoming email. It's a big problem :-)))) ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general