I'm trying to create an ACL rule that will only allow internal users/white listed users to send to particular group aliases such as all@ or office2@
I know I need something similar to:
deny log_message = $sender_address is not permitted to send to myprotecteddomain.com my2protecteddomain.com
domains = myprotecteddomain.com : my2protecteddomain.com
! senders = *myowndomain.com
But possibly using an external file with white-listed addresses in, I'm not that good at Exim ACLs!
If you need this only for local users then I think you should not use
sender
because it can be falsified without any trouble - instead you should configure SMTP auth (begin authenticators
section) and next you can use something like this:For
recipients
I uselsearch*@;
so you can use both full email addresses and wilcarded like this:For authenticated users you need just list it names line by line (note
yes
andno
order in lookup).If you need remote users too, then you can add:
before first deny and list addresses one per line.