On 12/31/13 10:50, Ed Greshko wrote:
So, you don't need sendmail. procmail will do just fine.
I should mention one downside to using this approach.....
The mail which crond feeds to the mailer lacks a "Date:" header. So, if you use this, or potentially, another mailer such as mailx the message in your inbox will look similar to this....
From: "(Cron Daemon)" <egreshko> To: egreshko Subject: Cron egreshko@f20f du -h --max-depth=1 /home/egreshko Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated Precedence: bulk X-Cron-Env: <XDG_SESSION_ID=61> X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/1001> X-Cron-Env: <LANG=en_US.UTF-8> X-Cron-Env: <HELL=/bin/bash> X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin> X-Cron-Env: <MAILTO=egreshko> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/home/egreshko> X-Cron-Env: <LOGNAME=egreshko> X-Cron-Env: <USER=egreshko>