I have "everybody" configured as an alias to all users on my mail
server.
I would like to restrict who can send to this alias.
The "everybody filter" code below blocks the appropriate users, but the
auto-reply sends back the denial message
to the sender once for each member of the alias list!
Each reply has a unique message id, so the next 2 lines won't prevent
duplicate delivery.
:0 Wh: $HOME/msgid.lock1
|formail -D 8192 msgid.cache1
Anyone have any ideas?
Thanks!:)
# everybody filter
# This filter limits who can send to the everybody alias
:0
* ^TO_everybody
* ^TO_everybody(_at_)mydomain(_dot_)com
* !^From:(_dot_)*foo(_at_)mydomain(_dot_)com
* !^From:(_dot_)*bar(_at_)mydomain(_dot_)com
* !^From:(_dot_)*tux(_at_)mydomain(_dot_)com
* !^X-Loop: EveryOneTrap
| (formail -A"X-Loop: EveryOneTrap" -brt ;\
echo "Your message to the everybody mailing list was rejected." ;\
echo "You are NOT authorized to send to this list." ;\
) | $SENDMAIL -oi -t
--
__ _ ____
/ /(_)_ __ _ ___ __/ _ \ __ __ _ _ _
/ / | | '_ \| | | \ \/ /| |/ // \/ _| |/ / /
/ /__| | | | | |_| |> < | |\ \|()||(_| <\ \
\____/_|_| |_|\__,_/_/\_\|_| \_\__/\__|_^\_/_/
mv $win /dev/null
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail