One solution that may help would be to put another qmail server infront of the scanner. This gives you several advantages:
RBLSMTPD checks at the qmail level Incoming mail queuing If you have a problem with your QS/Vpopmail server you don't drop mail. Qmail sends email 1 message at a time or one address at a time. On Fri, 2003-12-19 at 04:59, [EMAIL PROTECTED] wrote: > [sorry in advance: it's a long message] > > I use since 2 years a selfmade mail system now with Qmail1.03 + > Qmail-Scanner1.20 + F-Prot + Vpopmail in a linux RedHat 7.3 box. > And I've used Spamassassin 2.61 for only 5 email account so in the past > I've set the 5 account .qmail file with correct entry and all work very > fine. > > Now I need use Spamassassin for all users so 3 days ago I've migrated my > configuration to use spamd/spamc and storing SA user preferences in a > RDBMS (MySQL). > Thanks to QS 1.20 nice feature: it call 'spamc' with '-u' option and > message recipient so spamd can retrieve user preference from DB. > > All seems to work fine BUT I've now discovered that QS sometimes (about > 1/5) fails to detect recipient. So QS call spamc without '-u' option and > so 'spamd' run as it's default user and so email are not cheched from SA > correctly. > > Around line 2054 of QS 1.20: > ----------------- > $spamc_options="$spamc_options -u \"$cmdline_recip\"" if ($cmdline_recip > ne ""); > ----------------- > $smdline_recip is equal to "" and spamc is called without -u option. > > So my new system is not reliable for spam scanning. > There is a bug in recipient name decoding ? > > > > This are correct behaviour logs (I hide with '###' some info for privacy): > > 1) The email is correctly processed by qmail: > -------QMAIL----- > Dec 19 10:14:47 mail qmail: 1071825287.208990 new msg 239238 > Dec 19 10:14:47 mail qmail: 1071825287.209087 info msg 239238: bytes 30818 > from <[EMAIL PROTECTED]> qp 28336 uid 505 > Dec 19 10:14:47 mail qmail: 1071825287.213156 starting delivery 1907: msg > 239238 to local [EMAIL PROTECTED] > Dec 19 10:14:47 mail qmail: 1071825287.213222 status: local 1/10 remote 1/20 > Dec 19 10:14:47 mail qmail: 1071825287.249314 delivery 1907: success: > did_0+0+1/ > Dec 19 10:14:47 mail qmail: 1071825287.249375 status: local 0/10 remote 1/20 > Dec 19 10:14:47 mail qmail: 1071825287.249386 end msg 239238 > ----------------- > > 2) QS find the recipient and send it to spamc with -u option: > ---------QS------- > Fri, 19 Dec 2003 10:14:45 +0100:28315: SA: run /usr/bin/spamc -f -t 120 -s > 1000000 -u "[EMAIL PROTECTED]" > < /var/spool/qmailscan/working/new/mail.#####.it107182528548328315 > ------------------ > > 3) SPAMD works ok: the user is set as '[EMAIL PROTECTED]' correctly > --------SPAMD------ > Dec 19 10:14:46 mail spamd[28328]: connection from localhost.localdomain > [127.0.0.1] at port 56984 > Dec 19 10:14:46 mail spamd[28328]: processing message <[EMAIL PROTECTED]> > for [EMAIL PROTECTED]:511. > Dec 19 10:14:47 mail spamd[28328]: clean message (0.6/500.0) for > [EMAIL PROTECTED]:511 in 0.5 seconds, 30180 bytes. > ------------------- > > > > And now the problem: > > 1) QMAIL works ok: > ------QMAIL----- > Dec 19 09:49:07 mail qmail: 1071823747.217134 new msg 202098 > Dec 19 09:49:07 mail qmail: 1071823747.217237 info msg 202098: bytes > 131899 from <[EMAIL PROTECTED]> qp 16468 uid 505 > Dec 19 09:49:07 mail qmail: 1071823747.221246 starting delivery 1606: msg > 202098 to local [EMAIL PROTECTED] > Dec 19 09:49:07 mail qmail: 1071823747.221314 status: local 1/10 remote 0/20 > Dec 19 09:49:07 mail qmail: 1071823747.255884 delivery 1606: success: > did_0+0+1/ > Dec 19 09:49:07 mail qmail: 1071823747.255944 status: local 0/10 remote 0/20 > Dec 19 09:49:07 mail qmail: 1071823747.255954 end msg 202098 > ---------------- > > 2) QS has called 'spamc' without '-u' option because (I suppose) > $cmdline_recip is empty: > -----QS----- > Fri, 19 Dec 2003 09:49:02 +0100:16408: SA: run /usr/bin/spamc -f -t 120 -s > 1000000 < /var/spool/qmailscan/working/new/mail.goweb.it > 107182374248316408 > ------------- > > 3) SPAMC->SPAMD has not user so 'spamd' run as it's default user (qmailq): > -----SPAMD----- > Dec 19 09:49:07 mail spamd[24804]: connection from localhost.localdomain > [127.0.0.1] at port 54260 > Dec 19 09:49:07 mail spamd[16465]: processing message > <[EMAIL PROTECTED]> for qmailq:511. > Dec 19 09:49:07 mail spamd[16465]: clean message (1.1/500.0) for > qmailq:511 in 0.2 seconds, 131335 bytes. > --------------- > > 4) User 'qmailq' has not preference in SA database, so SA scan email in a > incorrect way. > > > > I can help QS author to solve this 'bug' (??). > How can I help you ? > > > Many thanks > (sorry for my english lang not so good). > > > > > > ------------------------------------------------------- > 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 Ron Culler ------------------------------------------------------- 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