How can I send alerts to my gmail?

Tags: #<Tag:0x00007f0641995568>

I have been trying to configure librenms to receive alerts in my mail, but I have not been able to achieve it.
I tried with mail and sendmail and I had no luck, but I don’t know how to configure with smtp.

Please help.

Can you telnet to the e-mail server port 25 and send a test e-mail?

  1. Open your command prompt.
  2. Now, connect with telnet using the following command:
telnet example.com 25
  1. Type ehlo example.com. Some servers also accept helo in place of ehlo.
ehlo example.com
  1. Type mail from: [email protected]:
mail from: [email protected]
  1. Type rcpt to: [email protected], [email protected] (replace with your actual recipient name):
rcpt to: [email protected], [email protected]
  1. To write the message - type data, followed by your subject and message. To end the message, put a period on a line by itself and press enter:
data
Subject: My Telnet Test Email

Hello,

This is an email sent by using the telnet command.

Your friend,
Me

.
  1. Type quit to exit telnet.

Hi,

From what account you’ll be sending those messages to?
You can easily configure it to send it from your gmail to… your gmail :wink:

SMTP server: smtp.gmail.com
SMTP Port: 587
Encryption: TLS
SMTP Auth username: your login
SMTP Auth password: your password

Make sure that you go to http://accounts.google.com/ and under Security tab find “App passwords”. Add new one, name it “LibreNMS” and use THAT password in Libre.

You should be fine :wink: