Re: [opensuse] How do I get system mail?
On Tue, 2009-12-29 at 22:03 +0100, Marcus Meissner wrote:
On Tue, Dec 29, 2009 at 08:55:15PM +0000, Bob Williams wrote:
Hi,
I'm sure I ticked the box for my user to receive system mail when I installed this system (11.2 & KDE 4.3) but nothing arrives in the mailbox folder I've created in Kmail. This is set to collect mail from /var/spool/mail/bob.
How do I get root's mail forwarded to this account?
It is delivered to ~bob/Mail/ in maildir style.
Note though that there is a bug in 11.2 (bnc#552270) where no mail at all will be delivered until you do cd /etc/postfix; postmap relay Though I think that one only hits updates, not fresh installs Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-12-29 at 22:45 +0100, Anders Johansson wrote:
How do I get root's mail forwarded to this account?
It is delivered to ~bob/Mail/ in maildir style.
Note though that there is a bug in 11.2 (bnc#552270) where no mail at all will be delivered until you do
cd /etc/postfix; postmap relay
Though I think that one only hits updates, not fresh installs
And there was another, solved during RC phase I believe, whereby postfix was set to use maildir folders by default, with the result than forwarding to another user was broken. Ie, root mails got lost. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks6gR8ACgkQtTMYHG2NR9VgugCfQ72Ubxk+zVhwwQbHMq5VXHG0 klwAniceuXEYIvQE748VfabjY2CBn54h =0+SW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 29 Dec 2009 22:22:05 Carlos E. R. wrote:
On Tuesday, 2009-12-29 at 22:45 +0100, Anders Johansson wrote:
How do I get root's mail forwarded to this account?
It is delivered to ~bob/Mail/ in maildir style.
but it's not arriving :(
Note though that there is a bug in 11.2 (bnc#552270) where no mail at all will be delivered until you do
cd /etc/postfix; postmap relay
OK. I've done that. I'll see if the postman brings me anything ;)
Though I think that one only hits updates, not fresh installs
And there was another, solved during RC phase I believe, whereby postfix was set to use maildir folders by default, with the result than forwarding to another user was broken. Ie, root mails got lost.
Hmm. So, what next? Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-12-29 at 22:58 -0000, Bob Williams wrote:
It is delivered to ~bob/Mail/ in maildir style.
but it's not arriving :( ...
Hmm. So, what next?
Obvious, as this is linux: check the log. :-) /var/log/mail* - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks6ldwACgkQtTMYHG2NR9W8zgCglSebVwjMf5vcR+VJIs6rs5kA iskAn1Wx8cvkJydmBjsmmuHXkjCi/h3E =F3E4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 29 Dec 2009 23:50:46 Carlos E. R. wrote:
On Tuesday, 2009-12-29 at 22:58 -0000, Bob Williams wrote:
It is delivered to ~bob/Mail/ in maildir style.
but it's not arriving :(
...
Hmm. So, what next?
Obvious, as this is linux: check the log. :-)
/var/log/mail*
That logfile contains lines such as: Dec 28 15:31:01 barrowhillfarm postfix/pickup[9336]: EEA665EF8D: uid=0 from=<root> Dec 28 15:31:01 barrowhillfarm postfix/cleanup[9337]: EEA665EF8D: message- id=<20091228153101.EEA665EF8D@linux.local> Dec 28 15:31:02 barrowhillfarm postfix/qmgr[32358]: EEA665EF8D: from=<root@linux.local>, size=447, nrcpt=1 (queue active) Dec 28 15:31:02 barrowhillfarm postfix/local[9340]: EEA665EF8D: to=<bob@linux.local>, orig_to=<root>, relay=local, delay=0.22, delays=0.11/0.01/0/0.1, dsn=2.0.0, status=sent (delivered to maildir) Dec 28 15:31:02 barrowhillfarm postfix/qmgr[32358]: EEA665EF8D: removed so it seems that root@linux.local is sending mail to bob@linux.local :) However, /var/spool/mail/ is an empty directory - no files, no subdirectories - so where is the local mail going? Thanks for your help and advice. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
Obvious, as this is linux: check the log. :-)
/var/log/mail*
That logfile contains lines such as:
Dec 28 15:31:01 barrowhillfarm postfix/pickup[9336]: EEA665EF8D: uid=0 from=<root> Dec 28 15:31:01 barrowhillfarm postfix/cleanup[9337]: EEA665EF8D: message- id=<20091228153101.EEA665EF8D@linux.local> Dec 28 15:31:02 barrowhillfarm postfix/qmgr[32358]: EEA665EF8D: from=<root@linux.local>, size=447, nrcpt=1 (queue active) Dec 28 15:31:02 barrowhillfarm postfix/local[9340]: EEA665EF8D: to=<bob@linux.local>, orig_to=<root>, relay=local, delay=0.22, delays=0.11/0.01/0/0.1, dsn=2.0.0, status=sent (delivered to maildir)
"delivered to maildir" is the important message here. Edit your /etc/postfix/main.cf and comment out line 423: home_mailbox = Maildir/ https://bugzilla.novell.com/show_bug.cgi?id=557239 /Per -- Per Jessen, Zürich (0.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 30 Dec 2009 13:02:38 Per Jessen wrote:
Bob Williams wrote:
Obvious, as this is linux: check the log. :-)
/var/log/mail*
That logfile contains lines such as:
Dec 28 15:31:01 barrowhillfarm postfix/pickup[9336]: EEA665EF8D: uid=0 from=<root> Dec 28 15:31:01 barrowhillfarm postfix/cleanup[9337]: EEA665EF8D: message- id=<20091228153101.EEA665EF8D@linux.local> Dec 28 15:31:02 barrowhillfarm postfix/qmgr[32358]: EEA665EF8D: from=<root@linux.local>, size=447, nrcpt=1 (queue active) Dec 28 15:31:02 barrowhillfarm postfix/local[9340]: EEA665EF8D: to=<bob@linux.local>, orig_to=<root>, relay=local, delay=0.22, delays=0.11/0.01/0/0.1, dsn=2.0.0, status=sent (delivered to maildir)
"delivered to maildir" is the important message here.
Edit your /etc/postfix/main.cf and comment out line 423:
home_mailbox = Maildir/
https://bugzilla.novell.com/show_bug.cgi?id=557239
/Per
Done. Many thanks, Per. Happy New Year Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 30 Dec 2009 15:21:16 Bob Williams wrote:
On Wednesday 30 Dec 2009 13:02:38 Per Jessen wrote:
Bob Williams wrote:
Obvious, as this is linux: check the log. :-)
/var/log/mail*
That logfile contains lines such as:
Dec 28 15:31:01 barrowhillfarm postfix/pickup[9336]: EEA665EF8D: uid=0 from=<root> Dec 28 15:31:01 barrowhillfarm postfix/cleanup[9337]: EEA665EF8D: message- id=<20091228153101.EEA665EF8D@linux.local> Dec 28 15:31:02 barrowhillfarm postfix/qmgr[32358]: EEA665EF8D: from=<root@linux.local>, size=447, nrcpt=1 (queue active) Dec 28 15:31:02 barrowhillfarm postfix/local[9340]: EEA665EF8D: to=<bob@linux.local>, orig_to=<root>, relay=local, delay=0.22, delays=0.11/0.01/0/0.1, dsn=2.0.0, status=sent (delivered to maildir)
"delivered to maildir" is the important message here.
Edit your /etc/postfix/main.cf and comment out line 423:
home_mailbox = Maildir/
https://bugzilla.novell.com/show_bug.cgi?id=557239
/Per
Done. Many thanks, Per.
Ouch! Now I'm getting a test message from cron once a minute. My inbox is overflowing! :( I'm sure this didn't happen on previous installations, when I've opted to receive system mail. I can't find anything in the postfix main.cf file to help me adjust this behaviour. As a matter of interest, when I tick the box to receive system mail at installation time, which parameter in which file actually gets changed? Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2009-12-31 18:55, Bob Williams wrote:
On Wednesday 30 Dec 2009 15:21:16 Bob Williams wrote:
Ouch! Now I'm getting a test message from cron once a minute. My inbox is overflowing! :( I'm sure this didn't happen on previous installations, when I've opted to receive system mail. I can't find anything in the postfix main.cf file to help me adjust this behaviour.
No, the adjustement has to be in cron. Or rather the precise job that generates those emails. Can you post a sample? If it is big, put it on pastebin.
As a matter of interest, when I tick the box to receive system mail at installation time, which parameter in which file actually gets changed?
/etc/aliases - -- Cheers / Saludos, Carlos E. R. (from 11.2 "Emerald" GM (bombadillo)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAks9DIcACgkQU92UU+smfQUdyACggrVrzCK8eVSBCnECYCBLCaP9 GsQAnjtqQ50nRcg+vbXjHMyy1LiNV9FF =nJDD -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Carlos, Thank you. Just finished our New Year's Eve party, so off to bed. Brain has gone offline ;) I'll be back tomorrow. :) See below... On Thursday 31 Dec 2009 20:41:43 Carlos E. R. wrote:
On 2009-12-31 18:55, Bob Williams wrote:
On Wednesday 30 Dec 2009 15:21:16 Bob Williams wrote:
Ouch! Now I'm getting a test message from cron once a minute. My inbox is overflowing! :( I'm sure this didn't happen on previous installations, when I've opted to receive system mail. I can't find anything in the postfix main.cf file to help me adjust this behaviour.
No, the adjustement has to be in cron. Or rather the precise job that generates those emails. Can you post a sample? If it is big, put it on pastebin.
Return-Path: <root@linux.local> X-Original-To: root Delivered-To: root@linux.local Received: by linux.local (Postfix, from userid 0) id E8F035EF8A; Fri, 1 Jan 2010 02:09:01 +0000 (GMT) From: root@linux.local To: root@linux.local Subject: Cron <root@barrowhillfarm> echo test 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: <20100101020901.E8F035EF8A@linux.local> Date: Fri, 1 Jan 2010 02:09:01 +0000 (GMT) Status: R X-Status: N X-KMail-EncryptionState: X-KMail-SignatureState: X-KMail-MDN-Sent: test
As a matter of interest, when I tick the box to receive system mail at installation time, which parameter in which file actually gets changed?
/etc/aliases
Thank you. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-01-01 at 02:15 +0000, Bob Williams wrote:
Subject: Cron <root@barrowhillfarm> echo test
This is not a normal cron job. This is something that you (or someone else with access to the root account) added to root's crontab. Run crontab -e as root, I'll bet you see a line in there that simply does "echo test" Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 01 Jan 2010 14:23:20 Anders Johansson wrote:
On Fri, 2010-01-01 at 02:15 +0000, Bob Williams wrote:
Subject: Cron <root@barrowhillfarm> echo test
This is not a normal cron job. This is something that you (or someone else with access to the root account) added to root's crontab. Run
crontab -e
as root, I'll bet you see a line in there that simply does "echo test"
Anders
Well, I don't remember adding this echo test job to root's crontab. For one thing, I don't think I'm knowledgeable enough. But you're quite correct, it does just output "echo test". This is root's crontab: SHELL=/bin/sh PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin MAILTO=root # # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly # -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run- crons >/dev/null 2>&1 # Backup schedule to /media/VirtualMachines: # run daily backup every day at 11.50pm 50 23 * * * root /usr/bin/rsnapshot daily # run weekly backup every week at 11.40pm 40 23 * * 6 root /usr/bin/rsnapshot weekly # run monthly backup at 11.30pm on 1st day of month 30 23 1 * * root /usr/bin/rsnapshot monthly # Backup schedule to /castor: 0 2,6,10,14,18,22 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot.conf2 hourly 50 1 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot.conf2 daily 40 1 * * 6 root /usr/bin/rsnapshot -c /etc/rsnapshot.conf2 weekly 30 1 1 * * root /usr/bin/rsnapshot -c /etc/rsnapshot.conf2 monthly From what you say, I can safely delete the line containing: -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run- crons >/dev/null 2>&1 ?? Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-01-01 at 16:06 +0000, Bob Williams wrote:
From what you say, I can safely delete the line containing:
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run- crons >/dev/null 2>&1
No, that is the main command that runs the system cron jobs. That is not what I meant (there is also no 'echo' command on that line) I also don't think that is root's crontab you're showing, I think that is /etc/crontab, the system cron configuration. What you want to be looking at is /var/spool/cron/tabs/root. That is where I'm betting you will find the line "echo test" Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2010-01-01 at 16:06 -0000, Bob Williams wrote:
On Friday 01 Jan 2010 14:23:20 Anders Johansson wrote:
On Fri, 2010-01-01 at 02:15 +0000, Bob Williams wrote:
From what you say, I can safely delete the line containing:
-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run- crons >/dev/null 2>&1
Most enfatically not!!! That line does not output "echo test". That's the system main cronjob. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks+JC0ACgkQtTMYHG2NR9VbgQCfXGQ11vF8BuKG+CMpYj4FbtsX CFYAoJKCV7aNVe+xQcZsHp1Lay2ZftSd =O1a0 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
Ouch! Now I'm getting a test message from cron once a minute. My inbox is overflowing! :( I'm sure this didn't happen on previous installations, when I've opted to receive system mail. I can't find anything in the postfix main.cf file to help me adjust this behaviour.
Hi Bob you can either stop the cron job or set MAILTO=<blank> (in cron.d/xxxx) to stop getting those mails. What is the purpose of the cron job? /Per -- Per Jessen, Zürich (4.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2010-01-01 at 11:34 +0100, Per Jessen wrote:
Bob Williams wrote:
Ouch! Now I'm getting a test message from cron once a minute. My inbox is overflowing! :( I'm sure this didn't happen on previous installations, when I've opted to receive system mail. I can't find anything in the postfix main.cf file to help me adjust this behaviour.
Hi Bob
you can either stop the cron job or set MAILTO=<blank> (in cron.d/xxxx) to stop getting those mails. What is the purpose of the cron job?
My guess it is just a forgotten test job :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks926YACgkQtTMYHG2NR9XnlwCeP3PNBFnY1yC6jlF7mxQrtVXi LH4AoJUFdInT6yKd2S3Ba6sXKnyb9FvJ =6oJ8 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Per and Carlos, Happy New Year :) On Friday 01 Jan 2010 11:25:16 Carlos E. R. wrote:
On Friday, 2010-01-01 at 11:34 +0100, Per Jessen wrote:
Bob Williams wrote:
Ouch! Now I'm getting a test message from cron once a minute. My inbox is overflowing! :( I'm sure this didn't happen on previous installations, when I've opted to receive system mail. I can't find anything in the postfix main.cf file to help me adjust this behaviour.
Hi Bob
you can either stop the cron job or set MAILTO=<blank> (in cron.d/xxxx) to stop getting those mails. What is the purpose of the cron job?
My guess it is just a forgotten test job :-)
I run several rsnapshot backup jobs as root, but I think the culprit is: test -x /usr/lib/cron/run-crons >/dev/null 2>&1 which checks scripts in cron.hourly, cron.daily etc. on the following schedule: */15 * * * * Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2010-01-01 at 11:50 -0000, Bob Williams wrote:
Hi Per and Carlos,
Happy New Year :)
Same to you. I'm watching on TV the Vienna philarmonica new year concert, but I missed the first hour. I always think it starts at twelve, but it does at 11:00 +0100. Almost every year I'm catched this way. Sigh.
On Friday 01 Jan 2010 11:25:16 Carlos E. R. wrote:
On Friday, 2010-01-01 at 11:34 +0100, Per Jessen wrote:
you can either stop the cron job or set MAILTO=<blank> (in cron.d/xxxx) to stop getting those mails. What is the purpose of the cron job?
My guess it is just a forgotten test job :-)
I run several rsnapshot backup jobs as root, but I think the culprit is:
test -x /usr/lib/cron/run-crons >/dev/null 2>&1
which checks scripts in cron.hourly, cron.daily etc. on the following schedule:
*/15 * * * *
That would be /etc/crontab - both my 11.0 and 11.2 have the exact same file: - ---------- SHELL=/bin/sh PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin MAILTO=root # # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly # - -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 - ------------- Syntax is in crontab(5). Every 15 minutes user root will test if /usr/lib/cron/run-crons is executable and run it. Your line, if what you posted is what you have, is incorrect, it doesn't have the execute part; thus you are getting the mail, because by default a mail is only sent on errors, and this is an error. That's my sleepy guess at this early time of the year :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks95lEACgkQtTMYHG2NR9WcqgCfdSGOPx7lGFvIharU+1VkBU8K nAkAmwUWUhWLbG7F6SUqIBluRZpP4Ss4 =8g8U -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 01 Jan 2010 12:10:50 Carlos E. R. wrote:
On Friday, 2010-01-01 at 11:50 -0000, Bob Williams wrote:
Hi Per and Carlos,
Happy New Year :)
Same to you.
I'm watching on TV the Vienna philarmonica new year concert, but I missed the first hour. I always think it starts at twelve, but it does at 11:00 +0100. Almost every year I'm catched this way. Sigh.
On Friday 01 Jan 2010 11:25:16 Carlos E. R. wrote:
On Friday, 2010-01-01 at 11:34 +0100, Per Jessen wrote:
you can either stop the cron job or set MAILTO=<blank> (in cron.d/xxxx) to stop getting those mails. What is the purpose of the cron job?
My guess it is just a forgotten test job :-)
I run several rsnapshot backup jobs as root, but I think the culprit is:
test -x /usr/lib/cron/run-crons >/dev/null 2>&1
which checks scripts in cron.hourly, cron.daily etc. on the following schedule:
*/15 * * * *
That would be /etc/crontab - both my 11.0 and 11.2 have the exact same file:
---------- SHELL=/bin/sh PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin MAILTO=root # # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly # -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 -------------
Syntax is in crontab(5).
Every 15 minutes user root will test if /usr/lib/cron/run-crons is executable and run it. Your line, if what you posted is what you have, is incorrect, it doesn't have the execute part; thus you are getting the mail, because by default a mail is only sent on errors, and this is an error.
That's my sleepy guess at this early time of the year :-)
My mistake. I have the same as you quote above in /etc/crontab. My previous quote was taken from what is displayed in System Settings > Advanced > Task Scheduler. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2010-01-01 at 13:54 -0000, Bob Williams wrote:
That's my sleepy guess at this early time of the year :-)
My mistake. I have the same as you quote above in /etc/crontab. My previous quote was taken from what is displayed in System Settings > Advanced > Task Scheduler.
Oops :-) Then, that file is correct. Then have a look at "/etc/sysconfig/cron", you should have: SEND_MAIL_ON_NO_ERROR="no" Otherwise, it is some other job. Do "ls /var/spool/cron/tabs/", it will list what users have personal cronjobs. Then, use "crontab -u user -l to list that job. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks+BAIACgkQtTMYHG2NR9V6EgCbB38Anhm69e90bVvriIlQXPaa 9dcAn06BvwsbqPuIuKFr+imoY3miqQ3r =GVTN -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 01 Jan 2010 14:17:31 Carlos E. R. wrote:
On Friday, 2010-01-01 at 13:54 -0000, Bob Williams wrote:
That's my sleepy guess at this early time of the year :-)
My mistake. I have the same as you quote above in /etc/crontab. My previous quote was taken from what is displayed in System Settings > Advanced > Task Scheduler.
Oops :-)
Then, that file is correct.
Then have a look at "/etc/sysconfig/cron", you should have:
SEND_MAIL_ON_NO_ERROR="no"
Yes, that's what I have here.
Otherwise, it is some other job. Do "ls /var/spool/cron/tabs/", it will list what users have personal cronjobs. Then, use "crontab -u user -l to list that job.
barrowhillfarm:~ # ls /var/spool/cron/tabs/ bob root barrowhillfarm:~ # crontab -u bob -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/home/bob/.kde4/tmp-barrowhillfarm/systemsettingsw11681.tmp installed on Wed Nov 25 09:39:14 2009) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) #Checks for incoming rsync downloads 0 12 * * * /home/bob/bin/newstuff5.pl This one is doing what it should, i.e. it sends me an e-mail with the output of the perl script. barrowhillfarm:~ # crontab -u root -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXZ5pVMa installed on Sun Nov 22 19:05:53 2009) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) * * * * * echo test This looks like the villain. But surely, it has to run to check whether there are any pending cron jobs? Interestingly, the above "crontab -u root -l" command doesn't list the rsnapshot jobs that are run as user root :~( Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-01-01 at 15:59 +0000, Bob Williams wrote:
barrowhillfarm:~ # crontab -u root -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXZ5pVMa installed on Sun Nov 22 19:05:53 2009) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) * * * * * echo test
that is the line I was talking about. Since there are no sensible jobs run from that crontab, simply delete the file Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 01 Jan 2010 16:28:55 Anders Johansson wrote:
On Fri, 2010-01-01 at 15:59 +0000, Bob Williams wrote:
barrowhillfarm:~ # crontab -u root -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXZ5pVMa installed on Sun Nov 22 19:05:53 2009) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) * * * * * echo test
that is the line I was talking about. Since there are no sensible jobs run from that crontab, simply delete the file
Anders
Many thanks, Anders. I've deleted the line from root's cron, and the automailbombing has stopped! Peace, at last ;) Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2010-01-01 at 15:59 -0000, Bob Williams wrote:
On Friday 01 Jan 2010 14:17:31 Carlos E. R. wrote:
barrowhillfarm:~ # crontab -u root -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXZ5pVMa installed on Sun Nov 22 19:05:53 2009) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) * * * * * echo test
This looks like the villain. But surely, it has to run to check whether there are any pending cron jobs? Interestingly, the above "crontab -u root -l" command doesn't list the rsnapshot jobs that are run as user root :~(
No, that job does nothing, but oputput "test" to the mail subsystem, ie, mailing one email per minute with the line "test" in it. Yes, that's the culprit. Being root, run "crontab -e", and remove the line. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks+JaoACgkQtTMYHG2NR9UACwCghIrnY/iUA/XmJ52CPxgOayGN 334AoIBs56mOOZbtzLtD1oPm26dPrYkG =yyqW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 01 Jan 2010 16:41:12 Carlos E. R. wrote:
On Friday, 2010-01-01 at 15:59 -0000, Bob Williams wrote:
On Friday 01 Jan 2010 14:17:31 Carlos E. R. wrote:
barrowhillfarm:~ # crontab -u root -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXZ5pVMa installed on Sun Nov 22 19:05:53 2009) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) * * * * * echo test
This looks like the villain. But surely, it has to run to check whether there are any pending cron jobs? Interestingly, the above "crontab -u root -l" command doesn't list the rsnapshot jobs that are run as user root :~(
No, that job does nothing, but oputput "test" to the mail subsystem, ie, mailing one email per minute with the line "test" in it.
Yes, that's the culprit.
Being root, run "crontab -e", and remove the line.
Fantastic! That's done it! And I've learnt a lot along the way. Many thanks. Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.2, Kernel 2.6.31.5-0.1-desktop, KDE 4.3.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R. <robin.listas@telefonica.net> [01-01-10 07:12]:
My guess it is just a forgotten test job :-)
I run several rsnapshot backup jobs as root, but I think the culprit is:
test -x /usr/lib/cron/run-crons >/dev/null 2>&1
which checks scripts in cron.hourly, cron.daily etc. on the following schedule:
*/15 * * * *
But that would not explain your statement, "a test message from cron once a minute" as that would provide an email 4 times per hour, 60/15. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2010-01-01 at 10:36 -0500, Patrick Shanahan wrote:
But that would not explain your statement, "a test message from cron once a minute" as that would provide an email 4 times per hour, 60/15.
True. That one would have "* * * * *". - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAks+GDMACgkQtTMYHG2NR9WnIgCaAqQ8pNz2xyPO1ZYPrb7d/NXw DDsAn0lh+6TDshpLxR59OYtxrw9surIC =duXX -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anders Johansson
-
Bob Williams
-
Carlos E. R.
-
Patrick Shanahan
-
Per Jessen