Re: [Exim] Virtualhosting primary_hostname?

Góra strony
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
Dla: Patrick Ryan
CC: exim-users
Temat: Re: [Exim] Virtualhosting primary_hostname?
Patrick Ryan wrote:
> Hello,
>
> I have exim configured with several local domains. Unfortunately,
> outgoing email includes the default hostname instead of the correct
> virtual hostname. Is there any way to select the right value for
> primary_hostname based on the originating email address?


The best way is to let your users set it by themself, the other way is
some rewrite rule like this.


*@$primary_host_name    $1@{$lookup {$1} lsearch \
                                {/etc/exim/user_to_vhost}}



/etc/exim/user_to_vhost should look like this

user: domain1.tld
user2: domain1.tld
user3: domain2.tld
.....