[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[msmtp-users] Problems with config file ownership



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