On Monday 11 April 2005 18:56, Salvatore Toribio wrote:

> http://toribio.apollinare.org/qmail-scanner/
>
> Read carefully the docs and enable settings-per-domain, you need
to
> add at least one entry (i.e. just your installed scanners for one
> domain) in the settings_per_domain.txt and generate the DB. Then
QS
> will run all the scanners for each rcpt-to in a multiple
recipients
> message.

Sorry but I'm still confused. I've downloaded the patch but I can't
find
the part of the source with the iteration of the parameter '-u' of
the
spamassassin call.

I'm sorry for my little understanding but here are my thoughts.

- mails with 'multiple rcpt-to lines' have to be piped multiple
times to
spamassassin to make sure every recipient get it's own preferences.


Yes, it works in this way.

- the call for spamassassin is in the sub routine 'spamassassin' or 'spamassassin_alt'. The parameter -u is build from '$cmdline_recip'
and
this is the stripped and lower cased version from '$one_recip'.


You will have to surf over the code to understand it, in the routine settings_p_d (I'm not sure if this) you will find that if there are multiple recipients they are stored in a hash and the one_recipient becomes every recipient...


- and '$one_recip' is set in the big 'eval' block of the main part.
But
the routine scanloop doesn't change '$one_recip' so I'm assuming
that
the content will be fixed and not changed. Therefore spamassassin
will
always called with the same '-u' parameter.

Where is my error?

Try it, and you will see in the log that spamassassin is runned for each recipient. don't enable debug and you will have a clear log like this:


+++ starting debugging for process 27222 (ppid=27219) by uid=81
w_c: message size 16271 bytes
w_c: elapsed time from start 0.839719 secs
return-path='[EMAIL PROTECTED]', recips='[EMAIL PROTECTED],[EMAIL PROTECTED]'
from='"anybody" <[EMAIL PROTECTED]>', subj='bla bla bla', via SMTP from 203.96.16.164
s_p_d: we have multiple recipient, checking each of them
s_p_d: rcpt match '[EMAIL PROTECTED]', scanners 'sophie_scanner,spamassassin,perlscan_scanner'
sophie: finished scan in 0.08587 secs
SA: REPORT hits = 6.4/6.5
0.0 HTML_MESSAGE BODY: HTML included in message
0.1 HTML_FONT_BIG BODY: HTML tag for a big font size
0.0 HTML_30_40 BODY: Message is 30% to 40% HTML
6.2 BAYES_99 BODY: Bayesian spam probability is 99 to 100%
[score: 1.0000]
SA: finished scan in 8.612108 secs - hits=6.4/6.5
p_s: finished scan in 0.021834 secs
ini_sc: finished scan of "/var/spool/qmailscan/tmp/
proxy2111315056473227222"...
s_p_d: rcpt match '[EMAIL PROTECTED]', scanners 'sophie_scanner,spamassassin,perlscan_scanner'
sophie: already checked and clear, skip
SA: finished scan for [EMAIL PROTECTED] - hits=6.4/6.5
p_s: already checked and clear, skip
ini_sc: finished scan of "/var/spool/qmailscan/tmp/
proxy2111315056473227222"...
------ Process 27222/27219 finished. Total of 9.929433 secs



Regards

ST





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Qmail-scanner-general mailing list
Qmail-scanner-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to