Jérôme Lelong a écrit, lundi 19 novembre 2007, à 10:26 :
> Bonjour,

bonjour,

> pour configurer ce genre de chose, j'utilise exim [...]
>
> #!/bin/sh
> 
> if [ "$IFACE" == "eth0" ]; then
> #first check eth0
>     IP=`ifconfig | grep -F2 eth0 | grep "inet addr" | cut -d ":" -f 2 |
> cut -d " " -f 1` 

 * Ce ne serait pas plutôt « grep -A1 "^{IFACE}" » ? 

 * Dans le second grep, une locale française réduit « addr » en « adr »,
   add?r est polyglotte.

(et grep | grep  | cut | cut, ça pourrait se réécrire  en un seul Awk ou
Sed...).

[...]
> Attention, j'ai l'impression qu'exim4 ne sait pas résoudre les nom de
> domaine, il faut lui donner l'adresse IP du smtp.

Il suffit de le lui demander gentiment :)

> voilà à quoi ressemble la section smarthost: de mon
> fichier /etc/exim4/exim4.conf.template
> 
> smarthost:
>   debug_print = "R: smarthost for [EMAIL PROTECTED]"
>   driver = manualroute
>   domains = ! +local_domains
>   transport = remote_smtp
>   route_list = * ${readfile{/etc/smarthost}{}}

  route_list = * smtp.neuf.fr bydns

[...] 
-- 
Jacques L'helgoualc'h


-- 
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench   
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à