DOLIDON sn4ky@sn4ky.net Content-Type: multipart/alternative; boundary="Apple-Mail=_1B8735A5-CDD1-497B-8C73-1D80C812B7F5" Message-Id: A75E57E2-4117-4141-8329-213A05C45E00@sn4ky.net Mime-Version: 1.0 (Mac OS X Mail 9.1 (3096.5)) Date: Mon, 7 Dec 2015 18:19:16 +0100 References: 20151206142410.GF23123@drscott.swordarmor.fr CAC88fzGqs7NfHJWticSdBk6_+uj0_ZOuMCe+AzMd3OVQ30x3Xw@mail.gmail.com 20151207104340.GL23123@drscott.swordarmor.fr B6CF7A06-82F7-4678-A2E1-A46F86B91093@sn4ky.net 20151207162835.GB17376@drscott.swordarmor.fr To: frsag@frsag.org In-Reply-To: 20151207162835.GB17376@drscott.swordarmor.fr X-Mailer: Apple Mail (2.3096.5) Subject: Re: [FRsAG] =?utf-8?q?Probl=C3=A8me_d=E2=80=99alias_avec_postfix?= X-BeenThere: frsag@frsag.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: French SysAdmin Group <frsag.frsag.org> List-Unsubscribe: http://www.frsag.org/mailman/options/frsag, mailto:frsag-request@frsag.org?subject=unsubscribe List-Archive: http://www.frsag.org/pipermail/frsag/ List-Post: mailto:frsag@frsag.org List-Help: mailto:frsag-request@frsag.org?subject=help List-Subscribe: http://www.frsag.org/mailman/listinfo/frsag, mailto:frsag-request@frsag.org?subject=subscribe X-List-Received-Date: Mon, 07 Dec 2015 17:19:19 -0000
--Apple-Mail=_1B8735A5-CDD1-497B-8C73-1D80C812B7F5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8
Le 7 d=C3=A9c. 2015 =C3=A0 17:28, Alarig Le Lay alarig@swordarmor.fr =
a =C3=A9crit :
=20 On Mon Dec 7 15:17:30 2015, Pierre ?DOLIDON wrote:
Je dirai, vu que le postfix tente bien de passer l=E2=80=99email au =
mda, que ce n=E2=80=99est pas un probl=C3=A8me de virtual au niveau de = postfix. C=E2=80=99est bien dovecot qui te refuse l=E2=80=99email.
=20 Que te retourne ta requ=C3=AAte : SELECT goto FROM alias WHERE address=3D'%u@%d' AND active =3D 1 ?=20
=20 Oui, =C3=A7a r=C3=A9pond l=E2=80=99adresse pour laquelle l=E2=80=99alias=
est configur=C3=A9.
=20
As-tu pu faire logguer ton mysql pour pouvoir v=C3=A9rifier que la =
requ=C3=AAte pass=C3=A9e =C3=A0 ce moment pr=C3=A9cis est correcte ?
=20 Oui, le postfix demande l=E2=80=99adresse correspondant =C3=A0 =
l=E2=80=99alias. Le hic est que le mda
demande l=E2=80=99alias et non l=E2=80=99adresse r=C3=A9elle. Il ne =
sait donc que faire du
mail. J=E2=80=99ai donc tendance =C3=A0 penser que postfix n=E2=80=99=C3=A9ten=
d pas l=E2=80=99alias vers
l=E2=80=99adresse. (sinon l=E2=80=99adresse pass=C3=A9e au mda serait =
l=E2=80=99adresse r=C3=A9elle)
En effet, tu as raison. Sur ma conf (similaire) :
Dec 7 17:52:04 mail postfix/smtp[13914]: C1EF3360E1: = to=3D<MAILBOX@sn4ky.net mailto:MAILBOX@sn4ky.net>, = orig_to=3D<ALIAS@sn4ky.net mailto:ALIAS@sn4ky.net>, = relay=3D127.0.0.1[127.0.0.1]:10024, delay=3D1.2, delays=3D0.22/0/0/1, = dsn=3D2.0.0, status=3Dsent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): = 250 2.0.0 Ok: queued as 0002A36112) [...] Dec 7 17:52:04 mail postfix/pipe[13922]: 0002A36112: = to=3D<MAILBOX@sn4ky.net mailto:MAILBOX@sn4ky.net>, relay=3Ddovecot, = delay=3D0.06, delays=3D0/0/0/0.05, dsn=3D2.0.0, status=3Dsent (delivered = via dovecot service)
Tu n=E2=80=99as pas mentionn=C3=A9 cette premi=C3=A8re ligne, qui montre = bien que la traduction ALIAS->MAILBOX a bien fonctionn=C3=A9. et postfix = passe bien au mda MAILBOX@domain
Dans mon master.cf : alias_maps =3D hash:/etc/aliases [...] virtual_alias_maps =3D = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,[...]
Et la requ=C3=AAte : query =3D SELECT goto FROM alias WHERE address=3D'%s' and active =3D '1'
ma conf provient d=E2=80=99ici : = http://www.starbridge.org/spip/spip.php?article12 = http://www.starbridge.org/spip/spip.php?article12=20
=20
Est-ce que le compte qui pointe sur l=E2=80=99alias existe bien ?
=20 Oui, je l=E2=80=99utilise pr=C3=A9sentement :) =20 --=20 Alarig Le Lay _______________________________________________ Liste de diffusion du FRsAG http://www.frsag.org/
--Apple-Mail=_1B8735A5-CDD1-497B-8C73-1D80C812B7F5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">Le 7 d=C3=A9c. 2015 =C3=A0 17:28, Alarig Le Lay <<a = href=3D"mailto:alarig@swordarmor.fr" = class=3D"">alarig@swordarmor.fr</a>> a =C3=A9crit :</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">On = Mon Dec 7 15:17:30 2015, Pierre ?DOLIDON wrote:<br = class=3D""><blockquote type=3D"cite" class=3D"">Je dirai, vu que le = postfix tente bien de passer l=E2=80=99email au mda, que ce n=E2=80=99est = pas un probl=C3=A8me de virtual au niveau de postfix. C=E2=80=99est bien = dovecot qui te refuse l=E2=80=99email.<br class=3D""><br class=3D"">Que = te retourne ta requ=C3=AAte :<br class=3D"">SELECT goto FROM alias WHERE = address=3D'%u@%d' AND active =3D 1<br class=3D"">? <br = class=3D""></blockquote><br class=3D"">Oui, =C3=A7a r=C3=A9pond = l=E2=80=99adresse pour laquelle l=E2=80=99alias est configur=C3=A9.<br = class=3D""><br class=3D""><blockquote type=3D"cite" class=3D"">As-tu pu = faire logguer ton mysql pour pouvoir v=C3=A9rifier que la requ=C3=AAte = pass=C3=A9e =C3=A0 ce moment pr=C3=A9cis est correcte ?<br = class=3D""></blockquote><br class=3D"">Oui, le postfix demande = l=E2=80=99adresse correspondant =C3=A0 l=E2=80=99alias. Le hic est que = le mda<br class=3D"">demande l=E2=80=99alias et non l=E2=80=99adresse = r=C3=A9elle. Il ne sait donc que faire du<br class=3D"">mail.<br = class=3D"">J=E2=80=99ai donc tendance =C3=A0 penser que postfix = n=E2=80=99=C3=A9tend pas l=E2=80=99alias vers<br class=3D"">l=E2=80=99adre= sse. (sinon l=E2=80=99adresse pass=C3=A9e au mda serait l=E2=80=99adresse = r=C3=A9elle)<br class=3D""></div></div></blockquote><div><br = class=3D""></div><div><br class=3D""></div><div><div class=3D"">En = effet, tu as raison.</div><div class=3D"">Sur ma conf (similaire) = :</div><div class=3D""><br class=3D""></div><div class=3D""><div = class=3D"" style=3D"margin: 0px; font-size: 10px; line-height: normal; = font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, = 0, 0);">Dec 7 17:52:04 mail postfix/smtp[13914]: C1EF3360E1: = to=3D<<a href=3D"mailto:MAILBOX@sn4ky.net" = class=3D"">MAILBOX@sn4ky.net</a>>, orig_to=3D<<a = href=3D"mailto:ALIAS@sn4ky.net" class=3D"">ALIAS@sn4ky.net</a>>, = relay=3D127.0.0.1[127.0.0.1]:10024, delay=3D1.2, delays=3D0.22/0/0/1, = dsn=3D2.0.0, status=3Dsent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): = 250 2.0.0 Ok: queued as 0002A36112)</div><div class=3D"" style=3D"margin: = 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: = rgb(245, 245, 245); background-color: rgb(0, 0, 0);">[...]</div><div = class=3D"" style=3D"margin: 0px; font-size: 10px; line-height: normal; = font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, = 0, 0);">Dec 7 17:52:04 mail postfix/pipe[13922]: 0002A36112: = to=3D<<a href=3D"mailto:MAILBOX@sn4ky.net" = class=3D"">MAILBOX@sn4ky.net</a>>, relay=3Ddovecot, delay=3D0.06, = delays=3D0/0/0/0.05, dsn=3D2.0.0, status=3Dsent (delivered via dovecot = service)</div><div class=3D""><br class=3D""></div><div class=3D"">Tu = n=E2=80=99as pas mentionn=C3=A9 cette premi=C3=A8re ligne, qui montre = bien que la traduction ALIAS->MAILBOX a bien fonctionn=C3=A9. et = postfix passe bien au mda MAILBOX@domain</div><div class=3D""><br = class=3D""></div><div class=3D"">Dans mon master.cf :</div><div = class=3D""><div class=3D"" style=3D"margin: 0px; font-size: 10px; = line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); = background-color: rgb(0, 0, 0);"><span class=3D"" style=3D"color: = rgb(236, 236, 21);">alias_maps</span> =3D <span class=3D"" = style=3D"color: rgb(140, 251, = 180);">hash</span>:/etc/aliases</div></div><div class=3D"" = style=3D"margin: 0px; font-size: 10px; line-height: normal; font-family: = Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, = 0);">[...]</div><div class=3D""><div class=3D"" style=3D"margin: 0px; = font-size: 10px; line-height: normal; font-family: Monaco; color: = rgb(245, 245, 245); background-color: rgb(0, 0, 0);"><span class=3D"" = style=3D"color: rgb(236, 236, = 21);">virtual_alias_maps</span> =3D <span class=3D"" = style=3D"color: rgb(140, 251, = 180);">proxy</span>:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,[...]</= div></div></div><div class=3D""><br class=3D""></div><div class=3D"">Et = la requ=C3=AAte :</div><div class=3D""><div class=3D"" style=3D"margin: = 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: = rgb(245, 245, 245); background-color: rgb(0, 0, 0);">query =3D SELECT = goto FROM alias WHERE address=3D'%s' and active =3D '1'</div><div = class=3D""><br class=3D""></div><div class=3D""><br class=3D""></div><div = class=3D"">ma conf provient d=E2=80=99ici : <a = href=3D"http://www.starbridge.org/spip/spip.php?article12" = class=3D"">http://www.starbridge.org/spip/spip.php?article12</a> </di= v></div><div class=3D""><br class=3D""></div></div><div><br = class=3D""></div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D""><div class=3D""><br class=3D""><blockquote type=3D"cite" = class=3D"">Est-ce que le compte qui pointe sur l=E2=80=99alias existe = bien ?<br class=3D""></blockquote><br class=3D"">Oui, je l=E2=80=99utilise= pr=C3=A9sentement :)<br class=3D""><br class=3D"">-- <br = class=3D"">Alarig Le Lay<br = class=3D"">_______________________________________________<br = class=3D"">Liste de diffusion du FRsAG<br class=3D""><a = href=3D"http://www.frsag.org/" = class=3D"">http://www.frsag.org/</a></div></div></blockquote></div><br = class=3D""></body></html>=
--Apple-Mail=_1B8735A5-CDD1-497B-8C73-1D80C812B7F5--