[Gambas-user] SMTP Errors

Willy Raets willy at ...2734...
Thu Aug 22 02:55:52 CEST 2013


On Wed, 2013-08-21 at 20:22 -0400, Marty wrote:
> I think I know why gb.smtp does not work. I have been getting the 535 
> error (authentication failed). I have tried everything including Rolf's 
> suggestion of leaving off the user and password. Still authentication 
> fails. 

You need to make sure that your smtp server does NOT require
authentication. If so there is NO need for user, password and encryption
and you should get NO authentication error.

If your smtp server DOES require user and password, leaving user and
password out will lead to an authentication failure (as it requires
authentication at server side)

Fact that you get the errors means gb.net.smtp does communicate with
smtp server, as these errors codes are generated by smtp server (giving
you the reason what goes wrong).


> Looking at the documentation for password and user it says that 
> only plain authentication is supported. I think the send process breaks 
> down when the password and user get to the smtp host. It may be looking 
> for an SSL encoded string not a plain string; therefore authentication 
> fails. Rolf and Willy let me know what you think. Is this possible? 
> Could openSSL be at fault? That's the other thought I had.

I cut this piece out of an earlier post you wrote:

> >>> 2.If I use Net.SSL with port 465  "Error 535 Authentication 
> >>>        Debug output:
> >>> <- 220 relay01.dlls.pa.xxxxxxx.net ESMTP Postfix
> >>>
> >>> -> ehlo marty-xxxxxxxxxxxxxxxxxxxx
> >>>
> >>> <- 250-relay01.dlls.pa.xxxxx.net
> >>> 250-PIPELINING
> >>> 250-SIZE 36350634
> >>> 250-ETRN
> >>> 250-AUTH LOGIN PLAIN
> >>> 250-AUTH=LOGIN PLAIN
> >>> 250-ENHANCEDSTATUSCODES
> >>> 250-8BITMIME
> >>> 250 DSN
> >>>
> >>> -> auth plain AG1tY2cyOTQ0MEBmcm9udGllci5jb20AOTA2NlBvDQo=
> >>>
> >>> <- 535 5.7.8 Error: authentication failed: authentication failure
> >>>
> >>> -> quit

See the line 250-AUTH LOGIN PLAIN and 250-AUTH=LOGIN PLAIN.
Seems like even when using SSL user and password is passed as plain text
and thus refused by smtp server leading to an authentication failure.
So seems documentation is correct on plain text password being passed.

Leaving user, password and encryption out will only work if smtp server
allows access without authentication (as explained above).

> 
> Rolf I've tried the routine you suggested and it seems to work. I may 
> follow your advice and use it.

Have you been having private mails as I wonder about the routine or are
you mixing up names (Rolf <-> Willy) and mean the routine I posted?
Because if so, feel free to use.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org








More information about the User mailing list