April 21, 201610 yr Good day all, I have spent last night and this morning scouring through the forms but nobody seems to have matched my particular problem. I am trying to get email notifications working but having little success. I believe I have all the settings correct, but when I press the test button all i get is: Test Running: obtaining (20 sec) ... (19 sec) ... then nothing, no pass, no fail, nothing. All the log shows is this: (this is me pressing the test button 3 times, with 3 different passwords) Apr 21 12:02:54 Bronx php: /usr/local/emhttp/plugins/dynamix/scripts/notify 'smtp-init' Apr 21 12:03:05 Bronx php: /usr/local/emhttp/plugins/dynamix/scripts/notify 'smtp-init' Apr 21 12:03:18 Bronx php: /usr/local/emhttp/plugins/dynamix/scripts/notify 'smtp-init' I have tried this with both yahoo and gmail emails with no success, I have also tried wrong passwords and settings, but nothing shows up in the log. Here are my current gmail settings: Preset: Gmail with TLS Sending : [email protected] Recipients: [email protected] Priority: Yup Mail server: smtp.gmail.com port: 587 SSL/TLS: yup STARTTLS: yup certificate: nope auth: login user: me pass: pass Any help would be appreciated.
April 22, 201610 yr There's a setting in the gmail webui somewhere, and I forget what it's called, but it allows you to send emails via "non-secure" methods. Found it: It's the step 6 in this guide I did here. https://www.linuxserver.io/index.php/2015/12/04/e-book-library-using-linuxserver-io-apache-container/ Might be what's causing the issue.... Sent from my LG-H815 using Tapatalk
April 22, 201610 yr Author Sorry, I forgot that i have already tried that. I created a brand new GMAIL account with none of the 2 step verification turned on, and i had enabled that option. As of now I have tried using a newly created email account from my ISP and still the issue is present. I believe the problem to be something with the notifier itself as it still does not give a pass/fail indication when running the test. I have read other post's on similar smtp issues and everybody seems to have more info in their log. All i get everytime i press the test button is: Apr 22 11:33:36 Bronx php: /usr/local/emhttp/plugins/dynamix/scripts/notify 'smtp-init' nothing else. Thanks for your effort.
April 22, 201610 yr Community Expert First thing to do is to attempt to sent a test e-mail and then get a Diagnostic log and attach it to your next post. ('Tools' >> 'Diagnostics') The Diagnostics file will allow the Gurus to see if the source of the problem is already identified in the log files. Second thing to consider is the possible problem of not having your server being able to reach a DNS server. Can you download anything from the Internet to your server (Plugins, updates)? On the 'Setup' tab >> 'Network Settings' page, you can specify the DNS servers to be used by unRAID. The Google DNS servers are at 8.8.8.8 and 8.8.4.4 and are good choices about anywhere on this planet. You will have to turn off the "Obtain DNS server address automatically:" option to use this feature. (It won't hurt anything to try this...)
April 22, 201610 yr Author Thanks Frank1940 for the good tips, i never noticed the diagnostics in there. I have attached that info for anybody who is willing to check it out. As for the second part, i have no problem downloading anything using the server. All dockers are working fine. Just to cover all bases I changed the dns to google's and still no luck. Thanks for the advice though. bronx-diagnostics-20160422-1654.zip
April 23, 201610 yr Community Expert Thanks Frank1940 for the good tips, i never noticed the diagnostics in there. I have attached that info for anybody who is willing to check it out. As for the second part, i have no problem downloading anything using the server. All dockers are working fine. Just to cover all bases I changed the dns to google's and still no luck. Thanks for the advice though. Well, I am certainly no Guru when it comes to Linux. I looked over your diagnostics file and did not see anything amiss in the log. I send a test message from my system and got the following single line in the syslog: Apr 23 08:42:50 Rose sSMTP[18557]: Sent mail for [email protected] (221 2.3.0 cdptpa-oedge02 closing connection) uid=0 username=root outbytes=646 (It seems to me that sending a test message use to generate a lot more lines in the syslog... It may be that a decision was made to suppress a lot of stuff to 'unclutter' the log files.) What you got was this (if you generated the diagnostics file immediately after sending the test message): Apr 22 16:53:07 Bronx php: /usr/local/emhttp/plugins/dynamix/scripts/notify 'smtp-init' You also have a a lot of activity in your syslog in last last few minutes (less than five) before the end of the log. What were you doing? Or what was going on? It would have been better if the system had been in a quiet state so that your 'send test message' was the only thing causing any log entries. However, I did notice that you did not turn off the "Obtain DNS server address automatically:" setting. You may have to reboot to have this take effect also. But if you say that you are able to access other websites without a problem, specifying DNS servers may not be of any benefit.
April 23, 201610 yr Author You also have a a lot of activity in your syslog in last last few minutes (less than five) before the end of the log. What were you doing? Or what was going on? It would have been better if the system had been in a quiet state so that your 'send test message' was the only thing causing any log entries. However, I did notice that you did not turn off the "Obtain DNS server address automatically:" setting. You may have to reboot to have this take effect also. But if you say that you are able to access other websites without a problem, specifying DNS servers may not be of any benefit. All the activity was from me taking the array down to change the DNS settings, then bringing the array back up. As of this morning, i did a complete reboot and have attached those log files. Going through them I notice nothing strange. So i continued my testing and noticed something. This was from this morning as you can see in the log: Apr 23 12:09:47 Bronx php: /usr/local/emhttp/plugins/dynamix/scripts/notify 'smtp-init' But this did not come from pressing the test button. Rather this came from me making a change to one of my smtp options and hitting apply. My methodology was this: I changed one setting, clicked apply then viewed the log. That code popped up only when hitting apply. When i hit TEST, nothing at all shows up in the log. All of those previous log entries had to be from me making a change to the settings and hitting apply as this was the only way to bring up the test button. I have now been trying different ways to get the test button to appear, and so far it is either change a smtp setting or click on settings and re-enter the notification options. Either or, pressing the test button yields no results in the log what so ever, only when i make changes to the smtp settings does it affect the log. I have been looking through everything i can think of in relation to the Dynamix stuff on the console to try to find a log but have had no luck. bronx-diagnostics-20160423-1210.zip
April 23, 201610 yr Community Expert I didn't see anything that looked like a problem... Let's try one more thing. Click on the 'Plugins' tab and then click on the 'Check for updates' button. You should get a pop-up window that checks for all of your plugins. When it finishes, you should get a 'Done' button. Is that happening? Does your ISP have e-mail accounts that you can use? If they do, you could try using that account (or setup another account just for your server(s) to use). Many times they are a bit more relaxed on their security settings and it is easier to get them working without having to jump through hoops by having to dig through pages of settings on their website to find some obscure setting that has to be changed.
April 23, 201610 yr Author Plugin update complete. That is working with no issues. Everything is updated to the latest versions. As for ISP email, that is what i have it currently setup as. I started with google, after my first post i tried using a brand new ISP email. Still no luck. I feel the issue is with the smtp client itself, as it is not giving me any errors or verification that my settings are correct or incorrect. As i mentioned earlier, even when I enter inproper settings ie: wrong user name, wrong password, wrong server name..... and hit the test button I get no feed back other than: Test running: Obtaining (20 sec.. 19 sec) then nothing. I have tried using Chrome, Firefox, and IE, all with their caches cleared.
April 23, 201610 yr Community Expert I am stumped. (As apparently everyone else who hass looked at your diagnostics file.) I would suggest at this point, you fire off a Personal Message to user bonienl as I believe he was the one who developed this feature. Pointed him to this thread and ask himi if he has any thoughts or suggestions.
April 23, 201610 yr Author Well Frank, I sure do appreciate you taking the time to try and help me figure this out. I will message boinel and if anything comes of it I will update this thread. Thanks again.
April 26, 201610 yr Haven't had the time yet, but I need to look into your issue and come back to you.
April 28, 201610 yr Can you try a manual invocation. Do the following from CLI: /usr/local/emhttp/webGui/scripts/notify -s 'unRAID SMTP Test' -d 'Test message received!' -i 'alert' -t And let me know the result (any error messages).
April 29, 201610 yr Author Here is the result: root@Bronx:/usr/sbin# /usr/local/emhttp/webGui/scripts/notify -s 'unRAID SMTP Test' -d 'Test message received!' -i 'alert' -t sh: /usr/sbin/ssmtp: cannot execute binary file i also tried: root@Bronx:/usr/sbin# sudo ssmtp /usr/sbin/ssmtp: /usr/sbin/ssmtp: cannot execute binary file and to check to see if the file is there: root@Bronx:/usr/sbin# ls -al ssmtp* -rwxr-xr-x 3 root root 78047 Apr 23 12:07 ssmtp* No errors reported in the Unraid log file, just: Apr 29 13:08:52 Bronx sudo: root : TTY=pts/0 ; PWD=/usr/sbin ; USER=root ; COMMAND=/usr/sbin/ssmtp
April 29, 201610 yr Community Expert Here is the result: and to check to see if the file is there: root@Bronx:/usr/sbin# ls -al ssmtp* -rwxr-xr-x 3 root root 78047 Apr 23 12:07 ssmtp* Something is wrong as this is what I get on my Test Bed running v6.2b21: root@Rose:/usr/sbin# ls -al ssmt* -rwxr-xr-x 1 root root 31808 Nov 13 19:19 ssmtp* And on My Media server running v6.1.9: root@Elsie1:/usr/sbin# ls -al ssmt* -rwxr-xr-x 1 root root 31808 Nov 13 23:04 ssmtp* What version of unRAID are you running?
April 30, 201610 yr As the size of the /usr/sbin/ssmtp is significantly different in size and the date of it is Apr 23 rather than a date last Nov I would suggest that you have some plugin installed which is overwriting it with a version that doesn't work.
April 30, 201610 yr Author Okay, so the only plugins I have installed are: Community Applications Powerdown Package 2.20 Dynamix webGui Enhanced Log Viewer Nerd Tools All my other applications live in the Dockers.
April 30, 201610 yr Community Expert Goto 'Tools' >>> "Diagnostics' and get the file and attach it to your next post. EDIT!!!! Found that you had attached it earlier. Go to your Flash Drive, then to the folder config and remove these two lines: cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c /boot/unmenu/uu from the go file. Edit #2: Reboot and test again. UnMenu is really not needed and may be incompatible with ver 6.
April 30, 201610 yr Author Solved! Thank you so much Frank and bonienl. I never even used unmenu, but must have installed it by accident or something. Regardless, all is working perfect now. I appreciate the effort by all in helping me out. Thanks again.
Archived
This topic is now archived and is closed to further replies.