- Ambari web UI -> Alerts -> Actions -> Manage Notifications -> '+'
- Options
- Gmail
- Email To: Your@companyEmail.com
- SMTP Server: smtp.gmail.com
- SMTP Port: 587
- Email From : yourGmailId@gmail.com
- Use authentication: YES (checkbox)
- Username: yourGmailId@gmail.com
- Password: $YOUR_GMAIL_PWD
- Start TLS: YES (checkbox) ==> MUST (when using gmail port 587)
- Option
- Turn on "Less secure apps" at google security settings
- P.S. check your gmail inbox, it will show you how to configure "Less secure apps"
- Postfix (ubuntu)
- Prerequists
- sudo apt-get install mailutils
- Choose default settings
- Test
- echo "This is the body of the email" | mail -a "From: noreply@example.com" -s "This is the subject line" yourEmail@example.com
- Email To: Your@companyEmail.com
- SMTP Server: postfix.hostname.com
- SMTP Port: 25
- Email From : noreply@example.com
- Prerequists
- Gmail
- NOTE
- Make sure the value of "From" is an allowed email address to be received
- Check firewall configuration
Thursday, June 15, 2017
Ambari Email Notification
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.