Thanks for your reply. It doesnt seem to be a permissions problem as
everything executes correctly with no errors.

The issue is that spamassassin will only check an email if i run it
with the inject commmand. It will not check an email that comes
through SMTP. The logs seem to indicate that its being checked, but is
automatically marked as clean without checking the message.

Dan

On 12/6/05, Luiz Morte <[EMAIL PROTECTED]> wrote:
>
> Hi Dan,
>
> Take a look to the owner for the directory /var/qmail/simscan. In my
> case, I needed to change it
> (simscan:qscand).
>
> Look another example http://braindump.mrzesty.net/26.html
>
> Luiz Morte.
>
> Dan Johansson wrote:
>
> >I think I'm missing something, but i cant get spamassassin to scan
> >incomming emails.
> >
> >Using debug setting and logs, I see that simscan does pick up the
> >emails and check them. Also as far as I can tell, clamAV will filter
> >out virus laden emails. But spamassassin seems to do nothing.
> >
> >Smtpd TCP file:
> >
> >127.:allow,RELAYCLIENT=""
> >10.0.:allow,RELAYCLIENT=""
> >:allow,SMTPAUTH="AUTHREQUIRED",RCPTCHECK="",QMAILQUEUE="/var/qmail/bin/simscan"
> >
> >simcontrol file:
> >
> >:clam=yes,spam=yes,spam_passthru=yes
> >
> >Log excerpt from inject, this works:
> >bash-2.05b# QMAILQUEUE="/var/qmail/bin/simscan" SIMSCAN_DEBUG=2
> >/var/qmail/bin/qmail-inject [EMAIL PROTECTED] < test.txt
> >simscan: cdb looking up
> >simscan: cdb for  found clam=yes,spam=yes,spam_passthru=yes
> >simscan: pelookup clam = yes
> >simscan: pelookup spam = yes
> >simscan: pelookup spam_passthru = yes
> >simscan: spampassthru = yes/1
> >simscan: starting: work dir: /var/qmail/simscan/1133894468.406500.77247
> >simscan: pelookup: called with [EMAIL PROTECTED]
> >simscan: pelookup: domain is mail.broadband-mn.com
> >simscan: cdb looking up mail.broadband-mn.com
> >simscan: pelookup: local part is root
> >simscan: cdb looking up [EMAIL PROTECTED]
> >simscan: pelookup: called with [EMAIL PROTECTED]
> >simscan: pelookup: domain is broadband-mn.com
> >simscan: cdb looking up broadband-mn.com
> >simscan: pelookup: local part is danj
> >simscan: cdb looking up [EMAIL PROTECTED]
> >simscan: calling clamdscan
> >simscan: cdb looking up version clamav
> >simscan: normal clamdscan return code: 0
> >simscan: calling spamc
> >simscan: calling /usr/local/bin/spamc  spamc
> >simscan: cdb looking up version spam
> >simscan: delivering spam because spam-passthru is defined in this domain
> >simscan: done, execing qmail-queue
> >simscan: qmail-queue exited 0
> >
> >Log exceprt from email recipt doesnt work:
> >@400000004395dc8a02d08714 tcpserver: status: 1/40
> >@400000004395dc8a02d428c4 tcpserver: pid 77334 from 64.202.165.199
> >@400000004395dc8a02d5de44 tcpserver: ok 77334
> >mail.broadband-mn.com:30.0.0.150:25 :64.202.165.199::43514
> >@400000004395dc8a12e443fc simscan: cdb looking up
> >@400000004395dc8a12e6c49c simscan: cdb for  found
> >clam=yes,spam=yes,spam_passthru=yes
> >@400000004395dc8a12e7419c simscan: pelookup clam = yes
> >@400000004395dc8a12e79f5c simscan: pelookup spam = yes
> >@400000004395dc8a12e7ed7c simscan: pelookup spam_passthru = yes
> >@400000004395dc8a12e8436c simscan: spampassthru = yes/1
> >@400000004395dc8a12e8c06c simscan: starting: work dir:
> >/var/qmail/simscan/1133894784.317222.77336
> >@400000004395dc8a1bb62784 simscan: pelookup: called with [EMAIL PROTECTED]
> >@400000004395dc8a1bb69cb4 simscan: pelookup: domain is ba-corp.com
> >@400000004395dc8a1bb6ead4 simscan: cdb looking up ba-corp.com
> >@400000004395dc8a1bb7a26c simscan: pelookup: local part is xxx
> >@400000004395dc8a1bb82354 simscan: cdb looking up [EMAIL PROTECTED]
> >@400000004395dc8a1bb8bbac simscan: pelookup: called with [EMAIL PROTECTED]
> >@400000004395dc8a1bb909cc simscan: pelookup: domain is broadband-mn.com
> >@400000004395dc8a1bb957ec simscan: cdb looking up broadband-mn.com
> >@400000004395dc8a1bb9e874 simscan: pelookup: local part is xxx
> >@400000004395dc8a1bba3e64 simscan: cdb looking up [EMAIL PROTECTED]
> >@400000004395dc8a1bbb059c simscan: calling clamdscan
> >@400000004395dc8a1c4eb634 simscan: cdb looking up version clamav
> >@400000004395dc8a1c4fe2fc simscan: normal clamdscan return code: 0
> >@400000004395dc8a1c5113ac simscan: calling spamc
> >@400000004395dc8a1c51a81c simscan: calling /usr/local/bin/spamc  spamc
> >@400000004395dc8a1c88a63c simscan: cdb looking up version spam
> >@400000004395dc8a1c8a34ac simscan: done, execing qmail-queue
> >@400000004395dc8a1cb84d74 simscan: qmail-queue exited 0
> >@400000004395dc8a20d459ac tcpserver: end 77334 status 0
> >@400000004395dc8a20d4c70c tcpserver: status: 0/40
> >
> >Ive probably missed something in a document somewhere. Am I doing
> >something wrong with getting this to work?
> >
> >Thanks Dan
> >
> >
>
>

Reply via email to