Hello all-
First, a big thanks to DLink for making a great product and supporting us with fun_plug.
I have a DNS-320 with a USB backup drive attached. I have fun_plug working, and I have a crontabbed rsync job that mirrors the whole damn drive to the attached USB once per week as my "bullet-proof" backup.
I also have standard notifications set to let me know about drive space, status, etc. using the built-in gui and an anonymous smtp.
I'd like to send myself a note letting me know if rsync worked or failed. I have installed mailx, esmtp, and one additional library for esmtp (I forgot which).
I can't figure out how to send myself mail from the command line. I tried making an msmtprc and an esmptrc config file (very basic, just added my info to the examples) and I tried Ricardo's method
/usr/bin/msmtp --host=smtp.gmail.com --port=587 --auth=on --user <your_gmail_username> --tls=on --tls-certcheck=off -f <your_gmail_username@gmail.com> -t < /path/to/file_containing_your_message
all to no avail. It just.... hangs? The terminal just stops doing things until I hit ctrl-c.
Any help? I'd just like to send the rsync stats file I'm making to myself via command line.