Re: [exim] ACL question

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Ian Eiloart
Datum:  
To: DAN EGLI
CC: exim-users@exim.org
Betreff: Re: [exim] ACL question
I’m not sure exactly what your requirement is. If it’s just for one domain, then you can say something like

domains = example.com
sender_domains = example.com

If you have more than one domain that you’re concerned about, but them all into a domain list like this, in the general configuration:

domainlist never_match_sender_recpient = example.com : example.uk

and in the RCPT ACL say
domains = never_match_sender_recpient
sender_domains = $domain

NB: I haven’t tested either of these. But section 26 here might help you more:
    http://www.exim.org/exim-html-current/doc/html/spec_html/ch-access_control_lists.html

> On 21 Feb 2016, at 21:33, DAN EGLI <11778081@???> wrote:
>
> This may be another RTFM, but I have a difficult time completely understanding the ACL system anyway, so forgive me. I'm trying to define a special rule in the ACL that matches against both sender AND recipient domains. Basically what I want is if they are both a particular domain, reject the message. I.e. if it's from user1@??? AND addressed to user2@???, then block the message. Otherwise, follow the other rules normally. The problem I have is that all the ACL rules I seem to be looking at compare to either the sender's domain or the receiver's domain, but I don't seem to see a way to specifically do what I'm looking for. I'd appreciate some suggestions. I figure I can use ${domain} for the recipient domain, but I don't recall seeing a ${sender_domain} or anything like that.
>
> Thanks!
> --- Dan
>
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/


--
Ian Eiloart
Postmaster, University of Sussex
+44 (0) 1273 87-3148