Thanks for the debug info.  It helped me realize that the mail wasn't
even being processed by procmail.  It's one of those weird things where
you can't figure out exactly what happened.

I had a sendmail virtusertable entry that forwarded any @domain.com mail
to user.  That way, any mail that came for @domain.com was sure to be
delivered locally to user.  Then I had a .procmailrc script for user
that fed it to spamassassin, and forwarded it back out to another
address.  When I turned on debugging, I realized that procmail wasn't
even touching it.  In an effort to debug it, I removed the virtusertable
entry, and sent a message to [EMAIL PROTECTED]  It processed the message
through procmail, tagged it as spam, and forwarded it back out to an
external address!  So the problem, it seemed, was the virtusertable.

Anyway, I tried adding the virtusertable entry back in, and now it sends
everything through procmail.  Very weird.

Thanks BT and JG for your help.

Nick

-----Original Message-----
From: Bill Tangren [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2003 3:56 PM
To: [EMAIL PROTECTED]
Subject: Re: spamassassin and ~/.forward


Nick White wrote:
> So I thought it worked... But I spoke too soon.  It ONLY sends mail
> through spamassassin if I send mail locally.  As soon as I try to send
> mail to [EMAIL PROTECTED], spamassassin no longer checks it, and it just
> gets forwarded back out.  You can see my .procmailrc file below, and
> I've deleted .forward.  Why isn't it being fed to spamc *before* it
gets
> forwarded?  I can't seem to figure it out...
> 
> I want sendmail to grab the messages sent to [EMAIL PROTECTED], which
> should forward to a local user named user.  Than feed that message to
> spamc, and then forward the messages back out to [EMAIL PROTECTED]  Am
I
> taking the wrong approach?  Is there some magic procmail config that
> will work for me?
> 
> Thanks,
> Nick
> 
> 

I recommend turning on verbose logging temporarily, to see what is 
happening. Add this to the top of your .procmailrc file:

LOGFILE=$PMDIR/log
LOGABSTRACT=all
VERBOSE=yes

where PMDIR is where you want to put the procmail log file. This will 
generates *lots* of output, so turn it on, try your test, then turn it 
off again.

HTH,
Bill




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to