Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76347 - [smartmontools] Add optional dependency msmtp for mail alerts

Attached to Project: Arch Linux
Opened by Martin (MartinX3) - Sunday, 30 October 2022, 12:18 GMT
Last edited by Toolybird (Toolybird) - Sunday, 30 October 2022, 21:13 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

It is also possible to use msmtp instead of s-nail.
And probably easier if I look at the future s-nail v15 with its breaking changes.
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 30 October 2022, 21:13 GMT
Reason for closing:  Not a bug
Additional comments about closing:  the smartmontools need for "mail" is hardcoded
Comment by nl6720 (nl6720) - Sunday, 30 October 2022, 12:54 GMT
smartmontools uses the mail command to send email. s-nail is the only package in the repos that provides /usr/bin/mail, so it can't be that easily replaced.
Comment by Martin (MartinX3) - Sunday, 30 October 2022, 12:59 GMT
Oh, I thought it is possible because I read
`It is enough to simply configure S-nail if you do not want anything else,{...}`
at https://wiki.archlinux.org/title/S.M.A.R.T.#smartd.

It reads like I could use something else.
Comment by nl6720 (nl6720) - Sunday, 30 October 2022, 14:12 GMT
You can use something else with `-M exec /path/to/binary` in /etc/smartd.conf. See https://man.archlinux.org/man/smartd.conf.5
It would be a lot simpler if smartd supported using sendmail instead of mail, but unfortunately it doesn't. Perhaps you can open a feature request upstream.
Comment by Martin (MartinX3) - Sunday, 30 October 2022, 15:44 GMT
Oh, good to know that the way exist.
Thank you.

About the upstream ticket I need to look how their archaic project management system works and if I can search for open issue tickets without creating a new account.

Edit:
Ah, I can just redirect s-nail/mail to msmtp by filling its mta variable with the path of the msmtp binary.

Loading...