[exim] list smarthosts

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Rakotomandimby Mihamina
日付:  
To: Exim-Users
題目: [exim] list smarthosts
Hi all,
I my /etc/exim4/exim4.conf.template file, i got:

   remote_smtp_smarthost:
     debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
     driver = smtp
     hosts_try_auth = <; ${if exists{CONFDIR/passwd.client} \
         {\
         ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\
         }\
         {} \
       }


I would like to have something like:

   remote_smtp_smarthost_server_one:
     debug_print = "T: remote_smtp_smarthost_server_one for $local_part@$domain"
     driver = smtp
     <the right option>: <ip or hostname of server_one>



   remote_smtp_smarthost_server_two:
     debug_print = "T: remote_smtp_smarthost_server_two for $local_part@$domain"
     driver = smtp
     <the right option>: <ip or hostname of server_two>


   remote_smtp_smarthost_server_three:
     debug_print = "T: remote_smtp_smarthost_server_three for $local_part@$domain"
     driver = smtp
     <the right option>: <ip or hostname of server_three>



This is in order to use this:
http://blog.fupps.com/2009/09/03/exim-route-messages-depending-on-current-location/
I can make my script return:
ACCEPT TRANSPORT=remote_smtp_smarthost_server_one
or
ACCEPT TRANSPORT=remote_smtp_smarthost_server_two
or
ACCEPT TRANSPORT=remote_smtp_smarthost_server_three

In my case no server requires SMTP AUTH.

Thank you.

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 33 11 207 36