xenu 10 Posted July 31, 2018 Share Posted July 31, 2018 Hello, I do not get any mail notifications from emby. Manually sending a mail using the same credentials from the server's cli works. Turning on debug logging shows a missing "AUTH" when sending an email which results in the mail being rejected as the user is not logged in. Working (from cli): < ip-12-34-56-78.myisp.com[12-34-56-78]: STARTTLS > ip-12-34-56-78.myisp.com[12-34-56-78]: 220 2.0.0 Ready to start TLS < ip-12-34-56-78.myisp.com[12-34-56-78]: EHLO emby01.ipa.mydomain.com < ip-12-34-56-78.myisp.com[12-34-56-78]: AUTH PLAIN MYPASSWORD > ip-12-34-56-78.myisp.com[12-34-56-78]: 235 2.7.0 Authentication successful < ip-12-34-56-78.myisp.com[12-34-56-78]: MAIL FROM:<sender@mydomain.com> SIZE=307 > ip-12-34-56-78.myisp.com[12-34-56-78]: 250 2.1.0 Ok Not working (emby mail plugin): < ip-12-34-56-78.myisp.com[12.34.56.78]: STARTTLS > ip-12-34-56-78.myisp.com[12.34.56.78]: 220 2.0.0 Ready to start TLS < ip-12-34-56-78.myisp.com[12.34.56.78]: EHLO emby01.ipa.mydomain.com < ip-12-34-56-78.myisp.com[12.34.56.78]: MAIL FROM:<sender@mydomain.com> > ip-12-34-56-78.myisp.com[12.34.56.78]: 554 5.7.1 <ip-12-34-56-78.myisp.com[12.34.56.78]>: Client host rejected: Access denied Here are the plugin settings: <?xml version="1.0"?> <PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Options> <SMTPOptions> <Enabled>true</Enabled> <EmailFrom>sender@mydomain.com</EmailFrom> <EmailTo>receiver@mydomain.com</EmailTo> <Server>mail.mydomain.com</Server> <Port>587</Port> <UseCredentials>true</UseCredentials> <Username>sender@mydomain.com</Username> <Password>MyPassword</Password> <PwData>MyPasswordData==</PwData> <MediaBrowserUserId>UserId</MediaBrowserUserId> <SSL>true</SSL> </SMTPOptions> </Options> </PluginConfiguration> Here is the error from the server log: 2018-07-31 13:56:34.931 Info App: Sending email sender@mydomain.com with subject Emby: Emby: Test Notification 2018-07-31 13:56:35.632 Error App: Error sending email: System.Net.Mail.SmtpException: Transaction failed. The server response was: 5.7.1 <ip-12-34-56-78.myisp.com[12-34-56-78]>: Client host rejected: Access denied at System.Net.Mail.RecipientCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotificationCore(UserNotification request, CancellationToken cancellationToken) I attached both postfix mailserver logs if more info is needed. postfix_emby_ok.txt postfix_emby_fail.txt Link to comment Share on other sites More sharing options...
Luke 37189 Posted July 31, 2018 Share Posted July 31, 2018 Hi, if you take a look at the source code, we are supplying credentials: https://github.com/MediaBrowser/email-notifications/blob/master/MediaBrowser.Plugins.SmtpNotifications/Notifier.cs#L92-L96 I am not quite sure what your issue is as this is working for others. What I will say though is that the email plugin is a community addition, and contributions are welcome. The Emby team will chip in when we can. The source code can be found here: https://github.com/MediaBrowser/email-notifications Thanks ! Link to comment Share on other sites More sharing options...
Solution xenu 10 Posted July 31, 2018 Author Solution Share Posted July 31, 2018 Thanks Luke! After your post I tested and researched some more and found that dotnet core smtp does not do "PLAIN" auth. It requires "LOGIN" even though that's just another plaintext authentication mechanism. Outlook seems to require this as well from what I have read. Since my dovecot installation which also handles smtp auth did not offer that, authentication failed. After setting "auth_mechanisms = plain login" in "dovecot/conf.d/10-auth.conf" everything works fine. Link to comment Share on other sites More sharing options...
Luke 37189 Posted July 31, 2018 Share Posted July 31, 2018 Thanks for the feedback ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now