Hi

I have a small file server at home running Ubuntu server 8.04 and I set 
up SMART hard disk monitoring following the instructions at:
http://blog.shadypixel.com/monitoring-hard-drive-health-on-linux-with-smartmontools/
 


Then I followed the guide at
http://www.klenwell.com/press/2009/03/ubuntu-email-with-mailx/

to set up mail using mailx and msmtp so that the server can send me 
automatically SMART warnings to my address at an ISP, however I cannot 
resolve the following problem:

If I (USER) own the /home/USER/.msmtprc file, I can send email from the 
command line when I ssh to the server as USER, but the smartd daemon 
cannot and in /var/log/daemon there is the following message:
/
    //etc/smartmontools/run.d/10mail: send-mail: /home/USER//.msmtprc: 
must be owned by you Can't send mail: sendmail process failed /
And the other way round: if I chown the /home/USER/.msmtprc to root, the 
daemon can send the mail, but I can't.

Any idea what I do wrong?

Thanks.

Zdenek

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
msmtp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msmtp-users

Reply via email to