Jump to content

Email notifications


Recommended Posts

Posted
12 minutes ago, Luke said:

Right but talking to you right now you've mentioned the config files, so seeing the contents of them before/after certain changes would make this easier to evaluate.

There is nothing but my personal data in them !

Posted

@chudak When you restore from your backup, do NOT re-install the plugins, but start afresh from the plugin catalog.

Or, navigate into the Emby backup and remove the DLL and configuration file(s) before restoring. 

Then you can install the plugin direct from the catalog and set it up afresh. 

  • Like 1
Posted
7 hours ago, CBers said:

@chudak When you restore from your backup, do NOT re-install the plugins, but start afresh from the plugin catalog.

Or, navigate into the Emby backup and remove the DLL and configuration file(s) before restoring. 

Then you can install the plugin direct from the catalog and set it up afresh. 

That's a good idea @CBers

Still the underlining cause is unclear.

Posted
8 hours ago, CBers said:

@chudak When you restore from your backup, do NOT re-install the plugins, but start afresh from the plugin catalog.

Or, navigate into the Emby backup and remove the DLL and configuration file(s) before restoring. 

Then you can install the plugin direct from the catalog and set it up afresh. 

 

@CBers If I remove/purge emby installation and remove /var/lib/emby and then do what you suggest, do you think it will work ?

Posted
16 minutes ago, chudak said:

 

@CBers If I remove/purge emby installation and remove /var/lib/emby and then do what you suggest, do you think it will work ?

Sorry, not sure about Emby running on Linux. 

If you have a working server, then just do a restore minus the plugins, then add them from the catalog. 

Posted
1 hour ago, CBers said:

Sorry, not sure about Emby running on Linux. 

If you have a working server, then just do a restore minus the plugins, then add them from the catalog. 

So that actually worked, thx @CBers

I am happy, the root issue still exists !

@Luke FYI

  • Like 2
  • 5 weeks later...
Posted (edited)

[deleted]

Edited by emdubya77
  • 4 years later...
HawkXP71
Posted

Sorry for reviving an old thread, but I am hitting the exact same issues trying to setup an office 365 account as the SMTP server.

email from/To: my email account on office 365

SMTP Host name: smtp.office365.com
SMTP Port: 587 (with SSL/TLS enabled, 25 with it unchecked) both fail
Enable SSL/TLS: Checked
SMTP username: same as my email address
Password: set correctly

Clicking the Send test notification is attempted and it fails.

From the Log:

 

System.Net.Mail.SmtpException: System.Net.Mail.SmtpException: Failure sending mail.
---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult)
at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnectionCallback(IAsyncResult result)
--- End of stack trace from previous location ---
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of inner exception stack trace ---
at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotification(InternalNotificationRequest request, CancellationToken cancellationToken)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
Source: System.Private.CoreLib
TargetSite: Void Throw()
InnerException: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Source: System.Net.Sockets
TargetSite: Void ThrowException(System.Net.Sockets.SocketError, System.Threading.CancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult)
at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnectionCallback(IAsyncResult result)
--- End of stack trace from previous location ---
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)


Any thoughts? Suggestions?

I have run nmap, and confirmed that both port 587 and 25 are accessible at the SMTP server

I have also tried using gmail with the less than secure app settings (16 digit code etc) and get the same results.

 

 

Posted
29 minutes ago, HawkXP71 said:

Sorry for reviving an old thread, but I am hitting the exact same issues trying to setup an office 365 account as the SMTP server.

email from/To: my email account on office 365

SMTP Host name: smtp.office365.com
SMTP Port: 587 (with SSL/TLS enabled, 25 with it unchecked) both fail
Enable SSL/TLS: Checked
SMTP username: same as my email address
Password: set correctly

Clicking the Send test notification is attempted and it fails.

From the Log:

 

System.Net.Mail.SmtpException: System.Net.Mail.SmtpException: Failure sending mail.
---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult)
at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnectionCallback(IAsyncResult result)
--- End of stack trace from previous location ---
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of inner exception stack trace ---
at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotification(InternalNotificationRequest request, CancellationToken cancellationToken)
at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
Source: System.Private.CoreLib
TargetSite: Void Throw()
InnerException: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Source: System.Net.Sockets
TargetSite: Void ThrowException(System.Net.Sockets.SocketError, System.Threading.CancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult)
at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnectionCallback(IAsyncResult result)
--- End of stack trace from previous location ---
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)


Any thoughts? Suggestions?

I have run nmap, and confirmed that both port 587 and 25 are accessible at the SMTP server

I have also tried using gmail with the less than secure app settings (16 digit code etc) and get the same results.

 

 

Are you sure you configured the right values? Looks like the host is not responding.

darkassassin07
Posted

https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online

 

Microsoft has diabled basic auth (user+password) for most services and is continuing to do so with more.

This may or may not be your current problem; but it will become a problem soon as Emby does not support 0auth2.

I shifted to gmail for the time being, and will hopefully be moving elsewhere soon. Not entirely sure where yet.

  • Agree 2
HawkXP71
Posted
1 hour ago, Luke said:

Are you sure you configured the right values? Looks like the host is not responding.

The exact settings work fine from my synology NAS. 

On the synology box, if I change the password, the log shows an auth error.

HawkXP71
Posted (edited)
1 minute ago, HawkXP71 said:

The exact settings work fine from my synology NAS. 

On the synology box, if I change the password, the log shows an auth error.

 

Edited by HawkXP71
HawkXP71
Posted
32 minutes ago, darkassassin07 said:

https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online

 

Microsoft has diabled basic auth (user+password) for most services and is continuing to do so with more.

This may or may not be your current problem; but it will become a problem soon as Emby does not support 0auth2.

I shifted to gmail for the time being, and will hopefully be moving elsewhere soon. Not entirely sure where yet.

Can you share what your settings are?

darkassassin07
Posted

smtp.gmail.com  587  tls enabled.

 

Requires the email as a username + an app password 

HawkXP71
Posted
1 hour ago, Luke said:

Are you sure you configured the right values? Looks like the host is not responding.

I have used the 16 character code from gmails app password feature. Both with and without spaces.

I have attached a screen shot of the gmail settings 


Any ideas?

smtpsettings.png

darkassassin07
Posted

Same error as above?

 

 

That error would indicate a network issue. Either the name is resolving to an incorrect ip which isn't listening for connections, the connection is being blocked by a firewall, or there's a problem routing the packets correctly.

 

Verify the server can reach smtp.gmail.com on port 587 using telnet or nmap.

HawkXP71
Posted
1 hour ago, darkassassin07 said:

smtp.gmail.com  587  tls enabled.

 

Requires the email as a username + an app password 

when you say user name + an app password

say I had app name "emby" and the generated password is "aaaa bbbb cccc dddd" for an email of "yyy@gmail.com"

woudl the user name be
yyy@gmail.com aaa bbb ccc dddd

Sorry for being so dense, Ive tried just about everything to no avail

nmap works fine for 587 to smtp.gmail.com

 

darkassassin07
Posted

Yeah, the username is your email address 

Posted

Been trying for several days to get notifications to work via email. Microsoft and GMail both fail. 

  • Like 1
HawkXP71
Posted
1 hour ago, darkassassin07 said:

Yeah, the username is your email address 

and the password is the 16 digit code? with spaces or without?

darkassassin07
Posted

With spaces.

  • Like 1
HawkXP71
Posted
3 hours ago, darkassassin07 said:

With spaces.

Thanks.. Finally got a new error!!!

Error sending notification

Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail [MW3PR05CA0020.namprd05.prod.outlook.com 2025-03-04T03:33:37.085Z 08DD59B6AEE427E4]

 

Neminem
Posted

Try unchecking image.png.d6c91e8ff8964d809187a172c123c19e.png its not the same 😉

  • 2 weeks later...
Posted (edited)

I don't understand. I try and I have this error:

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. For more information, go to

I have user : yyy@gmail.com and password aaa bbb ccc dddd

image.png.fdfdf254a880a364f42ebd146933c914.png

Edited by MAX92
Posted
12 hours ago, MAX92 said:

I don't understand. I try and I have this error:

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. For more information, go to

I have user : yyy@gmail.com and password aaa bbb ccc dddd

image.png.fdfdf254a880a364f42ebd146933c914.png

Hi there, please attach the emby server log:

Thanks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...