procmail
[Top] [All Lists]

RE: Spambouncer question

2001-09-16 18:56:48
The reason I want to do this is that I have made a user named "mailbox"
which gets the mail from the ISP.  This recipe is near the end of the
spambouncer rc files so by the time mail gets to it it has been checked.
This test just sees that it is addressed to the user in "MYEMAIL".  The next
recipe sends mail to a hold folder.  I want the mail that passes the test to
forward to my user account on the server to be picked up by my workstation.
As it is now I need to check the server all the time to see if mail has
dropped into the default box.
Steve

-----Original Message-----
From: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE]On Behalf Of S.Toms
Sent: Sunday, September 16, 2001 23:26
To: Procmail
Subject: Re: Spambouncer question


On Sun, 16 Sep 2001, Steve Sykes wrote:

ss> This recipe is part of the spambouncer package.
ss> :0:
ss> * ? test -f ${MYEMAIL} && \
ss> (${FORMAIL} -zxTo: -zxCc: |\
ss>   fgrep -i -f ${MYEMAIL})
ss> ${FORMAIL} -A"X-Folder: Default" >>${DEFAULT}
ss>
ss> My question is how do I forward the message that it finds to a user
instead
ss> of sending to the DEFAULT user?
ss>

  The above recipe doesn't forward to a default user, it sends to the
DEFAULT folder of the user the message was addressed to. If you really
wanted it to forward to another user, you could do the following

  :0c:
  * ? test -f ${MYEMAIL} && \
  (${FORMAIL} -zxTo: -zxCc: |\
    fgrep -i -f ${MYEMAIL})
  ${FORMAIL} -A"X-Folder: Default" >>${DEFAULT}

  :0a
  ! someone(_at_)somewhere(_dot_)com

  Theres other ways to do it, this way will still deliver the message as
usual, but also forward to another user of your choice. Though I'm not
sure why you would want to do the above, could you go into detail the
purpose for the above? This could give us more of an understanding of what
your trying to do as well as give you a better solution.


ss> Regards,
ss> Steve Sykes
ss>

--
      S.Toms - smotrs(_at_)mindspring(_dot_)com - www.mindspring.com/~smotrs
                   SuSE Linux v7.0+ - Kernel 2.2.18

"I wish there was a knob on the TV to turn up the intelligence.
There's a knob called `brightness', but it doesn't work."
                -- Gallagher

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>