Email notification on job completion

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Cammo
Newbie
Newbie
Posts: 14
Joined: November 2nd, 2011, 6:15 am

Email notification on job completion

Post by Cammo »

Hi all,

I've been using email notification on job completion for a couple of years now and it has been faultless. On Feb 4th just gone it simply stopped and won't send notification emails. The test email from within Sabnzbd+ config works perfectly and it arrives in my inbox however I don't get any on completion of downloads.

Any thoughts?

Cam
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Email notification on job completion

Post by shypike »

Are the email options still enabled?
Check the logging file after a job completes.
You may need to set logging to "Debug" on the Status page first.
Cammo
Newbie
Newbie
Posts: 14
Joined: November 2nd, 2011, 6:15 am

Re: Email notification on job completion

Post by Cammo »

Hi,

Interesting, the test email is successful and I get the deja vu email. However the log shows "2015-02-10 21:46:50,696 ERROR: Failed to connect to mail server". I am using smtp.gmail.com:587 for the outgoing mail server. Any other thoughts?

Cam
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Email notification on job completion

Post by shypike »

Maybe this has something to do with it?
https://support.google.com/accounts/answer/6010255

I assume SABnzbd is a "less secure" app.
Maybe create an extra gmail account and use that only to send SABnzbd emails?
If you have two-factor authentication you must create an "application-specific" password.
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Email notification on job completion

Post by sander »

In an old post, I wrote "I can just send mail via gmail-smtp-in.l.google.com (or: 74.125.133.26:25 to avoid IPv6 connections) without a user name / password filled out, as long as the From and To are my gmail address"

Does that help?

Otherwise use your ISP smart SMTP server, often "smtp.<ispdomain>.<tld>" or "mail.<ispdomain>.<tld>", so for example mail.bigpond.com
Cammo
Newbie
Newbie
Posts: 14
Joined: November 2nd, 2011, 6:15 am

Re: Email notification on job completion

Post by Cammo »

Tried a few things.
Used an alternative GMail account and made it "less secure". Still didn't work, got the test email ok but on completion of download of a file didn't get confirmation email and it shows in the log as failing to connect to server.
Tried Sander's idea of "gmail-smtp-in.l.google.com (or: 74.125.133.26:25 to avoid IPv6 connections) without a user name / password filled out" but couldn't send the test email.
Used my ISP smtp server (mail.bigpond.com) with the same result. Test email fine, no other emails and the fail to connect to server message.

Any other thoughts or tips on notification on completion of downloads?

Thanks!
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Email notification on job completion

Post by sander »

Set SABnzbd's logging to +Debug. Then run test mail and normal mail again. Then check your sabnzbd.log

Good result with testmail:

Code: Select all

2015-02-11 03:34:57,806::INFO::[api:683] Sending testmail
2015-02-11 03:34:57,808::DEBUG::[emailer:80] Connecting to server gmail-smtp-in.l.google.com:25
2015-02-11 03:34:57,889::DEBUG::[emailer:93] Non-SSL mail server detected reconnecting to server gmail-smtp-in.l.google.com:25
2015-02-11 03:34:57,928::DEBUG::[emailer:107] TLS mail server detected
2015-02-11 03:34:58,186::INFO::[emailer:150] Notification e-mail succesfully sent
No good with testmail:

Code: Select all

2015-02-11 03:34:36,424::INFO::[api:683] Sending testmail
2015-02-11 03:34:36,427::DEBUG::[emailer:80] Connecting to server gmail-smtp-in.l.google.com:25
2015-02-11 03:34:36,586::DEBUG::[emailer:93] Non-SSL mail server detected reconnecting to server gmail-smtp-in.l.google.com:25
2015-02-11 03:34:36,622::DEBUG::[emailer:107] TLS mail server detected
2015-02-11 03:34:36,666::ERROR::[emailer:37] No suitable authentication method was found
Good real mail:

Code: Select all

