[exim] Block all emails from a domain EXCEPT to certain user…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Will Smith
Date:  
À: Exim-users List
Sujet: [exim] Block all emails from a domain EXCEPT to certain users
I thought this would be easier than it is, but I am nervous to pull the
trigger.

I want to block one entire domain from sending my domain emails, except to
certain users. For instance, I want to black @senderdomain.net, except when
the recipient email is will@??? and william@???.

I found a post in the old mailing lists, that said I would need to do
something like this:

echo 'senderdomain.net: !will : !william : *' >
/etc/exim4/reject_senderdomain

And then add in my rcpt acl:
deny recipients = @@lsearch;/etc/exim4/reject_senderdomain
message = Please redirect all emails to will or william.

So, my question. Will that work for what I want to do?

Thanks,

Will Smith--
openbydesign
801-755-7778