Fetchmail is forwarding via localhost, which doesn't get scanned
(RELAYCLIENT is set). This is normal behavior.

I think that if you configure fetchmail to forward via the external address
on the toaster (come back in using the front door instead of the internal
address), it will scan messages as you desire.

Terry Rigby wrote:
> I'm using fetchmail to get mail from my ISP and then gets forwarded to a 
> local 
> QT user account.  It seems that the mail doesnt get passed through 
> spamassassin or at least I see no logs of it or anything regarding spam 
> status in the email headers.  Is this something that needs to be set in the 
> tcp.smtp file?  I already see the following in that file...
> 
> 127.0.0.1:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/simscan",CHKUSER_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10"
> :allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",QMAILQUEUE="/var/qmail/bin/simscan"
> 
> I'm sure this is something simple but due to my lack of knowledge as to how 
> QT 
> works and in what order everything works I am unable to find a solution thus 
> far. Thanks to anyone that may be able to lend a hand.
> 
> Here are sample log files from an email coming directly to my local users QT 
> account (not being brought in through fetchmail)
> 
> ==> /var/log/qmail/smtp/current <==
> 2007-03-11 00:21:07.479331500 tcpserver: status: 1/100
> 2007-03-11 00:21:07.479337500 tcpserver: pid 29125 from 65.54.246.73
> 2007-03-11 00:21:07.479341500 tcpserver: ok 29125 
> webserver:192.168.1.222:25 :65.54.246.73::2254
> 
> ==> /var/log/qmail/clamd/current <==
> 2007-03-11 
> 00:21:07.956785500 
> /var/qmail/simscan/1173601267.915774.29127/addr.1173601267.915774.29127: 
> OK
> 2007-03-11 
> 00:21:07.957230500 /var/qmail/simscan/1173601267.915774.29127/textfile0: OK
> 2007-03-11 
> 00:21:07.962198500 
> /var/qmail/simscan/1173601267.915774.29127/msg.1173601267.915774.29127: 
> OK
> 
> ==> /var/log/qmail/smtp/current <==
> 2007-03-11 00:21:07.782546500 CHKUSER accepted sender: from 
> <[EMAIL PROTECTED]::> remote 
> <bay0-omc1-s1.bay0.hotmail.com:unknown:65.54.246.73> rcpt <> : sender 
> accepted
> 2007-03-11 00:21:07.879291500 CHKUSER accepted rcpt: from 
> <[EMAIL PROTECTED]::> remote 
> <bay0-omc1-s1.bay0.hotmail.com:unknown:65.54.246.73> rcpt <[EMAIL PROTECTED]> 
> : 
> found existing recipient
> 2007-03-11 00:21:07.915448500 simscan: connect error 2
> 
> ==> /var/log/qmail/spamd/current <==
> 2007-03-11 00:21:07.971542500 [2688] info: spamd: connection from webserver 
> [127.0.0.1] at port 39901
> 2007-03-11 00:21:07.979391500 [2688] info: spamd: processing message 
> <[EMAIL PROTECTED]> for clamav:89
> 
> ==> /var/log/qmail/send/current <==
> 2007-03-11 00:21:09.429650500 new msg 256525
> 2007-03-11 00:21:09.429656500 info msg 256525: bytes 1502 from 
> <[EMAIL PROTECTED]> qp 29132 uid 89
> 2007-03-11 00:21:09.552885500 starting delivery 691: msg 256525 to local 
> [EMAIL PROTECTED]
> 2007-03-11 00:21:09.552893500 status: local 1/10 remote 0/60
> 
> ==> /var/log/qmail/smtp/current <==
> 2007-03-11 00:21:09.255156500 simscan:[29125]:CLEAN (0.00/12.00):1.3356s:just 
> a test:65.54.246.73:[EMAIL PROTECTED]:[EMAIL PROTECTED]:
> 2007-03-11 00:21:09.472776500 tcpserver: end 29125 status 0
> 2007-03-11 00:21:09.472857500 tcpserver: status: 0/100
> 
> ==> /var/log/qmail/spamd/current <==
> 2007-03-11 00:21:09.240737500 [2688] info: spamd: clean message (0.0/5.0) for 
> clamav:89 in 1.3 seconds, 1113 bytes.
> 2007-03-11 00:21:09.240746500 [2688] info: spamd: result: . 0 - 
> MSGID_FROM_MTA_HEADER 
> scantime=1.3,size=1113,user=clamav,uid=89,required_score=5.0,rhost=webserver,raddr=127.0.0.1,rport=39901,mid=<[EMAIL
>  PROTECTED]>,autolearn=ham
> 2007-03-11 00:21:09.317828500 [2437] info: prefork: child states: II
> 
> ==> /var/log/qmail/send/current <==
> 2007-03-11 00:21:09.666956500 delivery 691: success: did_0+0+1/
> 2007-03-11 00:21:09.666963500 status: local 0/10 remote 0/60
> 2007-03-11 00:21:09.666967500 end msg 256525
> 
> And here are the logs from an email that gets brought in through fetchmail...
> 
> ==> /var/log/qmail/clamd/current <==
> 2007-03-11 
> 00:25:28.877336500 
> /var/qmail/simscan/1173601528.830490.29179/addr.1173601528.830490.29179: 
> OK
> 2007-03-11 
> 00:25:28.883246500 
> /var/qmail/simscan/1173601528.830490.29179/msg.1173601528.830490.29179: 
> OK
> 2007-03-11 
> 00:25:28.883630500 /var/qmail/simscan/1173601528.830490.29179/textfile0: OK
> 
> ==> /var/log/qmail/send/current <==
> 2007-03-11 00:25:29.042570500 new msg 256525
> 2007-03-11 00:25:29.042576500 info msg 256525: bytes 2180 from 
> <[EMAIL PROTECTED]> qp 29183 uid 89
> 
> ==> /var/log/qmail/smtp/current <==
> 2007-03-11 00:25:28.592557500 tcpserver: status: 1/100
> 2007-03-11 00:25:28.592564500 tcpserver: pid 29177 from 127.0.0.1
> 2007-03-11 00:25:28.592568500 tcpserver: ok 29177 
> webserver:127.0.0.1:25 :127.0.0.1::39907
> 2007-03-11 00:25:28.806991500 CHKUSER accepted sender: from 
> <[EMAIL PROTECTED]::> remote <localhost:unknown:127.0.0.1> rcpt <> : sender 
> accepted
> 2007-03-11 00:25:28.828481500 CHKUSER accepted rcpt: from 
> <[EMAIL PROTECTED]::> remote <localhost:unknown:127.0.0.1> rcpt 
> <[EMAIL PROTECTED]> : found existing recipient
> 2007-03-11 00:25:28.884611500 simscan:
> [29177]:RELAYCLIENT:0.0544s:-:127.0.0.1:[EMAIL PROTECTED]:[EMAIL PROTECTED]:
> 
> ==> /var/log/qmail/send/current <==
> 2007-03-11 00:25:29.220690500 starting delivery 692: msg 256525 to local 
> [EMAIL PROTECTED]
> 2007-03-11 00:25:29.220698500 status: local 1/10 remote 0/60
> 2007-03-11 00:25:29.341232500 delivery 692: success: did_0+0+1/
> 2007-03-11 00:25:29.341239500 status: local 0/10 remote 0/60
> 2007-03-11 00:25:29.341243500 end msg 256525
> 
> ==> /var/log/qmail/smtp/current <==
> 2007-03-11 00:25:29.113751500 tcpserver: end 29177 status 0
> 2007-03-11 00:25:29.113757500 tcpserver: status: 0/100
> 


-- 
-Eric 'shubes'

---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to