Answer the question
In order to leave comments, you need to log in
How to configure config for gmail notifications in zabbix?
good morning!
Interested in such a question, how to configure zabbix so that alarms come straight to gmail mail. In the web interface, everything seems to be set up according to the official documentation, but there are problems with the config where the gmail server prescribes and the data for authentication.
Gives an error: send-mail: Cannot open mailhub:25 Can't send mail: sendmail process failed with error code 1
Answer the question
In order to leave comments, you need to log in
Use sendEmail
#!/bin/sh
export [email protected]
export smtpserver=yoursmtpserver.com
export smtplogin=smtp_user
export smtppass=smtp_password
$ /usr/bin/sendEmail -f $smtpemailfrom -t $1 -u $2 -m $3 -s $smtpserver:25 -xu $smtplogin -xp $smtppass
Put the postfix in "Internet site" mode.
And send mail through localhost without a password.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question