2015-02-11 03:44:15,757::DEBUG::[emailer:80] Connecting to server gmail-smtp-in.l.google.com:25
2015-02-11 03:44:15,873::DEBUG::[emailer:93] Non-SSL mail server detected reconnecting to server gmail-smtp-in.l.google.com:25
2015-02-11 03:44:15,917::DEBUG::[emailer:107] TLS mail server detected
2015-02-11 03:44:16,349::INFO::[emailer:150] Notification e-mail succesfully sent
Cammo
Newbie
Newbie
Posts: 14
Joined: November 2nd, 2011, 6:15 am

Re: Email notification on job completion

Post by Cammo »

Ok, I went back to my original settings that were working up until 4 Feb to see if we can get to the bottom of this.

Test email
2015-02-11 13:44:32,650::INFO::[interface:2492] Sending testmail
2015-02-11 13:44:32,722::DEBUG::[emailer:59] Connecting to server smtp.gmail.com:587
2015-02-11 13:44:34,212::DEBUG::[emailer:72] Non-SSL mail server detected reconnecting to server smtp.gmail.com:587
2015-02-11 13:44:35,326::DEBUG::[emailer:86] TLS mail server detected
2015-02-11 13:44:39,260::INFO::[emailer:123] Notification e-mail succesfully sent

Real email
2015-02-11 13:46:59,538::DEBUG::[emailer:59] Connecting to server smtp.gmail.com:587
2015-02-11 13:47:19,808::DEBUG::[emailer:72] Non-SSL mail server detected reconnecting to server smtp.gmail.com:587
2015-02-11 13:47:40,080::ERROR::[emailer:45] Failed to connect to mail server

This any help?
Cammo
Newbie
Newbie
Posts: 14
Joined: November 2nd, 2011, 6:15 am

Re: Email notification on job completion

Post by Cammo »

I should also mention, I'm using the QNAP qpkg version of Sabnzbd+ just incase that makes any difference.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Email notification on job completion

Post by shypike »

I really don't have a clue.
It works fine when I test it on Linux, Windows and OSX with the extra measures that you took.
I have no knowledge of QNAP and its SABnzbd package (created by a third party)
It is weird all the same, because the same software is used for the test message and the real thing.
The real email misses the logging line "TLS mail server detected".
Which explains why Google refuses contact: it requires some form of encryption.

BTW: what happens if you send a number of test emails within seconds?
Cammo
Newbie
Newbie
Posts: 14
Joined: November 2nd, 2011, 6:15 am

Re: Email notification on job completion

Post by Cammo »

Tests go fine when I send multiple in a few seconds.

I wonder if it could be some sort of problem with the QNAP config file, what's really weird is that the current debug logging shows references to nzb search providers that I deleted from Sickbeard months ago. "Running feedparser on" fails and "Failed to retrieve RSS from" fails everywhere referring to no longer used nzb providers....

Hmmmm, might try and fine the SABnzbd developer for QNAP. Thanks heaps for your input and help!
billdehaan
Newbie
Newbie
Posts: 1
Joined: February 14th, 2019, 8:45 am

Re: Email notification on job completion

Post by billdehaan »

Cammo wrote: February 9th, 2015, 6:36 pm I've been using email notification on job completion for a couple of years now and it has been faultless. On Feb 4th just gone it simply stopped and won't send notification emails. The test email from within Sabnzbd+ config works perfectly and it arrives in my inbox however I don't get any on completion of downloads.
I'm having a similar problem. I thought it might be because I was messing around with the firewall and VPN, but the logs don't show anything unusual.

A quick online search found this thread, and thinking back, February 4th does sound about right as to when it stopped sending emails.

However, unlike Cammo, my test emails don't go out, either. I've tried sending to different email addresses, including Gmail, Outlook, and my ISP, but all give the same
No suitable authentication method was found
error.

I was running v2.3.4 on Windows 10. I just noticed that there's a v2.3.7, and I upgraded to it, and tried again. Still no emails sent.

Any ideas?
User avatar
safihre
Administrator
Administrator
Posts: 5362
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Email notification on job completion

Post by safihre »

Are you sure you have the right port set? And that the servers allow you to send email this way?
Because especially Gmail. Is very picky about using smtp.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply