How to check, on a Dahua camera or recorder, that it sends its alarms to GC Surge by e-mail (SMTP): where the settings are, what must be switched on, how to test, and what to do when it fails. Use it together with Not Receiving Alarms.
Dahua devices have an older web interface (menu Setting at the top) and a newer one (tiles on a start page). Both are named below. Names differ a little between firmware versions.
Who it is for: Technicians and admins who can sign in to the device with an administrator account.
GC Surge does this for you | You must make sure of this |
|---|---|
Writes the e-mail (SMTP) settings onto the device. | The device user you entered in GC Surge is an administrator. |
Adds the e-mail action to the detection of the device. | The detection is switched on, has an area and a period (schedule). |
The device can send to the internet: gateway, DNS server, outbound port. |
You need | Notes |
|---|---|
The address of the device and its HTTP or HTTPS port | Factory values are 80 (HTTP) and 443 (HTTPS). |
An administrator account of the device | Usually "admin". |
The values from GC Surge | In GC Surge: Sites & Cameras, expand the site, then the device Actions > Set up with Genie > Setup details. |
Watch:
Before you can use the checks on this page, the device must be added to GC Surge. If it is already listed under Sites & Cameras, you can skip this section.
Step 1: Open Sites & Cameras.
Step 2: To add a device to a site you already have, open Actions > Add device in the site row. To start from the top of the page, click Add sites & cameras, then choose Add a site and camera or Add a camera to an existing site.
Step 3: Fill in the form (step 2 of 2): Device name, Device brand (Dahua), Device IP or hostname, HTTP/S port, RTSP port, and Username and Password (or the RTSP URL). Use the administrator account of the device. Click Run device check.

Step 4: Read the result of the check. If it shows Not reachable from the internet, the device is on a private network. Click Continue with local agent and go on with Finish Setup for a Private Device below.
When the device is added, its Status tab shows how far the setup is. To follow the progress, use Check the Status of a Device below.
A device in a LAN or behind a VPN cannot be reached by GC Surge from the internet. In the device table of Sites & Cameras its Connection type is private. For such a device the setup is finished by the local agent, a small program on a Windows or macOS computer in the same network as the device. After setup the device sends its alarms to GC Surge itself. The agent is needed for setup, Retry and Edit, not for the alarms.
Step 1: Open Sites & Cameras, expand the site, then open the device Actions > Set up with Genie.
Step 2: On the Status tab, GC Surge shows This device is on a private network with the note that the Local Agent at the site finishes the setup.
Step 3: Click Open setup instructions. The window Complete device setup opens.
Step 4: Install and start the local agent on a computer in the same network as the device. All steps are in Private Camera Setup (Local Agent).
Step 5: If you prefer to enter the settings on the device yourself, use the values shown in the window or in Setup details, then click I've entered these settings: mark as configured manually. The device steps are in Set It Up by Hand below.
Retry and Edit for a private device also need the local agent running in the site network. Start the agent before you use them.
Step 1: Sign in to the web interface of the device.
Step 2: Open the e-mail settings:
Step 3: Compare each field with Setup details in GC Surge.
Field on the device | Must be |
|---|---|
Enable | Ticked |
SMTP Server | Host from Setup details |
Port | Port |
Anonymous | Not ticked |
Username | Username |
Password | Password (use the show and copy buttons in Setup details) |
Sender | From email |
Authentication or Encryption | The value of Encryption. For "tls" with port 587 choose TLS. |
Attachment | Ticked |
Mail Receiver | To email. Type it and click + so that it is in the list. |
Interval | 0, or as short as the device allows. A long interval holds alarms back. |
Step 4: Click Test (on some devices Email Test). The device must report success.
Step 5: Click Save or Apply.
Do this for every camera that should send alarms. On a recorder, choose the Channel first.
Motion detection
Smart detection (if you use it)
The Status tab shows where the setup of a device stands and lets you run a check.
Step 1: Open Sites & Cameras, expand the site, then open the device Actions > Set up with Genie. The Status tab opens.
Step 2: At the top, five steps show how far the setup is: Reach, Sign in, Alarm mail, Detection and First alarm. A tick means the step worked. The step with an exclamation mark is where the setup stopped. While the setup is not finished, GC Surge looks again every 30 seconds, so you do not need to come back to this window.

