Re: [EXIM] exim, subdomains, qualify_domain and majordomo

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Marc Haber
CC: exim-users
Tárgy: Re: [EXIM] exim, subdomains, qualify_domain and majordomo
On Thu, 2 Jul 1998, Marc Haber wrote:

> >Set qualify_preserve_domain on the majordomo_aliases director.
>
> |qualify_preserve_domain
> |    Type:    boolean
> |    Default: false
> |
> |    If this is set and an unqualified address (one without a domain) is
> |    generated, it is qualified with the domain of the incoming address instead
> |    of the global setting in qualify_recipient.

>
> Unfortunately, majordomo does not generate a qualified incoming
> address so that option doesn't work :-(


OK, so I didn't understand the question. :-) [I don't know anything
about majordomo, but it seems very odd if it can't generate qualified
addresses. Anybody else on the list care to comment?]

> What I think I need is a rewrite rule like
>
> $1    \
>  "${if eq {$sender}{majordomo} \
>   {$1@???}{$1@???}} flags

>
> Would that work?


That certainly won't work, since sender addresses in Exim are always
fully qualified as soon as they are received.

I'm still not sure I understand the question. Is it that majordomo is
generating an unqualified *sender* address, or an unqualified
*recipient* address? (I previously thought it was the alias file that
contained unqualified addresses.)

In either case, you could probably find some rewriting rule that helped.
Something along the lines of

*@*  "${if eq{$sender_address}{majordomo@$qualify_domain}\
      {$1@???} fail}" flags


Note the "fail". You don't want to do any rewriting of any other
addresses.

-- 
Philip Hazel                   University Computing Service,
P.Hazel@???          New Museums Site, Cambridge CB2 3QG,
ph10@??? (sic)       England.  Phone: +44 1223 334714



--
*** Exim information can be found at http://www.exim.org/ ***