Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6ax opened this issue Jan 17, 2018 · 6 comments
Open

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

6ax opened this issue Jan 17, 2018 · 6 comments

Comments

@6ax
Copy link

6ax commented Jan 17, 2018

Hi,

Ssmtp has known problems when sending mail from a smartd through ssmtp.
Since the syntax for ssmtp is different of the syntax of mail it is needed to create a script to send the email and tell smartd to use it.
The ssmtp command is not compatible. It emulates the sendmail command
which requires to prepend header lines (e.g. "Subject") before mail
text.

Details here:
https://sourceforge.net/p/smartmontools/mailman/message/32312279/
http://www.openstora.com/wiki/index.php?title=Fixing_smartmontools
https://wiki.archlinux.org/index.php/S.M.A.R.T.

Please consider the possibility of replacing or adding msmtp, and then select the preferred agent (ssmtp or msmtp) in the TUI for compatibility with previous versions of ESOS.

@6ax
Copy link
Author

6ax commented Jan 17, 2018

Or include in the ESOS this adapted script for sending via ssmtp.
Tnx.

smartd_warning.sh.txt

@msmith626
Copy link
Contributor

Where does that script go? It replaces an existing script with the same name? I'm open to swapping to a different mailer, but it's a considerable amount of work. Patches / merge requests are welcome.

--Marc

@6ax
Copy link
Author

6ax commented Jan 17, 2018

@msmith626
Copy link
Contributor

msmith626 commented Jan 17, 2018 via email

@6ax
Copy link
Author

6ax commented Jan 17, 2018

Yes, right. Replaces an existing file.

@feldsam
Copy link
Contributor

feldsam commented Jan 17, 2018

looks like not, but will be fine have hdd smart monitoring in healthcheck script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants