There is a simple free test tool that you can run on your PC, to test an email SMTP server.
https://sourceforge.net/projects/send-mail/
I think it’s good to verify that the mail server works with this test tool first, I hope this helps.
When the Setup is not correct
This is what it looks like when it works.
9.2 Email This section is designed to set up detailed settings for email notifications when events occur. Make sure you have enabled email sending in each event section to activate this function.
This section is designed to set up detailed settings for email notifications when events occur. Make sure you have enabled email sending in each event section to activate this function.
Basic Setting Authentication: No_Auth/SMTP_Plain/Login/TSL-TTLS
Use motion to confirm the email is being sent.
Authentication: No_Auth/SMTP_Plain/Login/TSL-TTLS Select an authentication type; a detailed description for each follows:
What is Port 587 Used For?
Port 587 is the default port for SMTP submission on the modern web. While you can use other ports for submission (more on those next), you should always start with port 587 as the default and only use a different port if circumstances dictate (like your host blocking port 587 for some reason).
Port 587 also supports TLS, which means that you can securely submit mail.
Port 465: Message submission over TLS protocol
Tl;dr Port 465 is used for implicit TLS, however, port 587 and startTLS are preferred.
Port 465 has an interesting history. In early 1997, the proposal for a new standard to submit SMTP messages with encryption was published. To that end, port 465 was registered with the IANA with the service description of smtps. However, because this was only registered via IANA and not submitted as an RFC to the IETF, it was never fully blessed as an encrypted port for SMTP. During the same year, the IETF standardized StartTLS on port 587 as the encryption protocol for SMTP message submission.
In an effort to simplify the process of encrypting SMTP messages, port 465 and smtps, were removed from the IANA registry. This led to a reasonable amount of confusion as port 465 and implicit TLS had gained a good amount of traction. To remedy this, the IETF issued a one-time amendment to reinstate port 465 for message submission over TLS protocol.
Today, port 465 is still listed on the IANA registry as the service port for message submission and URL Rendezvous Directory for SSM, URD for short. However, both of these services listed for port 465 adds to the confusion around the port, because URD has nothing to do with SMTP.
Which should I use?
Tl;dr Use port 587 if you can, 465 if you can’t, and 25 if you must.
Port 587 is technically correct, the best kind of correct. However, many ESPs have adopted implicit TLS on port 465. While you can send an email over ports 25 and 2525, it’s much more secure to have the messages encrypted. This makes port 587 the preferred option for sending, with port 465 as a close second.
- No_Auth: No restriction.
- SMTP_Plain: PLAIN is the name of a registered SASL authentication mechanism, which serves as a parameter to the AUTH command. The PLAIN authentication mechanism is described in RFC 2595. Plain is the least secure of all the SASL authentication mechanisms since the password is sent unencrypted across the network.
- Login: The Login mechanism is supported by Microsoft's Outlook Express and by some other clients.
- TLS_TTLS: TLS is usually implemented on top of any of the Transport Layer protocols encapsulating the application-specific protocols such as HTTP, FTP, SMTP, NNTP, and XMPP. The TLS protocol allows client-server applications to communicate across a network in a way designed to prevent eavesdropping and tampering. TLS can also be used to tunnel an entire network stack to create a VPN, as is the case with OpenVPN.
Server Address Input a designated server address for email notification.
- Port Set “25” as default or change to a dedicated number. Discuss with your IT administrator for details if necessary.
- User Name Input a username with privileges to access the server. Password Input the password associated with the username.
- Sender Settings Sender Email Address Enter the sender email address into the field.
- Attach Image: On/Off Select “On” from the dropdown to enable attaching the detected image of events to the email being sent.
- E-mail Address List: This function is designed to notify multiple users via email when events occur.
- Check “Enable” to send an |mail to the selected address.
- Email Address: Input an email address to which events will be sent. A maximum of 10 email addresses can be defined.
The email setting should look like this or similar based on your setting provided by the IT Administrator.
To test email you can use motion. To set it up you can use the option below.
NOTE:
Make sure you have a DNS in your IP address scheme so you can reach an outside connection.
What is DNS?
The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources.
Each device connected to the Internet has a unique IP address that other machines use to find the device. DNS servers eliminate the need for humans to memorize IP addresses such as 192.168.1.1 (in IPv4), or more complex newer alphanumeric IP addresses such as IPV6