manios / docker-nagios

Docker image for Nagios Core in Alpine Linux with basic plugins, available for x86, x64 , ARM v6, ARM v7 and ARM64.
https://www.nagios.org/
Other
59 stars 28 forks source link

Consider changing the mail agent from SSMTP to MSMTP. #4

Open manios opened 5 years ago

manios commented 5 years ago

ssmtp is currently unmaintained according to this. and [this]() page. We may need to review and consider changing the mail agent to msmtp.

References

Giancarlo1974 commented 2 months ago
RUN apk add msmtp mailx
COPY  msmtprc /etc/msmtprc
COPY  aliases /etc/aliases
RUN            ln -s $(which msmtp) /bin/mail            && \
            ln -s $(which msmtp) /usr/sbin/mail

[Here a nice guide](https://wiki.alpinelinux.org/wiki/Relay_email_to_gmail_(msmtp,_mailx,_sendmail)