I have done this and it works but I'm wondering if there's a more
efficient way (since Sendmail is getting called twice here before and
after spamc):
:0fw
| /usr/bin/spamc | /usr/sbin/sendmail [EMAIL PROTECTED]

The reason I don't want to use the Sendmail-miter is I want the per-user
control (and easy administration) of whether to add the service or not
(preferably through a local user's .procmailrc or something easy like
that since that).  

Another idea would be if I could somehow put it in the virtual users
file (that's easy to administrate) to map the incoming email to spamc
and then forward the results to the outside address:

[EMAIL PROTECTED]    "| /usr/bin/spamc |
[EMAIL PROTECTED]"

where sendmail would know to write to spamc and read the results back in
to the same process, and then forward to [EMAIL PROTECTED] (all
in the same process)...

Any ideas ?

Jeffrey Thompson
President
Thompson Internet Communications, Inc.
http://www.thompsonic.com
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Jeffrey Thompson
Sent: Wednesday, February 27, 2002 10:54 PM
To: [EMAIL PROTECTED]
Subject: [SAtalk] Forwarded Virtual Users: Running Spamassassin with
Procmail and Forwarding The Email To Another Server

I’m working through a problem with Sendmail / Spamassassin / Forwarding
/ Virtual Domains.
 
I want to be able to turn on Spamassassin on a per (virtual) user basis
on my linux server.
 
The virtual domain users that resolve to a local user  on my linux
machine are getting Spamassassin called via procmail with no problems.  
 
My problem is with the virtual domain users who I’m forwarding email to
another server, how to get Spamassassin in the loop using Sendmail. The
Sendmail miter (or whatever) doesn’t look to appealing to me. 
 
I like the idea of creating a local user to associate the virtual user
with.  And I don’t see how I can get Spamassassin in the loop.  I like
the idea of creating an account for the virtual user, and using procmail
to call Spamassassin and then forward the email to the appropriate email
address.  Can someone share with me the .procmailrc file to do this? 
(I’m also brand new to procmail “recipies”).
 
Thanks!
 
Jeffrey Thompson
President
Thompson Internet Communications, Inc.
http://www.thompsonic.com
 
 


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to