I'm back and have been working all this time trying to get qmail + qmail-scanner + vpopmail + getmail to play nice together. Gour has been helping me but at this point we're both stuck. Please give me some hints ... I don't know where to look to see what's happening when qmail-inject injects the message.
My basic setup is fine ie if somebody sends me mail to a local (vpopmail) account, it gets scanned by qmail-scanner (extra headers written, and delivered).
What doesn't work, is when getmail delivers via qmail-inject, qmail-scanner doesn't scan !
/etc/tcp.smtp :
# No Qmail-Scanner at all for mail from 127.0.0.1 127.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue" # Use Qmail-Scanner with SpamAssassin on any mail from the rest of the world :allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
/var/qmail/supervise/qmail-smtpd/run
#!/bin/sh
#QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 20000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/var/qmail/bin/qmail-smtpd samuelmurez.com \
/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
here is a message that's been sent to an external address, picked up via pop3 by getmail, matched to a local directive, presumably delivered via qmail-inject (qmail-inject [EMAIL PROTECTED]), and it doesn't have any qmail-scanner headers !
X-UIDL: 1072998242.20591.yoruban.dyndns.org,S=1152
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 20589 invoked by uid 510); 1 Jan 2004 23:04:02 -0000
MBOX-Line: From [EMAIL PROTECTED] Thu Jan 1 23:04:02 2004
Delivered-To: [EMAIL PROTECTED]
Received: from pop.free.fr (213.228.0.152) by yoruban.dyndns.org with POP3
for <[EMAIL PROTECTED]>; 01 Jan 2004 23:04:02 -0000
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 30169 invoked from network); 1 Jan 2004 23:02:31 -0000
Received: from smtp4.wanadoo.fr (HELO mwinf0404.wanadoo.fr) (193.252.22.27)
by mrelay4-2.free.fr with SMTP; 1 Jan 2004 23:02:31 -0000
Received: from murez.com (ABoulogne-102-1-2-176.w193-251.abo.wanadoo.fr [193.251.61.176])
by mwinf0404.wanadoo.fr (SMTP Server) with ESMTP id 9AFB638000DC
for <[EMAIL PROTECTED]>; Fri, 2 Jan 2004 00:02:25 +0100 (CET)
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 02 Jan 2004 00:03:45 +0100
From: Samuel Murez <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031016
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: testing
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general