Hi
Im trying to use a external SMTP server with Zabbix as first option, so I have followed the howto on Cookbook to use a script to log on external SMTP
http://www.zabbix.com/forum/showthread.php?t=1323
Good: the mail is properly sended and I have no problems with logon on external SMTP.
Bad: Mail is only fill with "From", there aren't Subject, body of mail, etc. No info.
Do I miss something?
Thanks!
PD: is more easy to use a local MTA?
Im trying to use a external SMTP server with Zabbix as first option, so I have followed the howto on Cookbook to use a script to log on external SMTP
http://www.zabbix.com/forum/showthread.php?t=1323
Good: the mail is properly sended and I have no problems with logon on external SMTP.
Bad: Mail is only fill with "From", there aren't Subject, body of mail, etc. No info.
Code:
#!/bin/sh export [email protected] export zabbixemailto=$1 export zabbixsubject=$2 export zabbixbody=$3 export smtpserver=mail.mysmtp.com export smtplogin=some@one export smtppass=password /usr/sbin/sendmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp $smtppass
Thanks!
PD: is more easy to use a local MTA?
Comment