fa355115 1 Posted October 6, 2016 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 .... Any idea what that could be ? A bug ? Many thanks for your support ! Share this post Link to post Share on other sites
dexterash 0 Posted October 6, 2016 Why does your "date" column in Thunderbird (I Suppose) show an hour?! Share this post Link to post Share on other sites
fa355115 1 Posted October 7, 2016 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
dexterash 0 Posted October 7, 2016 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
fa355115 1 Posted October 7, 2016 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
Securame 0 Posted October 7, 2016 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
fa355115 1 Posted October 7, 2016 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
Securame 0 Posted October 7, 2016 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
fa355115 1 Posted October 7, 2016 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
Securame 0 Posted October 7, 2016 So the time on live view is OK, but on the email (headers) is still wrong? Leave NTP enabled, why would you NOT want to use it? Share this post Link to post Share on other sites
fa355115 1 Posted October 7, 2016 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
fa355115 1 Posted October 7, 2016 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 : mail received with correct timestamp : SMTP proximus on the camera : ... mail received with incorrect timestamp : 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
dexterash 0 Posted October 7, 2016 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
fa355115 1 Posted October 8, 2016 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
fa355115 1 Posted November 28, 2016 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
fa355115 1 Posted March 30, 2018 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