If this works: $ echo -e 'Subject: Test sendmail\n\nFoo' | /usr/sbin/sendmail [email protected]
but this does not: $ echo Bar | mail -s 'Test mail' [email protected] you should possibly address the issue to the maintainer of the mailutils package. I typically use the 'bsd-mailx' package as 'mail' provider and don't remember similar problems. Alternatively you could disable (chmod -x) 10mail and add some /etc/smartmontools/run.d/11sendmail script, something like: #!/bin/bash /usr/sbin/sendmail $SMARTD_ADDRESS <<EOF Subject: $SMARTD_SUBJECT To: ${SMARTD_ADDRESS// /, } $SMARTD_FULLMESSAGE EOF (Caution: not tested :-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1833331 Title: 10mail script should use sendmail command, not the mail command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/smartmontools/+bug/1833331/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
