Maybe zabbix is launching zext_msmtp.sh with a reduced PATH that doesn't contain /usr/local/bin.
You may try to add at the beginning of the script:
or replace
with
You may try to add at the beginning of the script:
Code:
PATH=$PATH:/usr/local/bin
Code:
sed 's/$/\r/' <<EOF | msmtp --account ...
Code:
sed 's/$/\r/' <<EOF | /usr/local/bin/msmtp --account ...
.
Comment