procmail
[Top] [All Lists]

Help with redirect/deny recipe

2000-08-18 09:13:12
I have a few questions I'm hoping someone on the list will be so kind as to
answer. I have an address that is acting as a simple mailing list so that
mail to the address gets forwarded to a number of recipients. I wanted to
allow only users from 3 specific domain to be able to use this makeshift
list so I turned to Procmail. Here is my .procmailrc file in its entirety:

:0
* !^From.*((domain1|domain2|domain3)\.com)
* !^X-Loop: listaddress(_at_)domain1(_dot_)com
| (formail -rk \
-A "X-Loop: listaddress(_at_)domain1(_dot_)com"; \
echo "Go away!" ) | $SENDMAIL -oi -t

:0
! `cat forward_list`

My first question... is there a better way to identify the sender than
trapping the From line?

My second question is regarding mail bounces. The first time a message
arrives that is going to be rejected, the X-Loop header is added and the
reply is sent. Once that message bounces and returns to the list address,
where does it go? It doesn't get forwarded to the list recipients, but it
doesn't get delivered to the list address mail file either. Should I add a
/dev/null to the first recipe to make sure it gets thrown in the bit bucket?
Or should I add another recipe between the two such as:

:0
* !^X-Loop: listaddress(_at_)domain1(_dot_)com
/dev/null

Any help or improvements to these recipes would be greatly appreciated.

-- 
Remo Del Bello


_______________________________________________
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>