Re: smartd: test email bounces under certain conditions due to improper from:-statement

Christian Franke <[email protected]>
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
Mark Neugebauer wrote:
> Hello to all,
> when booting the system or restarting smartd (service smartmontools 
> restart) an email is sent - but this email lacks a proper 
> from:-statement and is rejected by the mail provider (bounce). But, 
> when I just type 'smartd' at the command line a test email is sent as 
> expected with a correct from:-statement and message body.
> Version: 6.3 armhf backport for Wheezy
> /etc/smartd.conf is configured to send test emails.

Please provide this smartd.conf line.

By default, Debian specific scripts are used to run the 'mail' command:
Smartd runs /usr/share/smartmontools/smartd-runner which runs less 
/etc/smartmontools/run.d/10mail which runs /usr/bin/mail.

> /etc/default/smartmontools is configured to start smartd
> Any hints apprechiated!

Check the configuration of the installed package providing the 'mail' 
command. To check which command is used, try:

$ update-alternatives --display mailx

or

$ ls -l /etc/alternatives/mail

Thanks,
Christian


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.