Jump to content
fa355115

Dahua IPC-EBW81200 SMTP mail with wrong reception hour

Recommended Posts

Hi there,

 

I have configured SMTP mail notification on my Dahua IPC-EBW81200 and the mails are sent straight after the alarm trigger (or "test mail") but mails are appearing with a reception date / hour which is 6 hours before the effective mail sending ...

 

Do you experience the same issue with your Dahua Cameras ?

 

I have changed the timezone from GMT+2 to GMT+10 (for example), but the mails are always with a 6 hours différence ....

 

293683_1.jpg

 

Any idea what that could be ?

A bug ?

 

Many thanks for your support !

Share this post


Link to post
Share on other sites

Because the mail was received today ... in case it was received as from yesterday it would show the date as well as the hour ...

Share this post


Link to post
Share on other sites

1. Maybe there is a problem with the SMTP server you are using. Tried another?

2. If you check the complete headers of your received e-mail, can you identify date/time problems?

Share this post


Link to post
Share on other sites

I do not think this is an issue with the SMTP server ... this is the national provider server and it works fine for all the other ails I receive. On top, the time displayed on the WEB MAIL of the server is correct .... only the time displayed on Thunderbird and Android mails FOR THAT CAMERA is 6 hours ahead ...

 

here is the source code of the mail ...

 

Return-Path: <xxx@xxx.be>
Received: from mailsec115.isp.xxx.be ([xxx.xxx.20.xxx])
         by mailfep013.xxx.be
         (InterMail vM.8.04.03.21.1 201-2389-100-165-100-20151028)
         with ESMTP
         id <20161007032849.YFBK7153.mailfep013.xxx.be@xxx.isp.xxx.be>
         for <xxx@xxx.be>; Fri, 7 Oct 2016 05:28:49 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=xxx.be; i=@xxx.be; q=dns/txt; s=securemail;
 t=1475810929; x=1507346929;
 h=date:from:to:subject:mime-version:message-id;
 bh=VnXZLIUdTYyYJ1+k7mPSVDMMBisb2IwyTFAgHsBiZVM=;
 b=wXNqMeMLiWgZXYS4aBLBzw0ZUJARrVJweLknZxYDSRAbk1gZldnfLLbx
  ct7zYAz8t47linLAEgj9Qp54moU+fg=
Message-Id: <xxx$3in5p3@xxx.xxx.be>
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CPWwClFfdX/2+Ns1tcHAEBFgEBBQEBB?=
=?us-ascii?q?jqCNR8cAQEBAQEeSXunFAGNEYRIgguGGgQCHQGBUTsSAQIBAQEBAQEBXidBDoQ?=
=?us-ascii?q?8Ghk7RQIENxMRiGWiMI9shReXfjWCOA+CTAWOOneKTpFTAY4bSYwug38lAS6FM?=
=?us-ascii?q?jGBaoYsAQID?=
Received: from xxx.141-xxx-91.adsl-dyn.isp.xxx.be (HELO localhost_GNT) ([91.xxx.141.xxx])
 by relay.xxx.xxxwith ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2016 05:28:49 +0200
Date: Fri, 07 Oct 16 05:28:54 +0800
From: <xxx@xxx.be>
To: <xxx@xxx.be>
Subject: =?UTF-8?B?SGVhbHRoX1Rlc3Q=?=
MIME-Version: 1.0
Content-type: multipart/mixed;boundary="======DAHUA_TECH======"

This is a multi-part message in MIME format.

--======DAHUA_TECH======
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: base64

QWxhcm0gRXZlbnQ6IEhlYWx0aF9UZXN0DQpBbGFybSBJbnB1dCBDaGFubmVsOiAxDQpBbGFybSBT
dGFydCBUaW1lKEQvTS9ZIEg6TTpTKTogMDcvMTAvMjAxNiAwNToyODo1NA0KQWxhcm0gRGV2aWNl
IE5hbWU6IDJHMDU3MjhQQVcwMDA5NQ0KQWxhcm0gTmFtZTogDQpJUCBBZGRyZXNzOiAxOTIuMTY4
LjEuNQ0K



--======DAHUA_TECH======--

Share this post


Link to post
Share on other sites

This is the timestamp from the server:

Received: from xxx.141-xxx-91.adsl-dyn.isp.xxx.be (HELO localhost_GNT) ([91.xxx.141.xxx])

by relay.xxx.xxxwith ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2016 05:28:49 +0200

 

This is the timestamp on the email:

Date: Fri, 07 Oct 16 05:28:54 +0800

 

And this is on the body message:

Alarm Start Time(D/M/Y H:M:S): 07/10/2016 05:28:54

 

I think +0800 is China? Are you sure you have changed the timezone on the camera?

I would send a message to myself using my email client and compare.

Share this post


Link to post
Share on other sites

The camera has been bought in China ... and I am in Belgium (GMT +2:00), I agree with you, but looks like the timezone although you can "change" it in the interface and "save", sticks to GMT +8:00 ....

I am sure I have changed and saved (By the way, if you change the timezone, the clock is not changing right .... just the "GMT" value ? (On y camera whatever timezone I set, the clock remains the same)

 

What do you mean by "send a message to myself using my email client and compare."

 

If I send a mail to myself using Thunderbird I see this :

 

Return-Path: <fa355115@skynet.be>
Received: from mailrelay106.isp.xx.be ([xx.238xx20.xx])
         by mailfep006.skynet.be
         (InterMail vM.8.04.03.21.1 201-2389-100-xx-100-20151028)
         with ESMTP
         id <20161007082037.OAOT6748.mailfep006.xx.be@mailrelay106.isp.xx.be>
         for <xx@xx.be>; Fri, 7 Oct 2016 10:20:37 +0200
X-xx-Dynamic: yes
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2B5AwDTWfdX/2+Ns1sNTx4GDIM9AQEBA?=
=?us-ascii?q?QGBH0OHLqVog2QMgn6EaoILhhcBgjYUAQIBAQEBAQEBhhAVagwCJgJTBAgNCAE?=
=?us-ascii?q?Buh1nhgqHGYEHhmhKiiOCWwWBIQGYUwgBAY97gVgBjhsfgzeFUYdPHoMagkOIU?=
=?us-ascii?q?gEBAQ?=
Received: from xx.141-179-91.adsl-dyn.isp.xx.be (HELO [xx.168.1.xx]) ([xx.179.xx.xx])
 by relay.xx.be with ESMTP; 07 Oct 2016 10:20:37 +0200
To: xx <xx@xx.be>
From: xx <xx@xx.be>
Subject: test
Message-ID: <ba25405c-8ffe-78e4-da04-b010c5b35bff@skynet.be>
Date: Fri, 7 Oct 2016 10:20:41 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
Thunderbird/45.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Share this post


Link to post
Share on other sites
The camera has been bought in China ... and I am in Belgium (GMT +2:00), I agree with you, but looks like the timezone although you can "change" it in the interface and "save", sticks to GMT +8:00 ....

I am sure I have changed and saved (By the way, if you change the timezone, the clock is not changing right .... just the "GMT" value ? (On y camera whatever timezone I set, the clock remains the same)

 

Date/clock on the camera OSD display should change, if the camera shows a wrong time, it is not strange that the messages also have the wrong time...

 

Check if you have NTP configured on the camera, it might help.

Share this post


Link to post
Share on other sites

EDIT ...

 

If i do not check NTP, then whatever GMT change I do then Save / Refresh is NOT updating the clock following this GMT

If I check NTP, then save / refresh, then the clock adapts and syncs to the NTP. Whatever GMT change I do then is applied on the clock - BUT ONLY WHEN THE NTP is CHECKED.

 

ok .... so I am sure the GMT is taken into account when I check the NTP, as the clock changes consequently when I save / REfresh ....

Still, If I send a mail via the Camera it is received straight in my inbox but with 6 hours "delay (So mail sent at 10am will be displayed straight but showned as received at 4am ...)

 

P.S. time on the Live view is the one from my "Date and Time" tab ... so no issue.

 

Issue is like the mails are sent with wrong timestamp ...

 

pffff

Share this post


Link to post
Share on other sites

Correct ... I want to use NTP, and it is enabled now, but I just wanted to test first with the "local" clock.

Anyway issue is still there.

NTP enabled, time synced with the NTP server, GMT changing also changes the clock on the camera and live view .... still the mails are sent with an incorrect timestamp ...

Share this post


Link to post
Share on other sites

I do not understand anymore ... I just tried sending mails from the GMAIL smtp as well ...and there no issues ... reception hour is correct

Passing through proximus SMTP, reception hour is incorrect :

 

 

SMTP GMAIL on the camera :

 

293721_1.jpg

 

mail received with correct timestamp :

 

293721_2.jpg

 

 

SMTP proximus on the camera :

 

293721_3.jpg

 

... mail received with incorrect timestamp :

 

293721_4.jpg

 

I do not understand ...why passing through proximus as sender the reception hour is incorect ???

Share this post


Link to post
Share on other sites

Check the GMAIL headers too... I think they "translate" from DST to "UTC/something", meaning no more +something as in here:

relay.xx.be with ESMTP; 07 Oct 2016 10:20:37 +0200

Share this post


Link to post
Share on other sites

So that means if gmail "translates" that the dahua camera is really sending the mail with a GMT+8:00 and then proximus correctly displays minus 6 hours then ???

 

Si there is an issue on the Dahua camera because I have set the GMT on +2:00 and it continues to use the +8:00 ...

 

I will try sending mails frim my NAS setting it to +10:00 or something to see the behavior of gmail / proximus ...

Share this post


Link to post
Share on other sites

HAs been escalated to Dahua support and they were able to reproduce the issue.

Hope it will get resolved in a future firmware ...

Share this post


Link to post
Share on other sites

Was someone able to reproduce this problem ?

I just re-enabled the mail notification because I need it, and the mail comes with a 8 hours (this is the timezone difference between Belgium and China) difference, displayed in the mailbox as 8 hours ahead (Andoid mailbox, Windows Outlook, ...) ... it only shows correct timestamp in the GMAIL mailbox (the one of Google) ...

 

??

Share this post


Link to post
Share on other sites

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

×