[Bug 228194] New: No mail for root - expecting to see output from crontab jobs output but none shows.
https://bugzilla.novell.com/show_bug.cgi?id=228194 Summary: No mail for root - expecting to see output from crontab jobs output but none shows. Product: openSUSE 10.2 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gdoig@pcug.org.au QAContact: qa@suse.de After setting up a number of crontab jobs in 10.2, I expected to get output at the mail prompt, after the crontab job finished, but this is not happening it just shows 'No mail for root'. How do I configure things so I see the results the job at the local mail prompt ? The installation is KDE based of 10.2 (64bit) and includes all patterns/products on the installation dvd . In previous installations, (10.1,10.0 and 9.x) I used to see the output. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |gdoig@pcug.org.au ------- Comment #1 from mhorvath@novell.com 2006-12-13 05:46 MST ------- The /etc/crontab should contain a line with 'MAILTO=root'. Please report if you are succesful with it, otherwise please attach your /etc/crontab. Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 ------- Comment #2 from gdoig@pcug.org.au 2006-12-14 03:27 MST ------- The /etc/crontab contains the line with MAILTO=root -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 gdoig@pcug.org.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED ------- Comment #3 from gdoig@pcug.org.au 2006-12-14 03:33 MST ------- Created an attachment (id=109690) --> (https://bugzilla.novell.com/attachment.cgi?id=109690&action=view) crontab contents -crontab -l contents of crontab as requested. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mkoenig@novell.com |screening@forge.provo.novell| |.com | Status|ASSIGNED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 ------- Comment #4 from mkoenig@novell.com 2006-12-14 07:20 MST ------- No, the content of /etc/crontab is irrelevant for other users. You need to set the MAILTO variable in the crontab file that is run for that user (probably the one you attached in comment #3) Please put the MAILTO=root into that crontab file and try again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 gdoig@pcug.org.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #5 from gdoig@pcug.org.au 2006-12-20 05:37 MST ------- I edited the crontab (as root account), added the line 'MAILTO=root' as the first line. After crontab entries had run. I typed in mail, still shows message 'No mail for root'. How can I get this working ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |gdoig@pcug.org.au ------- Comment #6 from mkoenig@novell.com 2006-12-20 06:27 MST ------- Are you sure that your scripts produce any output at all? If they don't you will not see any mail. I cannot reproduce this since I have no idea about what your scripts are doing. Please try a crontab file like this MAILTO=root * * * * * echo "test" And try again, after one minute you should see mail for root. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 gdoig@pcug.org.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|gdoig@pcug.org.au | ------- Comment #7 from gdoig@pcug.org.au 2006-12-21 03:27 MST ------- I replaced my entire crontab file(looks like below). I left it running for 20 minutes or so. # crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXRHFHPe installed on Thu Dec 21 21:04:06 2006) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) MAILTO=root * * * * * echo "test" # mail No mail for root # Still no output at the mail prompt. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |gdoig@pcug.org.au ------- Comment #8 from mkoenig@novell.com 2007-01-08 02:51 MST ------- In this case please check your mailer setup. Can you send mail to root at all? Does mail to root get redirected? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 gdoig@pcug.org.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|gdoig@pcug.org.au | ------- Comment #9 from gdoig@pcug.org.au 2007-01-08 05:42 MST ------- How do I check these two items mentioned in comment 8. ?? Please indicate the commands I need to run, and what files I need to look at for both of these steps and I will post the result. Thankyou for your help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |gdoig@pcug.org.au ------- Comment #10 from mkoenig@novell.com 2007-01-08 07:28 MST ------- Try echo test | mail -s test root then take a look at the file /var/spool/mail/root if it contains a mail with subject and body "test". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 gdoig@pcug.org.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|gdoig@pcug.org.au | ------- Comment #11 from gdoig@pcug.org.au 2007-01-09 03:26 MST ------- Here is the result. orac:~ # date Tue Jan 9 21:10:11 EST 2007 orac:~ # echo test | mail -s test root orac:~ # orac:~ # cd /var/spool/mail/ orac:/var/spool/mail # ll total 111780 -rw------- 1 sharon users 114342524 Jan 9 21:11 sharon orac:/var/spool/mail # ll /var/spool/mail/root ls: cannot access /var/spool/mail/root: No such file or directory orac:/var/spool/mail # For some reason there is no mail for the root account. It seems to be going inta a file called 'sharon'. I just viewed the last few header lines of the file. Question: So is how do I fix this crosslinkage ??
From root@orac.site Tue Jan 9 21:14:01 2007 Return-Path: <root@orac.site> X-Original-To: root Delivered-To: root@orac.site Received: by orac.site (Postfix, from userid 0) id D0E5F120816; Tue, 9 Jan 2007 21:14:01 +1100 (EST) From: root@orac.site To: root@orac.site Subject: Cron <root@orac> echo "test" X-Cron-Env: <MAILTO=root> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> Message-Id: <20070109101401.D0E5F120816@orac.site> Date: Tue, 9 Jan 2007 21:14:01 +1100 (EST)
test -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=228194 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID ------- Comment #12 from mkoenig@novell.com 2007-01-09 04:22 MST ------- This means that your system has a user sharon and is configured to redirect mail to root to that user. Please configure your MTA with Yast (Network Services -> Mail Transfer Agent) Closing bug, because it is not a cron bug at all. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com