[TriLUG] procmail, sendmail, spamassassin, and .forward

Jon Carnes jonc at nc.rr.com
Tue Jan 14 14:29:26 EST 2003


BTW, here is a .procmailrc file that calls SpamAssassin and then
forwards the modified mail onto another email address...

   :0fw
   | spamc

   :0
   !   user.name at domain.com


On Tue, 2003-01-14 at 14:16, Jon Carnes wrote:
> A .forward file is not read/used by Procmail. It is only read/used by
> your MTA (Sendmail).  Thus Sendmail reads your .forward file and acts on
> it without ever handing the mail off to Procmail.
> 
> Even though Procmail is setup as the system-wide local delivery agent,
> it will not look at the .forward. However, it would still look at each
> user's .procmailrc upon delivery, so you can put the forwarding request
> in there.
> 
> The procmail version of forward is not intuitive, so I wrote a web-based
> program that allowed folks to modify their forwarding and let them
> specify the dates to start the forwarding and to stop the forwarding.
> 
> HtH - Jon Carnes
> 
> On Tue, 2003-01-14 at 13:00, Rodent of Unusual Size wrote:
> > Jeremy Portzer wrote:
> >  >
> >  > Well it sounds like the .forward is being executed before
> >  > procmail, though I'm not enough of an expert to know why.
> >  > However, why can't you just put the "/some/script" directly
> >  > in the procmailrc, and get rid of the forward altogether?
> >  > Then you can be certain of the order of things in .procmailrc.
> > 
> > the procmailrc involved is /etc/procmailrc.  je ne comprends
> > procmail pas; see <URL:http://Ken.Coar.Org/blog/index?entry=48>. :-)
> > 
> > i suppose i could put some time into learning procmail, but
> > that doesn't help the other people who use my mail server.
> > i don't want to force them to have to learn it, too..
> > 
> > [i *wish* there were some way to get mozilla to give me simple
> > '>' quotes in replies, the way other muas do, instead of this
> > weird half-arsed '>' html crap..]
> > -- 
> > #ken	P-)}
> > 
> > Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
> > Author, developer, opinionist      http://Apache-Server.Com/
> > 





More information about the TriLUG mailing list