D-Link Forums

The Graveyard - Products No Longer Supported => Routers / COVR => DIR-857 => Topic started by: hilaireg on June 04, 2012, 08:17:05 PM

Title: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: hilaireg on June 04, 2012, 08:17:05 PM
Hi Folks,

There appears to be an issue with the Email Notification feature.

Email Settings

Enable Email Notification = Checked

From Email Address = sysmail@mydomainname.com  *
To Email Address = myusername@mydomainname.com *
SMTP Server Address = smtp.myisp.com
SMTP Server Port = 25

Enable Authentication = Unchecked

On Log Full = Checked
On Schedule = Checked

Schedule = ~00:01 - ~00:59
Details = Sun Mon Tue Wed Thu Fri Sat



* actual email addresses where changed to avoid spam


The above configuration behaved as expected in the DGL-4100.


Observations



I can provide the full router logs as proof if desired; I won't paste them here as they contain IP/Email information that would likely end up in enemy spambot hands.  :)

Cheers,
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: FurryNutz on June 05, 2012, 07:41:07 AM
I've set up my email notifications just now. My ISP uses Google as a 3rd party email server so our settings use google settings. After setting up the 857 I looked at the logs:
Jun 5 10:36:43  SMTP (Email) server pop.gmail.com is at IP address ##.##.###.###:465 
Jun 5 10:35:43  SMTP (Email) server pop.gmail.com is at IP address ##.##.###.###:465 
Jun 5 10:34:43  SMTP (Email) server pop.gmail.com is at IP address ##.##.###.###:465 
Jun 5 10:33:43  SMTP (Email) server pop.gmail.com is at IP address ##.##.###.###:465 

Well see if I get any logs sent to my netscape web email acct as i did with my other routers.  :-\
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: hilaireg on June 05, 2012, 08:28:57 AM
Thanks,

I see the same entry in the log as well:

SMTP (Email) server smtp.[myisp].com is at IP address ##.##.###.###:25


Quick tests:

- Reboot router, should send an email with Sender, Subject, Body, no Recipient
- Trigger Email Now, should receive an email - log will indicate whom it was sent to
- Wait for schedule to occur, should receive an email - log will indicate whom it was sent to


The recipient specified never receives the email in the case of the last two points.


Cheers,
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: FurryNutz on June 05, 2012, 01:08:05 PM
I can't seem to get my ISP or a web based SMTP to work with this router. Not sure if my format entries are correct or what. I presume they are has I'm using the same information I see on my phone and I know my phone works. I wish my ISP hadn't switched to google.  >:( I hope to have a couple other people check this out. One has said he got his to work using AOL acct information. I tried and could not.  :-\
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: hilaireg on June 05, 2012, 04:29:42 PM
You've likely configured the device correctly.

Since the Email Notification is outbound, the SMTP server of the ISP you're with typically needs to be configured as the outbound SMTP server as most ISP block open relay.  My ISP doesn't require authentication to their SMTP server when I'm on their network - i.e. using an IP Address from their network.  When I'm outside their network, I require authentication.

In short, if you can send email from one of your internal mail clients (Outlook, Eudora, etc.), configuring your router with the same settings should yield the same results.  In short, possible scenarios:

Scenario 1:
FROM: DIR857@myisp.com
TO: myemailaddy@myisp.com
SMTP: smtp.myisp.com
PORT: 25
Authentication: Unchecked

Scenario 2:
FROM: DIR857@myisp.com
TO: myemailaddy@myisp.com
SMTP: smtp.myisp.com
PORT: 25
Authentication: Checked

SMTP Authentication: username
SMTP Password: usernamepassword


Reboot the router, you should receive an email from the DIR-857.  Scheduled email or email now will produce no result as it is being sent to the FROM email address as indicated in the log.

Note that the FROM address doesn't actually have to be a "real" email address but you can configure it with a different "real" address (ex: hotmail) to confirm the behaviour.

Cheers,
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: FurryNutz on June 06, 2012, 09:14:46 AM
Seems like this is happening on my 657 as well. I'll need to check my 645 too.  :'(
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: FurryNutz on June 06, 2012, 09:37:31 AM
Been wondering if these routers are handling ISP email SSL/TLS authentication protocols correctly.  ???

I remember before my ISP changed to google, they didn't use SSL/TLS, google does with our ISP now. I had a working router last year with my ISP before they changed. Possible there is a SSL/TLS issue here?  ???

I'll try my 4500 or 825 soon and see if they exhibit the same thing.
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: JavaLawyer on June 07, 2012, 05:18:23 AM
I'm also inclined to think that this issue is related to SSL/TLS handling. Email notifications work as expected on my D-Link DCS-932L network camera (using AOL SMTP), while the same email settings fail on my DIR-857. The primary difference between the and DCS-932L and DIR-857 web interface email notification setup page is that the DCS-932L includes settings for SSL/TLS, while the DIR-857 does not.

D-Link DCS-932L Network Camera - FW web interface Email Settings Page
(http://i1207.photobucket.com/albums/bb478/javalawyer/dcs-932l_email1.jpg)

D-Link DIR-857 - FW web interface Email Settings Page
(http://i1207.photobucket.com/albums/bb478/javalawyer/dir-857_email.jpg)
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: hilaireg on June 08, 2012, 05:15:40 AM
Agree that there should be addtional options to handle SSL/TLS.  At the moment however, I'd simply be happy with having:



Ideally, it would be nice to be able to customize the subject line as well ... for example:

"Logs from DIR-857" %DATE% - %TIME%"

etc.
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: Burgos on June 10, 2012, 11:37:16 AM
I have a cablevision email account that uses no security other than password and its seems to work fine. I'm able send emails from the Dlink-857 to the cablevision email without any problems. I had the same issue with my DIR-655. The is due to the lack of a option in the DIR Series email section to add SSL/TLS option like the previous poster listed DCS932L.  Whenever I try to setup any of my other 3 email accounts which use SSL/TLS I never receive the email.
Title: Re: [BUG] Email Notifications are sent to the Sender instead of Recipient
Post by: FurryNutz on June 10, 2012, 04:48:59 PM
Thanks for the feedback on this. Seems that ISP email with ssl/tls protocols are hosing up some router emails. Dlink has been notified of this. This info will help. Thank you.