Cannot configure email on HIKVision NVR

JulesFW

n3wb
Joined
Aug 8, 2015
Messages
8
Reaction score
1
Location
Canada
I feel confident that my basic settings are correct based on all that I have read, but when I test the email settings I get the dreaded "Failed to send test email, please check the parameter or network status." message.
These are my settings:
Enable server authentication: yes
User Name: (me)@gmail.com
Password: xxxxxxx (I have verified that my username and password are correct)
SMTP Server: smtp.gmail.com
SMTP Port: 465
Enable SSL: Yes
Sender: (me)@gmail.com (I seem to recall reading somewhere that I need the "@gmail.com" somewhere, and I know my Outlook requires this for my (me)@(business account).com
Sender's address: (me)@gmail.com
Receiver: my name. I understand this can have any text in it.
Receiver's address: (me)@gmail.com
Enable attached Picture: yes
Interval: 5s

Before listing other settings, I sent this information to the vendor from Aliexpress and she suggested that the receiver and the sender should not be the same. I send emails to myself often and have read posts where others have done this successfully, but I tried other email accounts anyways and that fixed nothing, so I cannot see this as being problematic. I also read somewhere in an old post that HIKVision only works with gmail accounts which is why I am using my gmail account, but am not sure if that is still the case. My supplier's other advice is to enable DHCP. I tried that to no avail and disabled it again because the instructions to access the NVR remotely through HIKVision's DDNS server (which I got working on a remote computer but not yet on my android smart phone...more research to do there too) clearly instruct the user to disable DHCP.

Some other settings I believe may be relevant follow:
NIC Type: 10M/100M/1000M Self-adaptive
Enable DHCP: no
Preferred DNS Server: 8.8.8.8
Alternate DNS Server: 8.8.4.4
Platform Access is not enabled. I haven't really researched how or what to put o the EZVIZ cloud
Enable PPPOP: no.
Enable DDNS: Yes, type HiDDNS, Canada...DDNS status is normal
Enable NTP: Yes, server 2.north-america.pool.ntp.org, Port 123
Enable UPnP: no
HTTP Port: 80
RTSP Port: 554
Server Port: 8000
HTTPS Port: 443
EZVIZ Access 9010 and 9020 (all ports show external IP Address of 0.0.0.0 and UPnP Status is "Inactive"
Alarm Host IP: blank
Alarm Host Port: 0
Server Port: 8000
HTTP Port: 80
Multicast IP: blank
RTSP Port: 554

I read in another advice that I should try to ping the SMTP server from the NVR but I have no idea how to do that. I can ping it from a computer on the same network that the NVR is on.

Model of the NVR is DS-7808N-E2/8P, which I believe is a PRC version of the 7608. It connects 5 stationary cameras and a PTZ camera. The PTZ camera I configured through the computer before connecting to the NVR in order to maintain certain functions such as its ability to track.

So there it is. Can anyone see anything wrong with these settings or tell me what else I should be checking?

Thanks in advance to anyone with suggestions.

Jules
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,908
Reaction score
21,297
Make sure your ipv4 gateway is set to your routers ip address in the network settings of the camera.
 

JulesFW

n3wb
Joined
Aug 8, 2015
Messages
8
Reaction score
1
Location
Canada
Wow, kudo's on the prompt reply! Guys like you are real lifesavers!
Both the IP4 address and the IPv4 Default gateway is 192.168.0.100 which is the correct address of the NVR on the router (as per SADP). I can log into the NVR from my computer both locally and remotely as well as (update) from my android smart phone, suggesting to me that my addressing is correct. The internal NVR IPv4 is 192.168.254.1 and all the cameras hooked up via plug and play as 192.168.254.xxx. I didn't understand much about IP addressing two weeks ago, but I think I've got this right. All that said, I must be doing something wrong.
 

rommycam

Young grasshopper
Joined
Jul 27, 2015
Messages
36
Reaction score
20
Wow, kudo's on the prompt reply! Guys like you are real lifesavers!
Both the IP4 address and the IPv4 Default gateway is 192.168.0.100 which is the correct address of the NVR on the router (as per SADP). I can log into the NVR from my computer both locally and remotely as well as (update) from my android smart phone, suggesting to me that my addressing is correct. The internal NVR IPv4 is 192.168.254.1 and all the cameras hooked up via plug and play as 192.168.254.xxx. I didn't understand much about IP addressing two weeks ago, but I think I've got this right. All that said, I must be doing something wrong.
You mean that your home router default gateway is 192.168.0.100 ?
If you didn't have intentionally set it up, it come by default 192.168.0.1.

You can check it on your own computer:
Run this command : ipconfig /all

PC_A_config_noDHCP.gif


Just enter the right default getaway in the NVR network TCP/IP menu.

1439714319642.jpg
 

JulesFW

n3wb
Joined
Aug 8, 2015
Messages
8
Reaction score
1
Location
Canada
My humble apologies for my previous answer. The IP4V default gateway is 192.168.0.1 which is what I had set up (I knew that:redface-new:). I have attached screen shots of the General Network configuration and SADP. I am pretty sure I have those setting correct.
However, when I run "IPconfig /all" I get an entry for "Windows IP Configuration" (attached) which I think looks correct, but I do not get an entry for "Ethernet adapter LAN". I do get entries for "Wireless LAN adapter Local Area Connection* 2", "Wireless LAN adapter Local Area Connection* 13", "Ethernet adapter Bluetooth Network Connection", "Wireless LAN adapter Wi-Fi" and "Ethernet adapter Ethernet". Under "Wireless LAN adapter Wi-Fi" DHCP is enabled. Could that be my problem?
Not sure if this helps, but under "Setup", "Basic Setup" of my Lynksys router I chose "Automatic Configuration - DHCP" from a drop-down menu offering additional choices of "Static IP", "PPPoE", "PPTP", "L2TP" and "Telstra Cable". I have a sneaky suspicion my problem lies somewhere in my router settings, but I don't want to start screwing with anything I don't really understand.
 

Attachments

rommycam

Young grasshopper
Joined
Jul 27, 2015
Messages
36
Reaction score
20
@JulesFW
Base on your home router subnet:
- Normally when NVR network has DHCP enable, a first preferred DNS will get a default value of 192.168.0.1. This way, it's the router itself that resolve the internet address of smpt.gmail.com.
Or you can also setup manually preferred DNS to 192.168.0.1.
- It OK to try enable DHCP then check again, normally this didn't change the NVR IP address 192.168.0.100, if it's happen check new one with SADP.
- One can uncheck afterwards DHCP to have a static IP, modifie it to desire value.
 
Last edited by a moderator:

JulesFW

n3wb
Joined
Aug 8, 2015
Messages
8
Reaction score
1
Location
Canada
A quick update to anyone following this thread. As it seems I have done everything right I decided to set up an Outlook account which if successful would prove that the problem was with the NVR. I set up Outlook accounts regularly at work so I have confidence there, but have tried to set up two email accounts (Gmail and my work account) without success. The problem therefore is clearly not with the NVR, whether hardware, software or settings. In desperation I set up an email account with my ISP provider and followed their instructions, and outlook returns a message that the email server says my user name/password combination is wrong (believe me, it isn't). It appears the problem may lie with my ISP, but I am still working on it. Incredibly frustrating. Thanks to all who have put their grey cells to work trying to help.
 

rommycam

Young grasshopper
Joined
Jul 27, 2015
Messages
36
Reaction score
20
@JulesFW

Here a ping from my android device to SMTP.gmail.com, if successful it's will show the router DNS is OK.
Screenshot_2015-08-18-03-50-58.png
I have the same NVR model and email is ok, try it with 3.3.2 firmware, it's lack telnet that allow using putty on PC to issue a ping from NVR.

If you have Hikvision IP camera, why don't try it directly connect to your home router and setup email account on it.
Normally camera firmware still have telnet.

Trouble shooting ISP with computer: read last topic Can you connect to the SMTP server?
https://support.google.com/mail/answer/78775?hl=en
 
Last edited by a moderator:

badmop

Getting the hang of it
Joined
Jul 21, 2015
Messages
475
Reaction score
28
I noticed recently with GMAIL, if you are using an "unsupported" client or app, it will fail to send emails. You need to login to GMAIL and disable the extra account security. I had that problem with my DVR, before it was sending emails just fine, all of a sudden they stopped. I discovered this and changed the setting on GMAIL and now my emails are working just fine. That may be some of you all's problem, I will see if I can find the exact link. (I think it is something like allowing access to legacy clients/apps)

-edit:
Here is a page with the exact description and has a link to change it through GMAIL
http://windowsitpro.com/security/googles-increased-security-causes-email-clients-stop-synching-gmail

Thanks, I accept payment by 4mp dahua camera. ;)
 

JulesFW

n3wb
Joined
Aug 8, 2015
Messages
8
Reaction score
1
Location
Canada
I noticed recently with GMAIL, if you are using an "unsupported" client or app, it will fail to send emails. You need to login to GMAIL and disable the extra account security. I had that problem with my DVR, before it was sending emails just fine, all of a sudden they stopped. I discovered this and changed the setting on GMAIL and now my emails are working just fine. That may be some of you all's problem, I will see if I can find the exact link. (I think it is something like allowing access to legacy clients/apps)
Ha, wish I had known that much earlier...I just figured that out the day before your post lol. I have been trying to configure Outlook to isolate the problem. After disabling extra security the "receive" test finally passed, but still not the "send" test. I therefore brought my computer to work and managed to get things working. Problem appears to be with my ISP. Still struggling...

Update. Tried again and working now. It must have taken time for Gmail to do whatever on their end. I used smtp.gmail.com as the smtp server.
 
Last edited by a moderator:

Ridema

n3wb
Joined
Aug 11, 2015
Messages
1
Reaction score
0
Hello,

I've got the same problem, but maybe even weirder:

Trough IVMS everything works fine (I did disable the extra security in Gmail), it sends and receives the test e-mail. But if i logon to the webportal an try to configure and test the e-mail function there, it keeps failing.

I'm receiving three error messages, depending on the port I choose.
Port 25 (SSL): cannot connect to testserver
Port 465 (SSL): username or password incorrect
Port 587 (no SSL): test failed

*BTW I'm using DS-2CD2132F-IWS
Clearly the setting are correct as I can send e-mails through IVMS, but the webportal isn't working. Any clue how I can fix this?
 

HiKlip

n3wb
Joined
Jan 3, 2016
Messages
14
Reaction score
1
Ha, wish I had known that much earlier...I just figured that out the day before your post lol. I have been trying to configure Outlook to isolate the problem. After disabling extra security the "receive" test finally passed, but still not the "send" test. I therefore brought my computer to work and managed to get things working. Problem appears to be with my ISP. Still struggling...

Update. Tried again and working now. It must have taken time for Gmail to do whatever on their end. I used smtp.gmail.com as the smtp server.
Hello all, I'm new here. Thanks for letting me be part of this forum. I have to admit, frustration has taken me here and I have spent so much time searching on the web for a solution and trying different options that I thought it best to try an revive this thread to see if there might be anyone out there with a new solution.
Obviously I selected this thread because it is exactly the same as the problem I am experiencing. I have tried everything mentioned here and much more.
I can even access my Hikvision DVR from my computer web browser. So my general IP settings must be correct. I've done the DNS IP trick, gmail account security trick, taking the dot out of my gmail account name (yes, can login w/without the dot), change smpt port to 25 for ssl (as recommended by google), and anything else I could find on the internet. Alas, to no avail, my problem continues.
I have a model DS7608NI-E2/8P NVR. Any help would be much appreciated.
 

Arry

n3wb
Joined
Mar 31, 2015
Messages
12
Reaction score
1
I think it is an issue with v3.4 firmware. My sending of emails with picture attachments has always worked, now that I upgraded the firmware, it no longer works.

I already had that access allowed in my gmail settings.

My NVR is similar to the above, I have the DS-7608N-E2/8P
 

HiKlip

n3wb
Joined
Jan 3, 2016
Messages
14
Reaction score
1
This issue is caused by increased security at Google. I've confirmed this works for my NVR when I've configured Google to allow access for less secure apps. More here: http://windowsitpro.com/security/googles-increased-security-causes-email-clients-stop-synching-gmail
Yes, thanks for sharing that. This is an issue but I don't think its the cause of my problem. I've tried this to no avail and have even assigned my NVR one of the special access codes they give you for each device you want to connect. It would be helpful if you would provide information on your NVR model and firmware. I'm beginning to think the cause is in what "Arry" mentioned just after your post.
 
Last edited by a moderator:

HiKlip

n3wb
Joined
Jan 3, 2016
Messages
14
Reaction score
1
I think it is an issue with v3.4 firmware. My sending of emails with picture attachments has always worked, now that I upgraded the firmware, it no longer works.

I already had that access allowed in my gmail settings.

My NVR is similar to the above, I have the DS-7608N-E2/8P
Thanks mate, I'm beginning to adopt this observation as the cause. Since you mentioned your NVR recorder is similar or same, (not sure if you missed the "i" in stating your model DS-7608Nx, nor the difference between one and the other) and I also am using the V3.4 firmware. To be exact, my recorder model is DS-7608NI-E2/8P/A with Firmware V3.4.0 build 150929. Maybe the best way to shed some more light is open a new thread requesting anyone with a DS-7600N(X)-E2/8P NVR to state what firmware they are using and IF their email option is working.
 
Joined
Mar 9, 2016
Messages
6
Reaction score
0

David_FL

n3wb
Joined
Jul 28, 2015
Messages
3
Reaction score
0
I had to set the SMTP server to the actual IP address to get this working finally, apparently DNS and DHCP are still buggy for some reason on the DS-7604NI-E1 with V3.3.6 Build 151229

Also the less secure apps setting is disabled in the gmail account.

smtp.gmail.com = 74.125.68.108

Thanks so much for posting this!!! My emails stopped working about 4 days and I was racking my brain trying to figure this out. It's been working fine since last summer, no changes to router or NVR so very odd it just stopped.
But once I read this and just entered the ip address for gmail smtp it started working again.

Thanks again for posting!!!!

I'm using the US generic NVR from LTS - LTN8704-P4
firmware = V3.0.7 build 141126
encoding = V5.0 build 141104

David
 

juszkin

n3wb
Joined
Jul 13, 2016
Messages
2
Reaction score
0
[FONT=&quot]
Hi,

I have IP camera DS-2CD2042WD-I with FW 5.4.0 connected to POE switch and then to QNAP. I had similar problem with getting emails to work. I run a wee test:
1) I mirrored the POE switch port to which camera is connected, connected the laptop, run a Wireshark and found that once email test is initiated, the camera sends a requests to DNS server for IP class AAAA (IPv6), gets reply and then sends a second query to DNS server for IP class A (IPv4) and gets response but with two different IP addresses associated with smtp.gmail.com and the test fails, no further queries from camera.
2) I run another test but this time I typed in Port SMTP field an IP as per one of IP from second DNS response previous test and run the send email test. This time the test was successful, with appropriate Wireshark logs present. My general conclusion is that camera FW does not cope when more than one IP address being advertised by DNS server. Hardcoded IP should work until gmail change SMTP IP address.

I sent above observation to Hikvision on 26[SUP]th[/SUP] July but have not received any reply yet, not even an acknowledgement. Has anyone else got any better experience with Hikvision customer support?

Best regards,
Michal​
[/FONT]
 
Top