On Mon, Apr 14, 2014 at 08:03:55PM +0100, Arthur Dent wrote:
On Mon, 2014-04-14 at 20:25 +0200, Suvayu Ali wrote:
> > [mark@Zaphod]$ send-mail: account default not found: no configuration file
available
>
> It looks like this is the crux of your problem. I presume you checked
> mary gets mails for her cron jobs?
Well I think we're narrowing down the problem here. The answer to that
question is NO!
And interestingly NEITHER DOES ROOT!
This is strange.
It seems that fixing /etc/aliases now allows me to get SYSTEM messages
(e.g. logwatch, fail2ban stops/starts etc.) but NOT cron output.
So the problem seems to be that cron is somehow not configured to send
mail. Could that be right? If so, where do I start in trying to fix
it?
I find this very surprising. Can you try adding a line like this on top
of your crontab:
MAILTO=<username>
> That said, I do not know enough about system mail to point you
to
> possible sources of your problem, however I would start by running mail
> with the verbose flag.
How do I do that?
Just call mail with -v in your test:
$ mail -v mary
Cheers,
--
Suvayu
Open source is the future. It sets us free.