Re: Procmail questions
Add this recipe:
# Begin
:0
* ! (^From.*BossA@myjob.com)
* ! (^From.*BossB@myjob.com)
/dev/null
# End
Or...you could just have procmail do the forwarding:
# Begin
MAIL_LIST=serf@myjob.com, pion@myjob.com, lackey@myjob.com
# Not sure if it's commas or spaces. Try it on some dummy accounts first.
# Forwards all mail from bossA or bossB to $MAIL_LIST
:0
* (^From.*Boss[AB]@myjob.com)
! $MAIL_LIST
# Anything else goes in the trash.
:0
/dev/null
# End
On Mon, Jul 30, 2001 at 04:09:51PM -0300, Jordi S. Bunster scribbled...
> Hello list ... wonder if anyone gives me a hand on this one:
>
> Here at my job two bosses need to send mail to everyone from time
> to time. There're about 20 accounts only, so I did a small script
> that runs every week and adds new accounts to the .forward file
> of a special account. You get the idea. The boss sends to
> special@myjob and everyone gets the message.
>
> But ... right now everyone can send messages to that account. How
> can I block mail to it from everyone except the two bosses (with
> procmail?)
>
> This is procmail and sendmail, and, of course a Debian box (2.2r3
> in case it matters).
>
> Thanks in andvance ....
>
> Jordi S. Bunster
>
>
> Jordi S. Bunster
> <jsb@nautilus.com.br>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
Reply to: