Re: SMTP external authentication is not worjing

Spon Spon via xmail <[email protected]> Tue, 5 Mar 2019 15:31:18 +0000 (UTC)
Newsgroups gmane.mail.xmail.general
Message-ID <[email protected]>
--===============1854748836==
Content-Type: multipart/alternative; 
	boundary="----=_Part_9394659_188465601.1551799878913"
Content-Length: 14251

------=_Part_9394659_188465601.1551799878913
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,
smtp.ipmap.tab contains "0.0.0.0"=C2=A0=C2=A0=C2=A0 "0.0.0.0"=C2=A0=C2=A0=
=C2=A0 "ALLOW"=C2=A0=C2=A0=C2=A0 1smtprelay.tab contains only local address=
es, therefore not the IP from where I try (internet).=C2=A0 But htis hsould=
 be fine, because this is why I use authentication.=20
To summarize:=C2=A0 I want to connect to the xmail server from internet, an=
d send an email to a different domain (internet).=C2=A0 I have following sc=
enarios (all other settings remaining unchanged)1. Leaving smtpextauth empt=
y, if I send a mail using a user/pass defined in mailusers.tab mail is prop=
erly send=20
2. Leaving smtpextauth empty, if I send a mail using a user/pass defined in=
 smtpauth.tab mail is properly send=20
3. If I put an entry in smtpextauth with a script that always return 1, no =
matter what user/pass I'll use I received AUTH=3DEFAIL:TYPE=3DLOGIN in the =
log, the user not being authenticated, which is as expected, mail not being=
 sent.4. If I put an entry in smtpextauth with a script that always return =
0 , no matter what user/pass I'll use I received RCPT=3DERELAY in the log, =
the user BEING authenticated, which is fine, but error not being sent becau=
se of RELAY DENIED.
In this step 4 no matter if I put something in RFILE (Perms=3DMRZV) or noth=
ing, the result is the same.
The problem seems to be related to external authentication, because the int=
ernal one works fine.

Thank You




      From: Edinilson - ATINET <[email protected]>
 To: Spon Spon <[email protected]>=20
Cc: "[email protected]" <[email protected]>
 Sent: Tuesday, March 5, 2019 4:51 PM
 Subject: Re: [xmail] SMTP external authentication is not worjing
  =20
Is your ip range allowed in smtprelay.tab?
And about smtp.ipmap.tab ?
Do you have installed a new Xmail Server OR it stops after some time of use=
?

Edinilson


---- Original Message ----
From: Spon Spon via xmail <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Ter, Mar 5, 2019, 4:44 AM
Subject: [xmail] SMTP external authentication is not worjing

Hello,
I have a mixed setup with DOVECAT for IMAP access, and XMAIl 1.27 for the r=
est. =C2=A0The relay is cosed until authentication is made In order to have=
 a centralized place for authentication I used in XMAIL external authentica=
tion. =C2=A0However seems it is not working as I receive 550 Relay Denied w=
hen I try to send an email using this XMAIL server.
The setup is as following:
In=C2=A0smtpextauth.tab I put following line:
"LOGIN" "/config/scripts/checkSmtpAuth.sh" "@@AUTH" "@@USER" "@@PASS" "@@RF=
ILE"
In server tab I have:"DefaultSmtpPerms" "MRVZ"

In checkSmtpAuth.sh I always exit with 0 for testing. =C2=A0However I recei=
ved 550 Relay denied each time I tried to send an email. =C2=A0If the scrip=
t exits with 1 then the error is different, (Authentication error).=C2=A0

I tried also populating RFILE with Perms=3DMR but without success. I tried =
also with Perms=3DMRVZ . No change.
Also another issue is the fact that those RFILE files were never get delete=
d. =C2=A0For 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 smtpe=
xtauth.tab =C2=A0there is no such error, and everything works as expected.
Unfortunately there is no debug log in application, so only way to figure o=
ut is DEBUG, and currently it is installed on an embedded router so no way =
to debug. =C2=A0
Thanks,Spon



  =20
------=_Part_9394659_188465601.1551799878913
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div style=3D"color:#000; background-color:#fff; f=
ont-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font=
-size:16px"><div id=3D"yui_3_16_0_ym19_1_1551799190179_4335">Hi,</div><div =
id=3D"yui_3_16_0_ym19_1_1551799190179_4486"><br></div><div dir=3D"ltr" id=
=3D"yui_3_16_0_ym19_1_1551799190179_4508">smtp.ipmap.tab contains "0.0.0.0"=
&nbsp;&nbsp;&nbsp; "0.0.0.0"&nbsp;&nbsp;&nbsp; "ALLOW"&nbsp;&nbsp;&nbsp; 1<=
/div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4487">smtprelay=
..tab contains only local addresses, therefore not the IP from where I try (=
internet).&nbsp; But htis hsould be fine, because this is why I use authent=
ication. <br></div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4=
485">To summarize:&nbsp; I want to connect to the xmail server from interne=
t, and send an email to a different domain (internet).&nbsp; I have followi=
ng scenarios (all other settings remaining unchanged)</div><div dir=3D"ltr"=
 id=3D"yui_3_16_0_ym19_1_1551799190179_4489">1. Leaving smtpextauth empty, =
if I send a mail using a user/pass defined in mailusers.tab mail is properl=
y send <br></div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_448=
8">2. Leaving smtpextauth empty, if I send a mail using a user/pass defined=
 in smtpauth.tab mail is properly send <br></div><div dir=3D"ltr" id=3D"yui=
_3_16_0_ym19_1_1551799190179_4349">3. If I put an entry in smtpextauth with=
 a script that always return 1, no matter what user/pass I'll use I receive=
d AUTH=3DEFAIL:TYPE=3DLOGIN in the log, the user not being authenticated, w=
hich is as expected, mail not being sent.</div><div dir=3D"ltr" id=3D"yui_3=
_16_0_ym19_1_1551799190179_4364">4. If I put an entry in smtpextauth with a=
 script that always return 0 , no matter what user/pass I'll use I received=
 RCPT=3DERELAY in the log, the user BEING authenticated, which is fine, but=
 error not being sent because of RELAY DENIED.</div><div dir=3D"ltr" id=3D"=
yui_3_16_0_ym19_1_1551799190179_4490"><br></div><div dir=3D"ltr" id=3D"yui_=
3_16_0_ym19_1_1551799190179_4491">In this step 4 no matter if I put somethi=
ng in RFILE (Perms=3DMRZV) or nothing, the result is the same.</div><div di=
r=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4494"><br></div><div dir=3D=
"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4511">The problem seems to be r=
elated to external authentication, because the internal one works fine.<br>=
</div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4492"><br></di=
v><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4512">Thank You<br=
></div><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4513"><br></d=
iv><div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1551799190179_4514"><br></div><=
div class=3D"qtdSeparateBR" id=3D"yui_3_16_0_ym19_1_1551799190179_3929"><br=
><br></div><div class=3D"yahoo_quoted" id=3D"yui_3_16_0_ym19_1_155179919017=
9_4345" style=3D"display: block;">  <div style=3D"font-family: Helvetica Ne=
ue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id=3D"yu=
i_3_16_0_ym19_1_1551799190179_4344"> <div style=3D"font-family: HelveticaNe=
ue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size:=
 16px;" id=3D"yui_3_16_0_ym19_1_1551799190179_4343"> <div dir=3D"ltr" id=3D=
"yui_3_16_0_ym19_1_1551799190179_4342"> <font id=3D"yui_3_16_0_ym19_1_15517=
99190179_4348" size=3D"2" face=3D"Arial"> <hr size=3D"1"> <b id=3D"yui_3_16=
_0_ym19_1_1551799190179_4347"><span style=3D"font-weight:bold;" id=3D"yui_3=
_16_0_ym19_1_1551799190179_4346">From:</span></b> Edinilson - ATINET &lt;ed=
[email protected]&gt;<br> <b><span style=3D"font-weight: bold;">To:</sp=
an></b> Spon Spon &lt;[email protected]&gt; <br><b><span style=3D"font-weig=
ht: bold;">Cc:</span></b> "[email protected]" &lt;[email protected]=
&gt;<br> <b><span style=3D"font-weight: bold;">Sent:</span></b> Tuesday, Ma=
rch 5, 2019 4:51 PM<br> <b><span style=3D"font-weight: bold;">Subject:</spa=
n></b> Re: [xmail] SMTP external authentication is not worjing<br> </font> =
</div> <div class=3D"y_msg_container" id=3D"yui_3_16_0_ym19_1_1551799190179=
_4515"><br><div id=3D"yiv1908264789"><div id=3D"yui_3_16_0_ym19_1_155179919=
0179_4517"><font size=3D"2" face=3D"Tahoma"></font><div id=3D"yui_3_16_0_ym=
19_1_1551799190179_4516">Is your ip range allowed in smtprelay.tab?</div><d=
iv id=3D"yui_3_16_0_ym19_1_1551799190179_4518"><br clear=3D"none"></div><di=
v id=3D"yui_3_16_0_ym19_1_1551799190179_4519">And about smtp.ipmap.tab ?</d=
iv><div><br clear=3D"none"></div><div id=3D"yui_3_16_0_ym19_1_1551799190179=
_4520">Do you have installed a new Xmail Server OR it stops after some time=
 of use?</div><div id=3D"yui_3_16_0_ym19_1_1551799190179_4521"><br clear=3D=
"none"></div><div id=3D"yui_3_16_0_ym19_1_1551799190179_4522"><br clear=3D"=
none"></div><div id=3D"yui_3_16_0_ym19_1_1551799190179_4523">Edinilson<br c=
lear=3D"none"></div><br clear=3D"none"><div class=3D"yiv1908264789yqt149766=
3687" id=3D"yiv1908264789yqt33901"><blockquote style=3D"border-left:solid 2=
px #000000;margin-left:5px;padding-left:5px;">---- Original Message ----<br=
 clear=3D"none"><b>From</b>: Spon Spon via xmail &lt;[email protected]&=
gt;<br clear=3D"none"><b>To</b>: "[email protected]" &lt;xmail@xmailser=
ver.org&gt;<br clear=3D"none"><b>Sent</b>: Ter, Mar 5, 2019, 4:44 AM<br cle=
ar=3D"none"><b>Subject</b>: [xmail] SMTP external authentication is not wor=
jing<br clear=3D"none"><br clear=3D"none"><div style=3D"color:#000;backgrou=
nd-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, =
sans-serif;font-size:16px;"><div id=3D"yiv1908264789yui_3_16_0_ym19_1_15517=
66825845_5605">Hello,</div><div id=3D"yiv1908264789yui_3_16_0_ym19_1_155176=
6825845_5606"><br clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv1908264789=
yui_3_16_0_ym19_1_1551766825845_5607">I have a mixed setup with DOVECAT for=
 IMAP access, and XMAIl 1.27 for the rest. &nbsp;The relay is cosed until a=
uthentication is made In order to have a centralized place for authenticati=
on I used in XMAIL external authentication. &nbsp;However seems it is not w=
orking as I receive 550 Relay Denied when I try to send an email using this=
 XMAIL server.</div><div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1=
551766825845_5608"><br clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv19082=
64789yui_3_16_0_ym19_1_1551766825845_5609">The setup is as following:</div>=
<div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5610"><=
br clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19=
_1_1551766825845_5611">In&nbsp;smtpextauth.tab I put following line:</div><=
div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5612"><b=
r clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_=
1_1551766825845_5613">"LOGIN"<span id=3D"yiv1908264789yui_3_16_0_ym19_1_155=
1766825845_5588" style=3D"white-space:pre-wrap;">=09</span>"/config/scripts=
/checkSmtpAuth.sh"<span id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_=
5589" style=3D"white-space:pre-wrap;">=09</span>"@@AUTH"<span id=3D"yiv1908=
264789yui_3_16_0_ym19_1_1551766825845_5590" style=3D"white-space:pre-wrap;"=
>=09</span>"@@USER"<span id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845=
_5591" style=3D"white-space:pre-wrap;">=09</span>"@@PASS"<span id=3D"yiv190=
8264789yui_3_16_0_ym19_1_1551766825845_5592" style=3D"white-space:pre-wrap;=
">=09</span>"@@RFILE"<br clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv190=
8264789yui_3_16_0_ym19_1_1551766825845_5613">In server tab I have:</div><di=
v dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5613">"Def=
aultSmtpPerms"<span id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5921=
" style=3D"white-space:pre-wrap;">=09</span>"MRVZ"<br clear=3D"none"></div>=
<div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5615"><=
br clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19=
_1_1551766825845_5616">In checkSmtpAuth.sh I always exit with 0 for testing=
.. &nbsp;However I received 550 Relay denied each time I tried to send an em=
ail. &nbsp;If the script exits with 1 then the error is different, (Authent=
ication error).&nbsp;<br clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv190=
8264789yui_3_16_0_ym19_1_1551766825845_5616"><br clear=3D"none"></div><div =
dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5616">I trie=
d also populating RFILE with Perms=3DMR but without success. I tried also w=
ith Perms=3DMRVZ . No change.</div><div dir=3D"ltr" id=3D"yiv1908264789yui_=
3_16_0_ym19_1_1551766825845_5616"><br clear=3D"none"></div><div dir=3D"ltr"=
 id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5616">Also another issu=
e is the fact that those RFILE files were never get deleted. &nbsp;For each=
 email, that file is created and stays there forever (need external action =
to delete it)</div><div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_15=
51766825845_5616"><br clear=3D"none"></div><div dir=3D"ltr" id=3D"yiv190826=
4789yui_3_16_0_ym19_1_1551766825845_5616">Is there any other settings that =
need to be made or is this a bug ?</div><div dir=3D"ltr" id=3D"yiv190826478=
9yui_3_16_0_ym19_1_1551766825845_5616"><br clear=3D"none"></div><div dir=3D=
"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5616">Using intern=
al authentication (smtpauth.tab or mailuser.tab) emptying smtpextauth.tab &=
nbsp;there is no such error, and everything works as expected.</div><div di=
r=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5616"><br clea=
r=3D"none"></div><div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551=
766825845_5616">Unfortunately there is no debug log in application, so only=
 way to figure out is DEBUG, and currently it is installed on an embedded r=
outer so no way to debug. &nbsp;</div><div dir=3D"ltr" id=3D"yiv1908264789y=
ui_3_16_0_ym19_1_1551766825845_5616"><br clear=3D"none"></div><div dir=3D"l=
tr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5616">Thanks,</div><=
div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845_5616">Sp=
on</div><div dir=3D"ltr" id=3D"yiv1908264789yui_3_16_0_ym19_1_1551766825845=
_5616"><br clear=3D"none"></div></div></blockquote></div></div></div><br><b=
r></div> </div> </div>  </div></div></body></html>
------=_Part_9394659_188465601.1551799878913--

--===============1854748836==
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

--===============1854748836==--