Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use SMTP server that doesn't require authentication #429

Closed
FrankFromHR opened this issue Jul 18, 2016 · 14 comments
Closed

Cannot use SMTP server that doesn't require authentication #429

FrankFromHR opened this issue Jul 18, 2016 · 14 comments
Assignees

Comments

@FrankFromHR
Copy link

FrankFromHR commented Jul 18, 2016

Plex Requests.Net Version: 1.8.4
Operating System: Ubuntu 16.04 x64
Mono Version: 4.2.1

Applicable Logs (from /logs/ directory or the Admin page):

System.NotSupportedException: The SMTP server does not support authentication. at MailKit.Net.Smtp.SmtpClient.Authenticate (System.Text.Encoding encoding, ICredentials credentials, CancellationToken cancellationToken) <0x4200c6a0 + 0x00747> in :0 at MailKit.MailService.Authenticate (System.String userName, System.String password, CancellationToken cancellationToken) <0x4200c380 + 0x00094> in :0 at PlexRequests.Services.Notification.EmailMessageNotification+d__14.MoveNext () <0x41ff88b0 + 0x0020b> in :0

I did a quick search but I didn't see anything else mentioning this kind of error. This also stops me from using SSMTP which I've configured on the server as my default SMTP server because of the same issue, no authentication required.

@tidusjar
Copy link
Member

Just to clarify, you are using the correct ports and host etc?

@FrankFromHR
Copy link
Author

Yes, but it won't let me save the settings without entering a username/password combination.

@tidusjar
Copy link
Member

Oh wait, so your problem is that you have to enter a username and password, but you are saying that should be optional?

That makes more sense now.
I'll add an authenticate checkbox and enable/disable the username and password fields based on that. If there is no username or password then we wont try and authenticate with the smtp server. Sound good?

@FrankFromHR
Copy link
Author

Exactly :)

Thank you sir that should work perfectly.

tidusjar pushed a commit that referenced this issue Jul 25, 2016
@tidusjar
Copy link
Member

TODO: Need to test the new changes (especially the new UI logic).

@FrankFromHR once i've tested are you willing to try the dev build to confirm it fixes your issue?

@tidusjar
Copy link
Member

@FrankFromHR The dev build with the fixed SMTP authentication is here: https://ci.appveyor.com/project/tidusjar/requestplex/build/1.8.654/artifacts

Please can you confirm that this fixes your issue?

@tidusjar tidusjar self-assigned this Jul 25, 2016
@FrankFromHR
Copy link
Author

@tidusjar let me give it a try.

@FrankFromHR
Copy link
Author

It doesn't appear to be working.

Message Area Log Level Date
Sent email notification test PlexRequests.UI.Modules.AdminModule Info 7/25/2016 8:05:56 PM

I've tried it using the localhost running SSMTP and also my ISP provider.. I never get anymore logs and nothing ever ends up in my email.

@tidusjar
Copy link
Member

You not getting any logs is a good thing, it means that nothing went wrong in the code... Are you 100% sure there is no email, check junk/spam?

@FrankFromHR
Copy link
Author

Nothing in Spam. Are you outputting the SMTP output to the log at all? I'm wondering if it's being rejected by my ISP for some reason.

Sorry posted my reply under my work account.

@tidusjar
Copy link
Member

We only output things to the log when something goes wrong e.g. We get a bad response from the SMTP server (Since we are technically creating a SMTP client we will get responses)

We will log an Error.

@FrankFromHR
Copy link
Author

FrankFromHR commented Jul 26, 2016

Okay, I'm not sure what's happening then. I'm able to send email using both the localhost SSMTP configuration and my ISP from the server using mail.

@tidusjar
Copy link
Member

It's working now?

@FrankFromHR
Copy link
Author

Sorry mail is a CLI application on the server, I'm running this on Ubuntu 16.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants