Re: [exim] Mail to self allowed without restrictions

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Sebastian Nielsen
日付:  
To: Odhiambo Washington
CC: exim users
題目: Re: [exim] Mail to self allowed without restrictions
oo I see now.
Remove the first parenthesis ( from .*

so it becomes
condition = ${if match {$h_from:}{^(?i).*<.*@.*YOUR_DOMAIN_HERE>\$}{yes}{no}}

I did accidentially break the rule when replacing my domain with
"YOUR_DOMAIN_HERE" as I had multiple domains in the rule.
Note that dots in the domain should be prepended with \\ so
mydomain.com becomes mydomain\\.com

Den ons 6 feb. 2019 kl 07:22 skrev Odhiambo Washington via Exim-users
<exim-users@???>:
>
> On Tue, 5 Feb 2019 at 19:02, Sebastian Nielsen via Exim-users <
> exim-users@???> wrote:
>
> > in acl_mail (before SPF check):
> >
> > accept
> > authenticated = *
> > sender_domains = +local_domains
> > set acl_m0 = authorizedrelay
> > deny
> > message = You can't spoof the domains this server is authorative for
> > sender_domains = +local_domains
> >
> >
> > then in acl_data:
> > deny
> > message = You can't spoof the MIME From this server is authorative for
> > condition = ${if match
> > {$h_from:}{^(?i).*<.*@(.*YOUR_DOMAIN_HERE>\$}{yes}{no}}
> > condition = ${if eq {$acl_m0}{authorizedrelay}{no}{yes}}
> >
> >
> Hi Sebastian,
>
> failed to expand ACL string "${if match {$h_from:}{^(?i).*<.*@(.*
> mydomain.com>\$}{yes}{no}}": regular expression error in "^(?i).*<.*@(.*
> mydomain.com>$": *missing ) at offset 30*
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
> "Oh, the cruft.", grep ^[^#] :-)
> --
> ## 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/