Mailinglist Archive: opensuse (2479 mails)

< Previous Next >
Re: [opensuse] No Mails from Cronjobs or root
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Mon, 16 Nov 2009 19:54:34 +0100
  • Message-id: <hds75a$qqv$2@xxxxxxxxxxxxxxxx>
Anders Norrbring wrote:

I have the exact same problem. And both cron and postfix are up and
running. Testing sending a mail to root via sendmail works just fine.
But nothing whatsoever from cron.
In fact, in /var/log/messages there aren't any entries from cron
the startup, Nov 13 19:49:50 beata /usr/sbin/cron[3776]: (CRON)
I'm running 11.1, and I would expect the update script to be run every
day, but apparently not.. I have to look into this more.

On a freshly installed 11.2 system, I've just gone through this:

as user 'per':

crontab -e (entry='* * * * * echo klop')

After a couple of minutes, from /var/log/messages

Nov 16 19:42:01 guest50 /usr/sbin/cron[4668]: (per) CMD (echo klop)
Nov 16 19:43:01 guest50 /usr/sbin/cron[4693]: (per) CMD (echo klop)
Nov 16 19:44:01 guest50 /usr/sbin/cron[4749]: (per) CMD (echo klop)

And from /var/log/mail:

Nov 16 19:42:01 guest50 postfix/qmgr[3121]: D990C92CC:
from=<per@xxxxxxxxxxxxxxxxx>, size=464, nrcpt=1 (queue active)
Nov 16 19:42:02 guest50 postfix/local[4679]: D990C92CC:
to=<per@xxxxxxxxxxxxxxxxx>, orig_to=<per>, relay=local, delay=0.45,
delays=0.24/0.08/0/0.13, dsn=2.0.0, status=sent (delivered to maildir)
Nov 16 19:43:01 guest50 postfix/pickup[4424]: CBCA8B050: uid=1000
Nov 16 19:43:01 guest50 postfix/cleanup[4676]: CBCA8B050:
Nov 16 19:43:01 guest50 postfix/qmgr[3121]: CBCA8B050:
from=<per@xxxxxxxxxxxxxxxxx>, size=464, nrcpt=1 (queue active)
Nov 16 19:43:01 guest50 postfix/local[4679]: CBCA8B050:
to=<per@xxxxxxxxxxxxxxxxx>, orig_to=<per>, relay=local, delay=0.14,
delays=0.06/0/0/0.08, dsn=2.0.0, status=sent (delivered to maildir)

So, cron is running, and the mail is being generated and sent.
Nonetheless, when I check the local mail for 'per' using 'mail', there
isn't any ....
Still, when checking '/home/per/Maildir' :

ls -1 /home/per/Maildir/new/

I think the problem is in /etc/postfix/ which has the following:

home_mailbox = Maildir/

Comment that out, reload postfix, and you'll see the old, familiar:

Heirloom mailx version 12.2 01/07/07. Type ? for help.
"/var/spool/mail/per": 1 message 1 new
N 1 per@xxxxxxxxxxxxxx Mon Nov 16 19:53 19/598 Cron <per@guest50>
echo klop

Note - I don't know why "home_mailbox = Maildir/" was used, so
commenting it out might well screw up something else.


Per Jessen, Zürich (9.8°C)

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >