On Sunday 01 April 2007 15:58, Eugene wrote:
> I want to setup an ACL which
>
> 1. Checks recipient emails address, for example - *@aol.com
> 2. Checks if such entry exists in /etc/valiases/$domain (in the right
> part after ": ")
> 3. Blocks outgoing emails if the message is forwarded to aol.com
So, basically you want to prevent mail from being sent to certain domains as a
result of forwarding, but it's okay if a customer addresses a mail directly
to any of those domains? Can't you simply prevent people from entering those
domains into the alias files in the first place?
The cleanest solution might be setting the redirect_router option of the
virtual_aliases* router(s) to a new router just after the normal dnslookup
router, and configuring that new router not to accept mail to the forbidden
domains.
--
Magnus Holmgren holmgren@???
(No Cc of list mail needed, thanks)
"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans