voodoodyne / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail
Other
352 stars 139 forks source link

SMTP AUTH LOGIN support fails with built in .Net SmtpClient #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The built in System.Net.Mail.SmtpClient in .NET always issues its AUTH LOGIN 
command with the username (base64 encoded) as part of the same command. I can't 
find a spec that says they can do this - but it's built into the .NET libraries 
since 2.0 so it seems like a good idea to be able to support it (I need to in 
my server).

The .NET client does this:
AUTH LOGIN c29tZVVzZXJuYW1l

Instead of issuing a:
AUTH LOGIN
and then waiting for the:
334 VXNlcm5hbWU6

What version of the product are you using? On what operating system?
3.1.6

Please provide any additional information below.

I've modified LoginAuthenticationHandlerFactory.auth() to look for the username 
in the AUTH LOGIN command and then use that and issue a challenge for the 
respone. I've attached my modified version of the source file.

Original issue reported on code.google.com by reidn...@gmail.com on 21 Jul 2011 at 7:22

Attachments:

GoogleCodeExporter commented 9 years ago
I have applied your changes with minor modifications. Please verify.

Original comment by hontvari@flyordie.com on 25 Jul 2011 at 10:47

GoogleCodeExporter commented 9 years ago
I just verified the change works with the .NET SMTP library

Original comment by reidn...@gmail.com on 25 Jul 2011 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by hontvari@flyordie.com on 25 Jul 2011 at 3:43