Re: SMTP external authentication is not worjing

Cesar Meloni via xmail <[email protected]> Thu, 21 Mar 2019 09:02:39 -0300
Newsgroups gmane.mail.xmail.general
Message-ID <CAFLDAVCA6MYKdxof_TGEKHrb9bL7M+XZw_W+b8cog+-Wf_TERg@mail.gmail.com>
--===============0161598603==
Content-Type: multipart/alternative; boundary="0000000000006eb1d9058499842a"

--0000000000006eb1d9058499842a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear,

      I have version 1.26 of XMail.
      I have found that the configuration file smtpextauth.tab is not
interpreted correctly. The parameters have a shift. It is necessary to add
a "Dummy" field, like this:

"LOGIN" "*Dummy*" "/etc/dovecot/user_auth.sh"     "@@USER"        "@@PASS"
      "@@RFILE"

Regards!

Cesar Meloni


El mar., 5 mar. 2019 a las 4:43, Spon Spon via xmail (<[email protected]=
g>)
escribi=C3=B3:

> Hello,
>
> I have a mixed setup with DOVECAT for IMAP access, and XMAIl 1.27 for the
> rest.  The relay is cosed until authentication is made In order to have a
> centralized place for authentication I used in XMAIL external
> authentication.  However seems it is not working as I receive 550 Relay
> Denied when I try to send an email using this XMAIL server.
>
> The setup is as following:
>
> In smtpextauth.tab I put following line:
>
> "LOGIN" "/config/scripts/checkSmtpAuth.sh" "@@AUTH" "@@USER" "@@PASS"
> "@@RFILE"
> In server tab I have:
> "DefaultSmtpPerms" "MRVZ"
>
> In checkSmtpAuth.sh I always exit with 0 for testing.  However I received
> 550 Relay denied each time I tried to send an email.  If the script exits
> with 1 then the error is different, (Authentication error).
>
> I tried also populating RFILE with Perms=3DMR but without success. I trie=
d
> also with Perms=3DMRVZ . No change.
>
> Also another issue is the fact that those RFILE files were never get
> deleted.  For each email, that file is created and stays there forever
> (need external action to delete it)
>
> Is there any other settings that need to be made or is this a bug ?
>
> Using internal authentication (smtpauth.tab or mailuser.tab) emptying
> smtpextauth.tab  there is no such error, and everything works as expected=
..
>
> Unfortunately there is no debug log in application, so only way to figure
> out is DEBUG, and currently it is installed on an embedded router so no w=
ay
> to debug.
>
> Thanks,
> Spon
>
> _______________________________________________
> xmail mailing list
> [email protected]
> http://xmailserver.org/mailman/listinfo/xmail
>

--0000000000006eb1d9058499842a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Dear,=C2=A0</d=
iv><div dir=3D"ltr"><br></div><div dir=3D"ltr">=C2=A0 =C2=A0 =C2=A0 I have =
version 1.26 of XMail.<br></div><div dir=3D"ltr">=C2=A0 =C2=A0 =C2=A0 I hav=
e found that the configuration file smtpextauth.tab=C2=A0is not interpreted=
 correctly.=C2=A0The parameters have a shift.=C2=A0It is necessary to add a=
 &quot;Dummy&quot; field, like this:<br></div><div dir=3D"ltr"><br></div><d=
iv dir=3D"ltr">&quot;LOGIN&quot; &quot;<b>Dummy</b>&quot; &quot;/etc/doveco=
t/user_auth.sh&quot;=C2=A0 =C2=A0 =C2=A0&quot;@@USER&quot;=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 &quot;@@PASS&quot;=C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;@@RFILE&quot=
;<br></div><div dir=3D"ltr"><br></div><div dir=3D"ltr">Regards!<br></div><d=
iv dir=3D"ltr"><br></div><div>Cesar Meloni</div><div dir=3D"ltr"><br></div>=
</div></div></div></div></div></div></div><br><div class=3D"gmail_quote"><d=
iv dir=3D"ltr" class=3D"gmail_attr">El mar., 5 mar. 2019 a las 4:43, Spon S=
pon via xmail (&lt;<a href=3D"mailto:[email protected]">xmail@xmailserv=
er.org</a>&gt;) escribi=C3=B3:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex"><div><div style=3D"color:rgb(0,0,0);background-color:rgb(255=
,255,255);font-family:&quot;Helvetica Neue&quot;,Helvetica,Arial,&quot;Luci=
da Grande&quot;,sans-serif;font-size:16px"><div id=3D"gmail-m_3666756497292=
163925yui_3_16_0_ym19_1_1551766825845_5605">Hello,</div><div id=3D"gmail-m_=
3666756497292163925yui_3_16_0_ym19_1_1551766825845_5606"><br></div><div dir=
=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5=
607">I have a mixed setup with DOVECAT for IMAP access, and XMAIl 1.27 for =
the rest.=C2=A0 The relay is cosed until authentication is made In order to=
 have a centralized place for authentication I used in XMAIL external authe=
ntication.=C2=A0 However seems it is not working as I receive 550 Relay Den=
ied when I try to send an email using this XMAIL server.</div><div dir=3D"l=
tr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5608">=
<br></div><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19=
_1_1551766825845_5609">The setup is as following:</div><div dir=3D"ltr" id=
=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5610"><br></=
div><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_155=
1766825845_5611">In=C2=A0smtpextauth.tab I put following line:</div><div di=
r=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_=
5612"><br></div><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_=
0_ym19_1_1551766825845_5613">&quot;LOGIN&quot;<span style=3D"white-space:pr=
e-wrap" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_55=
88">	</span>&quot;/config/scripts/checkSmtpAuth.sh&quot;<span style=3D"whit=
e-space:pre-wrap" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_155176=
6825845_5589">	</span>&quot;@@AUTH&quot;<span style=3D"white-space:pre-wrap=
" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5590">	<=
/span>&quot;@@USER&quot;<span style=3D"white-space:pre-wrap" id=3D"gmail-m_=
3666756497292163925yui_3_16_0_ym19_1_1551766825845_5591">	</span>&quot;@@PA=
SS&quot;<span style=3D"white-space:pre-wrap" id=3D"gmail-m_3666756497292163=
925yui_3_16_0_ym19_1_1551766825845_5592">	</span>&quot;@@RFILE&quot;<br></d=
iv><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551=
766825845_5613">In server tab I have:</div><div dir=3D"ltr" id=3D"gmail-m_3=
666756497292163925yui_3_16_0_ym19_1_1551766825845_5613">&quot;DefaultSmtpPe=
rms&quot;<span style=3D"white-space:pre-wrap" id=3D"gmail-m_366675649729216=
3925yui_3_16_0_ym19_1_1551766825845_5921">	</span>&quot;MRVZ&quot;<br></div=
><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_155176=
6825845_5615"><br></div><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925y=
ui_3_16_0_ym19_1_1551766825845_5616">In checkSmtpAuth.sh I always exit with=
 0 for testing.=C2=A0 However I received 550 Relay denied each time I tried=
 to send an email.=C2=A0 If the script exits with 1 then the error is diffe=
rent, (Authentication error).=C2=A0<br></div><div dir=3D"ltr" id=3D"gmail-m=
_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5616"><br></div><div di=
r=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_=
5616">I tried also populating RFILE with Perms=3DMR but without success. I =
tried also with Perms=3DMRVZ . No change.</div><div dir=3D"ltr" id=3D"gmail=
-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5616"><br></div><div =
dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_155176682584=
5_5616">Also another issue is the fact that those RFILE files were never ge=
t deleted.=C2=A0 For each email, that file is created and stays there forev=
er (need external action to delete it)</div><div dir=3D"ltr" id=3D"gmail-m_=
3666756497292163925yui_3_16_0_ym19_1_1551766825845_5616"><br></div><div dir=
=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5=
616">Is there any other settings that need to be made or is this a bug ?</d=
iv><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551=
766825845_5616"><br></div><div dir=3D"ltr" id=3D"gmail-m_366675649729216392=
5yui_3_16_0_ym19_1_1551766825845_5616">Using internal authentication (smtpa=
uth.tab or mailuser.tab) emptying smtpextauth.tab =C2=A0there is no such er=
ror, and everything works as expected.</div><div dir=3D"ltr" id=3D"gmail-m_=
3666756497292163925yui_3_16_0_ym19_1_1551766825845_5616"><br></div><div dir=
=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5=
616">Unfortunately there is no debug log in application, so only way to fig=
ure out is DEBUG, and currently it is installed on an embedded router so no=
 way to debug. =C2=A0</div><div dir=3D"ltr" id=3D"gmail-m_36667564972921639=
25yui_3_16_0_ym19_1_1551766825845_5616"><br></div><div dir=3D"ltr" id=3D"gm=
ail-m_3666756497292163925yui_3_16_0_ym19_1_1551766825845_5616">Thanks,</div=
><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925yui_3_16_0_ym19_1_155176=
6825845_5616">Spon</div><div dir=3D"ltr" id=3D"gmail-m_3666756497292163925y=
ui_3_16_0_ym19_1_1551766825845_5616"><br></div></div></div>________________=
_______________________________<br>
xmail mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">xmail@xmailserve=
r.org</a><br>
<a href=3D"http://xmailserver.org/mailman/listinfo/xmail" rel=3D"noreferrer=
" target=3D"_blank">http://xmailserver.org/mailman/listinfo/xmail</a><br>
</blockquote></div>

--0000000000006eb1d9058499842a--

--===============0161598603==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail

--===============0161598603==--