Re: [exim] Qualify domain...?

Top Page
Delete this message
Reply to this message
Author: Ted Cooper
Date:  
To: exim-users @ exim. org
Subject: Re: [exim] Qualify domain...?
John Robinson wrote:
> 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?
>
> Cheers,
>
> John.
>


Change your alias file to read

foo:    bar@???
smoo:    cowz@???



Ted.
--
What's the point of having a manual if no one reads it?