Step 3: Under Run a check, click a check:
Reach test checks whether GC Surge can reach the device. If it can, it shows a message such as “GC Surge can reach 203.0.113.10 (port 8000 open).” It is not available for a private device whose setup is not finished.
Last alarm looks up the newest alarm from this device. If none has arrived, it shows “No alarm has arrived from this device yet.”
Alarm forwarding checks whether alarms are passed on to a receiver. If no receiver is set up, it shows “No receiver is set up. Alarms stay in GC Surge and are not passed on.”
Motion alarms is not available for every device. When it cannot run, it is greyed out with the note “Not available for this device”.
If the setup stops, the panel names the failed step and says what to do:
Reach: for a device in a private network the panel shows “This device is on a private network”. Follow Finish Setup for a Private Device above.
Sign in: the panel shows “The device did not accept the login”. Check the user name and password and try once only: a few wrong tries lock the device for about 30 minutes. Click Edit connection details to correct them.
Alarm mail: the panel shows “I could not write the alarm settings”. This is most often a wrong password, even when the login looked fine. Check the login, then click Retry setup.
Below the checks, the box Ask anything about this device takes a question about the device. AI answers can be wrong. Checks run through GC Surge, and passwords are never shared with the AI. For the causes of other failures, see Troubleshooting.
Symptom | Cause | What to do |
|---|---|---|
The add screen shows Setup failed at: Device credentials, or the Status tab shows Sign in with an exclamation mark: “The device did not accept the login” | Wrong password, or the account is locked after wrong attempts. | Try once only: a few wrong tries lock the device for about 30 minutes. Wait for the lock to end or restart the device. In GC Surge, click Edit connection details and correct the credentials. GC Surge does not retry the login by itself, so the device does not lock. On the add screen, correct the details shown and click Retry setup. |
The add screen shows Setup failed at: Camera reachable or Loading device settings, or the Status tab shows Reach with an exclamation mark | GC Surge or the local agent cannot reach the device. Wrong address or port, or HTTP and HTTPS mixed up. | Use the port of the web interface (80 or 443), not the TCP port 37777. Set HTTPS (secure) in GC Surge to match. |
The add screen shows Setup failed at: Writing alarm e-mail settings, or the Status tab shows Alarm mail with an exclamation mark: “I could not write the alarm settings” | Most often a wrong password, even when the login looked fine. Or the user has no right to change the network settings, or the firmware is very old. | Check the login, then click Retry setup. Use an administrator account. Update the firmware. Or enter the settings by hand (Check the E-mail Settings). |
Test fails | No DNS server or gateway, a blocked outbound port, wrong user name or password, or the wrong encryption type. | See Check That the Device Can Send Out. Allow outbound connections to the Port from Setup details. Copy user name and password again. Choose TLS for port 587. |
Test works, but no alarm arrives | The detection does not send, or the receiver is not in the list. | In Check the Detection and Its E-mail Action, check: Enable, Period, Area, Send Email. In the e-mail settings, check that To email is in the Mail Receiver list. |
Alarms arrive late or in groups | Interval in the e-mail settings is high. | Set it to 0 or to the lowest value. |
Alarms arrive without pictures | Attachment or Snapshot is not ticked. | Tick Attachment in the e-mail settings and Snapshot in the detection. |
Smart rules do not trigger | The Smart Plan is not switched on for this camera. | Switch on the plan, then check the rule. |
Only some cameras of a recorder send alarms | The detection or Send Email is missing on the other channels. | Repeat Check the Detection and Its E-mail Action for each channel. Then use Retry in GC Surge. |
Alarms stopped after a firmware update or a reset | The settings were removed. | Retry in GC Surge writes them again. Then check Check the Detection and Its E-mail Action. |
If the automatic setup does not work on your device:
Thank you — your feedback goes to the team that owns this page.