On Wed, 28 Jul 2021 16:57:27 +0200
François Patte <francois.patte(a)mi.parisdescartes.fr> wrote:
I dessperatly try to have smartd sending me an email with ssmtp but
it seems to be impossible!
There are a lot of environment variables (SMARTD_MAILER,
SMARTD_ADDRESS...) but nowhere I found where they could be defined!
They are defined by the program itself based on the configuration
options provided in the smartd.conf file. See the -M option.
I tried in file smartd.conf, in smartd_warning.sh, in
/usr/libexec/smartmontools/smartdnotify... But it does not work.
Does somebody know how to proceed?
Did you look at man smartd.conf. I see the -m and -M configuration
options. -m sets the email address and -M exec [path to executable]
sets the mail program if it is not the default mail. Is that what you
tried?
It seems that -M test might be a good addition to see if everything is
working at startup also.
Admittedly, there are lots of options, but that means there is fine
grained control.