Re: [exim] Qualify domain...?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Angel Marin
Datum:  
To: exim-users
Betreff: Re: [exim] Qualify domain...?
John Robinson escribió:
> I'm using a virtual email configuration like the one mentioned in
> http://www.exim.org/exim-html-4.66/doc/html/spec_html/ch47.html#SECTvirtualdomains
>
> virtual_aliases:
>    driver = redirect
>    allow_fail
>    allow_defer
>    domains = dsearch;/etc/mail/domains
>    local_part_suffix = +* : -*
>    local_part_suffix_optional
>    data = ${lookup{$local_part}lsearch*{/etc/mail/domains/$domain/aliases}}

>
> Now, if the aliases files contain e.g.
>    foo: bar
> then at the moment, bar is qualified not as @$domain but as 
> @$qualify_domain or @$hostname. This is fine for the system aliases but 
> not these virtual aliases. If the data were a single item, I could 
> manage to produce a string expansion to add @$domain but as the data may 
> be a list, not a single entry, I don't know what to do to get any/all 
> unqualified addresses returned by the lookup qualified with $domain.

>
> I'm probably being stupid, but can someone help point me in the right
> direction?


qualify_preserve_domain[1] does what you're looking for:

"qualify_preserve_domain Use: redirect Type: boolean Default: false

If this option is set, the router’s local qualify_domain option must not
be set (a configuration error occurs if it is). If an unqualified
address (one without a domain) is generated, it is qualified with the
domain of the parent address (the immediately preceding ancestor)
instead of the global qualify_recipient value. In the case of a
traditional .forward file, this applies whether or not the address is
preceded by a backslash."

[1]
<http://www.exim.org/exim-html-4.66/doc/html/spec_html/ch22.html#id2664695>

Regards,
--
Angel Marin
http://anmar.eu.org/