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
besides
the startup, Nov 13 19:49:50 beata /usr/sbin/cron[3776]: (CRON)
STARTUP (V5.0).
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
from=<per>
Nov 16 19:43:01 guest50 postfix/cleanup[4676]: CBCA8B050:
message-id=<20091116184301.CBCA8B050@xxxxxxxxxxxxxxxxx>
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/
1258396922.V902I100fM51598.guest50
1258396981.V902I1012M855705.guest50
1258397041.V902I1013M920533.guest50
1258397102.V902I1014M63284.guest50
1258397161.V902I1015M128741.guest50
1258397221.V902I1016M299739.guest50
1258397281.V902I1017M329716.guest50

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

home_mailbox = Maildir/

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

mail
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

--
Per Jessen, Zürich (9.8°C)

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

< Previous Next >