Add this recipe:

# Begin
:0 
* ! ([EMAIL PROTECTED])
* ! ([EMAIL PROTECTED])
/dev/null
# End

Or...you could just have procmail do the forwarding:
# Begin
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
# 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
* ([EMAIL PROTECTED])
! $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 
> [EMAIL PROTECTED] 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 
> <[EMAIL PROTECTED]> 
>  
>  
>  
> --  
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]  
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED] 
>  
>  

Reply via email to