On Wed, 28 Jul 2021 16:57:27 +0200
François Patte <francois.pa...@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.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to