How to Use a New Gmail Account for DVR NVR Mail Alarms
In this article
You can use a new Gmail account to receive motion, alarm, or status emails from your DVR or NVR by enabling 2-Step Verification on that Gmail account, creating an App Password, and entering that App Password (not your normal Gmail password) plus the correct SMTP server settings in the recorder's email notification menu. This gives you a dedicated inbox for security alerts and keeps your main email out of the device's configuration.
What You'll Need
- A new Gmail account created specifically for the DVR/NVR (do not reuse your personal Gmail).
- Access to the recorder's local menu or web interface, plus the admin username and password.
- The recorder connected to the internet (wired Ethernet is more reliable than Wi-Fi for alarms).
- A phone number for Gmail 2-Step Verification (Google may require it to enable App Passwords).
- The exact SMTP settings: server smtp.gmail.com, port 587 with STARTTLS (or port 465 with SSL/TLS), and authentication enabled.
Step-by-Step
- Create the dedicated Gmail account. Sign up at Google's account creation page. Use a name that identifies the purpose, such as home.nvr.alerts, and store the password in a safe place. Do not enable any forwarding to your personal inbox yet.
- Enable 2-Step Verification. Sign in to the new account, open Google Account settings, go to Security, and turn on 2-Step Verification. Follow the prompts to add a phone number or authenticator. App Passwords are only available after 2-Step Verification is active.
- Generate an App Password. Still under Security, open App Passwords (it may appear under "Signing in to Google"). Choose "Other (Custom name)", type something like DVR-NVR, and click Generate. Google shows a 16-character password. Copy it exactly, including the spaces if shown, or remove the spaces when pasting into the recorder. This is the password you will use in the DVR/NVR, not your Gmail login password.
- Log in to the recorder. Use the local monitor and mouse, or open the recorder's web interface in a browser on the same network. Menu labels vary by brand and firmware version, so the exact wording may differ slightly.
- Open the email notification settings. Look for a section named Network > Email, Event > Email, or Alarm > Email. On many models it is under Configuration > Network > Advanced > Email. If you cannot find it, check the recorder's manual for "email" or "SMTP".
- Enter the SMTP details. Fill in the fields as follows:
- SMTP Server: smtp.gmail.com
- Port: 587 (STARTTLS) or 465 (SSL/TLS)
- Enable SSL/TLS: on (match the port you chose)
- SMTP Username: the full new Gmail address, e.g. home.nvr.alerts@gmail.com
- SMTP Password: the 16-character App Password from step 3
- Sender: the same Gmail address
- Receiver: the address where you want alerts delivered (can be the same Gmail inbox or another inbox you check)
- Save and send a test email. Most recorders have a Test button next to the email settings. Click it. If the recorder reports success, check the receiver inbox (and the Spam folder) for the test message. If it fails, note the error text and see Troubleshooting below.
- Turn on the alarm triggers. Go to the event or alarm section (often Event > Motion or Alarm > Motion Detection) and enable Send Email for the events you care about, such as motion detection, video loss, disk error, or external alarm input. Set the schedule so alerts only fire when you want them.
- Confirm real alerts arrive. Trigger a test event (walk in front of a camera during an armed schedule) and check that an email arrives with the expected subject and, if supported, a snapshot attachment.
- Secure the account. Keep the App Password private, do not reuse it elsewhere, and consider setting a filter in the receiving inbox to label alerts so they do not get lost.
Common Mistakes
- Using the normal Gmail password. Google blocks plain-password SMTP logins for most accounts. The recorder must use the App Password.
- Forgetting to enable 2-Step Verification first. The App Passwords option does not appear until 2-Step Verification is on.
- Wrong port and encryption pairing. Port 587 needs STARTTLS; port 465 needs SSL/TLS. Mixing them causes connection failures.
- Typing the Gmail address with a typo in the username or sender field. Copy and paste it where possible.
- Leaving the receiver blank or using an address that filters aggressively. Test with a simple inbox first, then move to your main address.
- Enabling email on every event. This floods the inbox and can hit Gmail sending limits. Enable only the events you actually need.
- Assuming the recorder has internet because the local network works. Check the recorder's network status page for a valid gateway and DNS.
Tips
- Use a wired connection for the recorder if possible; Wi-Fi dropouts cause missed alarms.
- Set the recorder's date and time correctly, ideally synced to an NTP server, so alert timestamps make sense.
- Create a filter in the receiving Gmail account that labels messages from the recorder's sender address, so alerts are easy to find.
- If the recorder supports attachments, keep snapshot size small to avoid slow sends and mailbox limits.
- Record the App Password somewhere secure; if you lose it, revoke it in Google Account settings and generate a new one.
- Do not reuse this Gmail account for personal mail or password resets for other services.
Troubleshooting
If the test email fails, work through these checks in order. First, confirm the recorder has internet access: open its network status page and verify the IP address, gateway, and DNS are filled in. If DNS is blank, set it to a public resolver such as 8.8.8.8. Second, re-enter the SMTP settings carefully, matching the port to the encryption type. Third, confirm the App Password was copied without extra spaces and that 2-Step Verification is still enabled on the Gmail account. Fourth, check the receiver's Spam or Junk folder, and add the sender address to contacts. Fifth, restart the recorder and try the test again. If the recorder shows an authentication error, revoke the old App Password and generate a new one. If it shows a connection timeout, the recorder's network or firewall may be blocking outbound SMTP; try a different port (465 with SSL/TLS) before changing anything else. If alerts arrive for some events but not others, re-check the event schedule and the per-event "send email" checkbox.
Frequently Asked Questions
Can I use my personal Gmail account instead of a new one?
It works technically, but a dedicated account keeps alarm mail separate and makes it easier to revoke access if the recorder is replaced.
Why does the recorder reject my Gmail password?
Google requires an App Password for SMTP when 2-Step Verification is on. Generate one and use it in place of your normal password.
Do I need to keep the Gmail account signed in on a device?
No. The recorder authenticates directly with Google's SMTP server using the App Password; you do not need to stay signed in anywhere.
Will this work if the recorder is on a different network?
Yes, as long as the recorder has internet access. The SMTP server is reached over the internet, not the local network.
What if I lose the App Password?
Sign in to the Gmail account, revoke the old App Password in Google Account settings, and generate a new one, then update the recorder.
Can I send alerts to more than one address?
Some recorders allow multiple receiver addresses separated by a semicolon; if yours only accepts one, set up forwarding or a filter in that inbox.