Re: [exim] Create aliases before rewrite domain

Góra strony
Delete this message
Reply to this message
Autor: Alexandre
Data:  
Dla: exim-users
Temat: Re: [exim] Create aliases before rewrite domain
Hello everyone. Is it possible to force to use a list of SMTP server for
a specific domain ?

Thank you in advance.

Alexandre.

On 17/10/14 17:28, Alexandre wrote:
> Hello everyone,
>
> I wish exim created aliases before rewrite domain name.
>
> In the /etc/aliases :
>
> ---
> # /etc/aliases
> mailer-daemon: postmaster
> postmaster: root
> nobody: root
> hostmaster: root
> usenet: root
> news: root
> webmaster: root
> www: root
> ftp: root
> abuse: root
> noc: root
> security: root
> net: root
> root: usertest@???
> grouptest:        :include: /etc/exim4/list-aliases/grouptest
> ---

>
> in /etc/exim4/list-aliases/grouptest
> ---
> usertest1@???
> usertest2@???
> usertest3@???
> ---
>
> In my update-exim4.conf.conf
> ---
> dc_eximconfig_configtype='internet'
> dc_other_hostnames='domaintest.fr'
> dc_local_interfaces='0.0.0.0'
> dc_readhost=''
> dc_relay_domains=''
> dc_minimaldns='false'
> dc_relay_nets='XXXX, XXXX, XXXX'
> dc_smarthost=''
> CFILEMODE='644'
> dc_use_split_config='true'
> dc_hide_mailname=''
> dc_mailname_in_oh='true'
> dc_localdelivery='mail_spool'
> ---
>
> I test aliases : OK
> ---
> 2014-10-17 17:18:46 1Xf9Ik-00011t-Tp <= root@???
> H=versdevweb03.xxxx.fr [172.16.16.62] P=esmtp S=690
> id=E1Xf9If-0004wY-Tg@???
> 2014-10-17 17:18:46 1Xf9Ik-00011t-Tp ** usertest3@???
> <grouptest@???>: Unrouteable address
> 2014-10-17 17:18:46 1Xf9Ik-00011t-Tp ** usertest2@???
> <grouptest@???>: Unrouteable address
> 2014-10-17 17:18:46 1Xf9Ik-00011t-Tp ** usertest1@???
> <grouptest@???>: Unrouteable address
> ---
> But aliases are working properly.
>
> I add rewrite the domaintest.fr to domaitest.com :
> ---
> *@domaintest.fr         $2$1@???     Tt
> ---

>
> The rewrite is OK, but aliases do not work :
> ---
> 2014-10-17 17:23:03 1Xf9Mt-00019I-2z <= root@???
> H=versdevweb03.xxxx.fr [172.16.16.62] P=esmtp S=692
> id=E1Xf9Mo-00052d-2o@???
> 2014-10-17 17:23:03 1Xf9Mt-00019I-2z Remote host domaintest.com
> [98.124.198.1] closed connection in response to initial connection
> ---
>
> I feel that the rewrite is processed before the aliases. How can I fix
> this?
>