Ad Widget

Collapse

Error while configuring email notifications with mutt and msmtp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JustinBobby
    Junior Member
    • Jul 2016
    • 2

    #1

    Error while configuring email notifications with mutt and msmtp

    zabbix version: 3.0.3

    I have installed and configured msmtp and mutt in the zabbix server, and also I have tested that using mutt command could send email successfully.

    But when I create a customized media type in zabbix web and specify a script using mutt command to send email , there are always error complaining that messages could not be sent in /tmp/zabbix_server.log.

    Error messages like these:
    /root/sent: Permission denied (errno = 13)
    Could not send the message.

    I know this is a mutt related problem, but when i run mutt command locally, there's no problem, but error while triggered from zabbix.

    Thanks in advance if anyone could shed some light on this question.
  • JustinBobby
    Junior Member
    • Jul 2016
    • 2

    #2
    Problem solved.

    Update: I have solved this problem. Ultimately it's a mutt related problem which i add an option -F to mutt command and the exceptions disappear.

    Comment

    Working...