[Linux] Relais mail Postfix vers Exchange en cas d'absence de compte local ?

Jean BRUDER jean_bruder@::1
Mar 14 Aou 14:51:22 CEST 2012


Bonjour Jérôme,

Merci de te soucier de mon problème, c'est un peu bloquant en ce moment ...
Il s'agit donc d'une version 2.2.10 sous Ubuntu Dapper (pas tout jeune donc ...).

Plusieurs tests ont été effectués, sans compte local, avec un compte local désactivé, mais rien ne fonctionne comme attendu ...

J'ai suivi, entre autres, les informations fournies ici : http://www.postfix.org/postconf.5.html et plus spécifiquement la section relative à la directive "fallback_relay". Je n'arrive cependant pas à comprendre si la modification apportée au fichier transport maps est bon :
- initialement : serveur.mondomaine.fr smtp:192.168.10.10
- après modifications : serveur.mondomaine.fr smtp:192.168.10.10 relay:192.168.10.11

Aurais-je mal compris l'implémentation de la directive à ajouter ?

Comme déjà expliqué, le but de la modification de configuration est de pouvoir, en douceur, migrer des boites aux lettres existantes en petit nombre depuis un serveur vieillissant vers une nouvelle infra Exchange ... Je souhaite donc créer de nouvelles boites sur Exchange et permettre à Postfix, qui ne trouve pas de compte local, de relayer le mail à Exchange, qui hébergera en définitive les boites. Pour les boites existantes, je souhaite désactiver les comptes sur Postfix/Exim après avoir "popé" une dernière fois, puis tout mettre sous Exchange.

Merci d'avance,
Jean

> Subject: Re: [Linux] Relais mail Postfix vers Exchange en cas d'absence de compte local ?
> From: j.pansanel@::1
> To: jean_bruder@::1
> CC: linux@::1
> Date: Tue, 14 Aug 2012 14:42:26 +0200
> 
> Bonjour Jean,
> 
> Quelle version de postfix utilises-tu ?
> 
> Jérôme
> 
> Le mardi 14 août 2012 à 11:50 +0200, Jean BRUDER a écrit :
> > Bonjour à tous,
> > 
> > Un petit coup de pouce serait le bienvenu par rapport à un problème
> > que je rencontre actuellement : j'ai beau appliquer les divers howto
> > trouvés sur Internet, et beau avoir tourné les man pages dans tous les
> > sens, je n'arrive pas à utiliser la directive suivant :
> > 
> > fallback_relay (default: empty)
> >         Optional list of relay hosts for SMTP destinations that can't
> >         be found or that are unreachable. With Postfix 2.3 this
> >         parameter is renamed to smtp_fallback_relay. 
> >         By default, mail is returned to the sender when a destination
> >         is not found, and delivery is deferred when a destination is
> >         unreachable. 
> >         The fallback relays must be SMTP destinations. Specify a
> >         domain, host, host:port, [host]:port, [address] or
> >         [address]:port; the form [host] turns off MX lookups. If you
> >         specify multiple SMTP destinations, Postfix will try them in
> >         the specified order. 
> >         Note: before Postfix 2.2, do not use the fallback_relay
> >         feature when relaying mail for a backup or primary MX domain.
> >         Mail would loop between the Postfix MX host and the
> >         fallback_relay host when the final destination is
> >         unavailable. 
> >               * In main.cf specify "relay_transport = relay",
> >               * In master.cf specify "-o fallback_relay =" (i.e.,
> >                 empty) at the end of the relay entry.
> >               * In transport maps, specify "relay:nexthop..." as the
> >                 right-hand side for backup or primary MX domain
> >                 entries.
> >         Postfix version 2.2 and later will not use the fallback_relay
> >         feature for destinations that it is MX host for. 
> > La configuration ne semble pas prise en compte au niveau de Postfix,
> > et le mail est systématiquement rejeté, sans être passé au relais
> > suivant (serveur Exchange sur lequel les boites aux lettres sont cette
> > fois définies ...).
> > 
> > 
> > Auriez-vous une idée ?
> > 
> > 
> > Merci d'avance, bonne fin de matinée,
> > Jean
> > 
> > 
> > 
> 
> 
 		 	   		  
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <https://strasbourg.linuxfr.org/pipermail/linux/attachments/20120814/7b408f38/attachment.html>


Plus d'informations sur la liste de diffusion linux