Re: [exim] block whole domain except for a few rcpts

Page principale
Supprimer ce message
Répondre à ce message
Auteur: John Burnham
Date:  
À: 'Exim Users List'
Sujet: Re: [exim] block whole domain except for a few rcpts
>
> I would like to know the easiest way to do the following,
> which I guess
> is some sort of selective relaying.
>
> I want to block a whole domain, say example.com.
> But I would like email for rcpt1@??? and
> postmaster@???
> to pass through and be relayed to the MTA of that domain.
>
> I already have functionality to deliver email to the specific domain
> (debian's hubbed_hosts). It just needs to be done not for the whole
> domain but selected addresses. Ideally the address should be
> read from a
> text file, one address per line.
>


How about an acl in the rpct part that says something like:

  deny domains = denied.domain.example
       local_parts = !/etc/exim/denyparts


where /etc/exim/denyparts is a file containing the local part of the address you want delivered for that domain.
You'll obviously need to place it somewhere within your rcpt acls so that the mail isn't already accepted (ie if you have a part that says accept if you're sending from certain hosts etc you'll need to put this directive before that).
John