RE: [Exim] literal domains in Exim 4 / local_domains_include…

Top Page
Delete this message
Reply to this message
Author: Eli
Date:  
To: 'Tony Finch', 'David Burton'
CC: exim-users
Subject: RE: [Exim] literal domains in Exim 4 / local_domains_include_host_literals / "domain literals not allowed"
Tony Finch wrote:
> What I've done with my Exim configuration (after persuasion from Greg
> that it's the Right Thing) is to allow postmaster@[our.ip.addresses]
> and no other local parts. The relevant parts of the configuration are:
>
> # ...
> domainlist our_domains = @ : @[] : +local_domains : +relay_domains
> # ...
> allow_domain_literals
> # ...
> # note that qualify_domain is set to the service name not the machine
> # name. this is important so that the router below doesn't cause a
> loop. # ...
> begin acl
> # ...
> smtp_rcpt:
>   # first acl item
>   accept recipients = postmaster@+our_domains
>   # ...
> # ...
> begin routers
> # first router apart from some irrelevant magic
> postmaster:
>   driver      = redirect
>   domains     = @ : @[]
>   local_parts = postmaster
>   data        = postmaster@${qualify_domain}
> # ...



If you changed the domains condition for the postmaster router to:

    domains     = ! $qualify_domain : @ : @[]


Would that not avoid any type of loop you could have from rewriting it to
postmaster@$qualify_domain ? :)

Eli.