[opensuse] No Mails from Cronjobs or root
Hello Mates, i'm using 11.2 and i can't recieve any mails from root or cronjobs. In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha". How can i know where are my mails? -- Sincerely yours Sascha Manns openSUSE Member openSUSE Ambassador openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sascha 'saigkill' Manns wrote:
Hello Mates,
i'm using 11.2 and i can't recieve any mails from root or cronjobs.
In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha".
How can i know where are my mails?
Check your mail log: /var/log/mail. -- Per Jessen, Zürich (8.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Sonntag 15 November 2009 21:02:39 wrote Per Jessen:
Sascha 'saigkill' Manns wrote:
Hello Mates,
i'm using 11.2 and i can't recieve any mails from root or cronjobs.
In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha".
How can i know where are my mails?
Check your mail log:
/var/log/mail.
I grepped the mail File. But in the whole file doesn't exists an Email from Cron- -- Sincerely yours Sascha Manns openSUSE Member openSUSE Ambassador openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sascha 'saigkill' Manns wrote:
Am Sonntag 15 November 2009 21:02:39 wrote Per Jessen:
Sascha 'saigkill' Manns wrote:
Hello Mates,
i'm using 11.2 and i can't recieve any mails from root or cronjobs.
In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha".
How can i know where are my mails?
Check your mail log:
/var/log/mail.
I grepped the mail File. But in the whole file doesn't exists an Email from Cron-
No mails were sent from cron means: a) cron is not running or b) no cron jobs were scheduled to run or c) no cron jobs produced any output a) and b) are easily verified - I feel pretty certain your cron daemon is running, and you can check /var/log/messages to see if any jobs were run. Maybe the cron jobs didn't prodeuce any output? /Per -- Per Jessen, Zürich (9.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Montag 16 November 2009 08:52:56 wrote Per Jessen:
Sascha 'saigkill' Manns wrote:
Am Sonntag 15 November 2009 21:02:39 wrote Per Jessen:
Sascha 'saigkill' Manns wrote:
Hello Mates,
i'm using 11.2 and i can't recieve any mails from root or cronjobs.
In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha".
How can i know where are my mails?
Check your mail log:
/var/log/mail.
I grepped the mail File. But in the whole file doesn't exists an Email from Cron-
No mails were sent from cron means:
a) cron is not running or
b) no cron jobs were scheduled to run or
c) no cron jobs produced any output Yes, cron is running (checked with pidof)
The Log says: Nov 16 16:30:01 linux-m4rp /usr/sbin/cron[14569]: (sascha) CMD (/home/sascha/bin/mirroring_obs.sh) Nov 16 16:30:38 linux-m4rp logger: Mirroring done The Script i've attached. In 11.1 Cron sends me the complete Output from the Script. But in 11.2 not :-( -- Sincerely yours Sascha Manns openSUSE Member openSUSE Ambassador openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill
Sascha 'saigkill' Manns wrote:
No mails were sent from cron means:
a) cron is not running or
b) no cron jobs were scheduled to run or
c) no cron jobs produced any output
Yes, cron is running (checked with pidof)
The Log says: Nov 16 16:30:01 linux-m4rp /usr/sbin/cron[14569]: (sascha) CMD (/home/sascha/bin/mirroring_obs.sh) Nov 16 16:30:38 linux-m4rp logger: Mirroring done
The Script i've attached.
In 11.1 Cron sends me the complete Output from the Script. But in 11.2 not :-(
I would still expect to see some lines in /var/log/mail - the mail that is being generated by cron, is sent with sendmail, and you should see postfix process it and send it to your local account. /Per -- Per Jessen, Zürich (10.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen skrev:
Sascha 'saigkill' Manns wrote:
No mails were sent from cron means:
a) cron is not running or
b) no cron jobs were scheduled to run or
c) no cron jobs produced any output Yes, cron is running (checked with pidof)
The Log says: Nov 16 16:30:01 linux-m4rp /usr/sbin/cron[14569]: (sascha) CMD (/home/sascha/bin/mirroring_obs.sh) Nov 16 16:30:38 linux-m4rp logger: Mirroring done
The Script i've attached.
In 11.1 Cron sends me the complete Output from the Script. But in 11.2 not :-(
I would still expect to see some lines in /var/log/mail - the mail that is being generated by cron, is sent with sendmail, and you should see postfix process it and send it to your local account.
/Per
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. Anders. __________ Information from ESET NOD32 Antivirus, version of virus signature database 4613 (20091116) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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@guest50.local.net>, size=464, nrcpt=1 (queue active) Nov 16 19:42:02 guest50 postfix/local[4679]: D990C92CC: to=<per@guest50.local.net>, 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@guest50.local.net> Nov 16 19:43:01 guest50 postfix/qmgr[3121]: CBCA8B050: from=<per@guest50.local.net>, size=464, nrcpt=1 (queue active) Nov 16 19:43:01 guest50 postfix/local[4679]: CBCA8B050: to=<per@guest50.local.net>, 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@guest50.local. 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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Per Jessen <per@opensuse.org> [11-16-09 13:56]:
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:
Odd :^(. I have ll.2, but was continually updated/graded from late June and my main.cf has: 14:33 wahoo:~ > grep home_ /etc/postfix/main.cf # The home_mailbox parameter specifies the optional pathname of a #home_mailbox = Mailbox #home_mailbox = Maildir/ And it *was* not my doing. My mail is delivered to /var/mail/<user> by procmail, that which is not sorted into local directories under /home/<user>/mail As I have slept two or three times since then, it is quite possible that the settings are from YaST2 which I cannot check as YaST2 is currently inoperable :^(. -- 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
On Mon, 16 Nov 2009 14:37:54 -0500 Patrick Shanahan <paka@opensuse.org> wrote:
* Per Jessen <per@opensuse.org> [11-16-09 13:56]:
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:
Odd :^(.
I have ll.2, but was continually updated/graded from late June and my main.cf has:
14:33 wahoo:~ > grep home_ /etc/postfix/main.cf # The home_mailbox parameter specifies the optional pathname of a #home_mailbox = Mailbox #home_mailbox = Maildir/
And it *was* not my doing. My mail is delivered to /var/mail/<user> by procmail, that which is not sorted into local directories under /home/<user>/mail
As I have slept two or three times since then, it is quite possible that the settings are from YaST2 which I cannot check as YaST2 is currently inoperable :^(.
Hi Is the FQDN in the myhostname variable correct? -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default up 16:59, 3 users, load average: 0.22, 0.15, 0.10 GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Malcolm wrote:
On Mon, 16 Nov 2009 14:37:54 -0500 Patrick Shanahan <paka@opensuse.org> wrote:
* Per Jessen <per@opensuse.org> [11-16-09 13:56]:
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:
Odd :^(.
I have ll.2, but was continually updated/graded from late June and my main.cf has:
14:33 wahoo:~ > grep home_ /etc/postfix/main.cf # The home_mailbox parameter specifies the optional pathname of a #home_mailbox = Mailbox #home_mailbox = Maildir/
And it *was* not my doing. My mail is delivered to /var/mail/<user> by procmail, that which is not sorted into local directories under /home/<user>/mail
As I have slept two or three times since then, it is quite possible that the settings are from YaST2 which I cannot check as YaST2 is currently inoperable :^(.
Hi Is the FQDN in the myhostname variable correct?
On my system it is, but I don't see the significance in this respect? /Per -- Per Jessen, Zürich (8.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 16 Nov 2009 21:07:07 +0100 Per Jessen <per@opensuse.org> wrote:
Malcolm wrote:
On Mon, 16 Nov 2009 14:37:54 -0500 Patrick Shanahan <paka@opensuse.org> wrote:
* Per Jessen <per@opensuse.org> [11-16-09 13:56]:
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:
Odd :^(.
I have ll.2, but was continually updated/graded from late June and my main.cf has:
14:33 wahoo:~ > grep home_ /etc/postfix/main.cf # The home_mailbox parameter specifies the optional pathname of a #home_mailbox = Mailbox #home_mailbox = Maildir/
And it *was* not my doing. My mail is delivered to /var/mail/<user> by procmail, that which is not sorted into local directories under /home/<user>/mail
As I have slept two or three times since then, it is quite possible that the settings are from YaST2 which I cannot check as YaST2 is currently inoperable :^(.
Hi Is the FQDN in the myhostname variable correct?
On my system it is, but I don't see the significance in this respect?
/Per
Hi The OP has been upgrading and it would seem the main.cf has not been touched. If the FQDN has changed at some point it may not have been changed in main.cf. Make sense? -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default up 17:16, 3 users, load average: 0.28, 0.38, 0.28 GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Malcolm wrote:
On Mon, 16 Nov 2009 21:07:07 +0100 Per Jessen <per@opensuse.org> wrote:
Hi Is the FQDN in the myhostname variable correct?
On my system it is, but I don't see the significance in this respect?
/Per
Hi The OP has been upgrading and it would seem the main.cf has not been touched. If the FQDN has changed at some point it may not have been changed in main.cf. Make sense?
Um, not really, no - the FQDN does not affect local mail delivery (which is obviously working, except for the little matter of where the local mailbox/dir is located). The OP (Sascha) has a clean install I think. Patrick's got an upgraded system, but I prefer to leave that aside until we've cleared up why a vanilla 11.2 system has "home_mailbox = Maildir/" ? /Per -- Per Jessen, Zürich (9.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Malcolm <malcolm_lewis@bellsouth.net> [11-16-09 15:03]:
On Mon, 16 Nov 2009 14:37:54 -0500 Patrick Shanahan <paka@opensuse.org> wrote:
14:33 wahoo:~ > grep home_ /etc/postfix/main.cf # The home_mailbox parameter specifies the optional pathname of a #home_mailbox = Mailbox #home_mailbox = Maildir/
And it *was* not my doing. My mail is delivered to /var/mail/<user> by procmail, that which is not sorted into local directories under /home/<user>/mail
As I have slept two or three times since then, it is quite possible that the settings are from YaST2 which I cannot check as YaST2 is currently inoperable :^(.
Hi Is the FQDN in the myhostname variable correct?
yes, it is. I run my own mail server with most relayed thru my provider. -- 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 11/16/2009 07:54 PM, Per Jessen wrote:
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:
I think that is a bug, Maildir should not be the default, IMO. Unless some other default tools are configured to read Maildir by default...
Note - I don't know why "home_mailbox = Maildir/" was used, so commenting it out might well screw up something else.
You should take out the coment in the other line: home_mailbox = Mailbox Or better, for a default system, edit "/etc/sysconfig/postfix", add this line: POSTFIX_ADD_home_mailbox="Mailbox" then run: SuSEconfig --module postfix and postfix will be reconfigured (unless you have manually changed the config). - -- Cheers / Saludos, Carlos E. R. (from 11.2-ex-factory "Emerald" GM) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAksBtOwACgkQU92UU+smfQUcKACfflxGppLcArDWGo3V4GSdLHBG jkEAn2sEupCZJWN+msP3UACWybOwhmJy =aFYp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
Note - I don't know why "home_mailbox = Maildir/" was used, so commenting it out might well screw up something else.
You should take out the coment in the other line:
home_mailbox = Mailbox
Well, that'll just store your mails in a file called /home/user/Mailbox - I dunno if 'mail' looks in that. -- Per Jessen, Zürich (9.0°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 11/16/2009 09:38 PM, Per Jessen wrote:
Carlos E. R. wrote:
Note - I don't know why "home_mailbox = Maildir/" was used, so commenting it out might well screw up something else.
You should take out the coment in the other line:
home_mailbox = Mailbox
Well, that'll just store your mails in a file called /home/user/Mailbox - I dunno if 'mail' looks in that.
Ah? :-? [...] Yes, I think you are right. I don't have that line in my 11.0 config. Ok, POSTFIX_ADD_home_mailbox="" which produces: home_mailbox = and then I used "mail" to send an email to "root", and I got it on "cer", as it should. Nov 16 21:58:18 minas-tirith postfix/local[25441]: DFBA528430: to=<cer@minas-tirith.valinor>, orig_to=<root>, relay=local, delay=0.36, delays=0.26/0.06/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox) - -- Cheers / Saludos, Carlos E. R. (from 11.2-ex-factory "Emerald" GM) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAksBvbgACgkQU92UU+smfQWtWwCffteleE/Z44ZrI2YpzDfQ1GXH RG0AnA9EtScAtVqvzmRXgoCzaD3K9w7P =C2Va -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen skrev:
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@guest50.local.net>, size=464, nrcpt=1 (queue active) Nov 16 19:42:02 guest50 postfix/local[4679]: D990C92CC: to=<per@guest50.local.net>, 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@guest50.local.net> Nov 16 19:43:01 guest50 postfix/qmgr[3121]: CBCA8B050: from=<per@guest50.local.net>, size=464, nrcpt=1 (queue active) Nov 16 19:43:01 guest50 postfix/local[4679]: CBCA8B050: to=<per@guest50.local.net>, 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@guest50.local. 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
Are you sure Per? beata:~ # crontab -e (entry='* * * * * echo test') -bash: syntax error near unexpected token `(' Anders. __________ Information from ESET NOD32 Antivirus, version of virus signature database 4613 (20091116) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Norrbring wrote:
Are you sure Per? beata:~ # crontab -e (entry='* * * * * echo test') -bash: syntax error near unexpected token `('
Hi Anders a) crontab -e b) add a line with "* * * * * echo test" (without the quotes). c) :wq /Per -- Per Jessen, Zürich (6.8°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 11/16/2009 06:50 PM, Per Jessen wrote:
Sascha 'saigkill' Manns wrote:
In 11.1 Cron sends me the complete Output from the Script. But in 11.2 not :-(
I would still expect to see some lines in /var/log/mail - the mail that is being generated by cron, is sent with sendmail, and you should see postfix process it and send it to your local account.
You can adjust /etc/sysconfig/cron: SEND_MAIL_ON_NO_ERROR="no" if you put "yes" it should send an email always. Otherwise, only if there is an error (non zero errorcode output). SYSLOG_ON_NO_ERROR="no" With "yes" it log an entry in messages every time a job runs. - -- Cheers / Saludos, Carlos E. R. (from 11.2-ex-factory "Emerald" GM) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAksBr8oACgkQU92UU+smfQWEIQCfYYKapPaDiE39vU3OBG0sWxXz qqwAmwYwH4rsUReqR6XrNWDMJRcANzQO =Uodt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 16 Nov, 2009 at 08:52:56 +0100, Per Jessen wrote:
Sascha 'saigkill' Manns wrote:
Check your mail log:
/var/log/mail.
I grepped the mail File. But in the whole file doesn't exists an Email from Cron-
No mails were sent from cron means:
a) cron is not running or
b) no cron jobs were scheduled to run or
c) no cron jobs produced any output
d) MAILTO="" Unlikely, since one would usually have to put it in the crontab oneself, but worth mentioning anyways... /jon -- YMMV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Sascha 'saigkill' Manns <samannsml@directbox.com> [11-15-09 14:58]:
i'm using 11.2 and i can't recieve any mails from root or cronjobs.
In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha".
How can i know where are my mails?
Why would root retain mail when you have directed the system to forward root's mail to sascha? Root *should* not have any mail. -- 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
Patrick Shanahan wrote:
* Sascha 'saigkill' Manns <samannsml@directbox.com> [11-15-09 14:58]:
i'm using 11.2 and i can't recieve any mails from root or cronjobs.
In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha".
How can i know where are my mails?
Why would root retain mail when you have directed the system to forward root's mail to sascha? Root *should* not have any mail.
The setup usually copies the mails to a user account, but will also deliver them to root. /Per -- Per Jessen, Zürich (9.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Nov 16, 2009 at 08:53:55AM +0100, Per Jessen wrote:
Patrick Shanahan wrote:
* Sascha 'saigkill' Manns <samannsml@directbox.com> [11-15-09 14:58]:
i'm using 11.2 and i can't recieve any mails from root or cronjobs.
In YaST i have activated: Mail from root forward to sascha (my User) and as Deliverymode "Direct". If i login me as root and try "mail", he says me "No mails for sascha".
How can i know where are my mails?
Why would root retain mail when you have directed the system to forward root's mail to sascha? Root *should* not have any mail.
The setup usually copies the mails to a user account, but will also deliver them to root.
It is simply not this simple. If you ack to send system mail to the first user you added while the installtion an alias is created in /etc/aliases root: sascha BUT you're always able to add additional users to this line. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
Lars Müller wrote:
On Mon, Nov 16, 2009 at 08:53:55AM +0100, Per Jessen wrote:
The setup usually copies the mails to a user account, but will also deliver them to root.
It is simply not this simple.
If you ack to send system mail to the first user you added while the installtion an alias is created in /etc/aliases
root: sascha
Ah, sorry, I thought it was the default to only send a copy to the user and still deliver the mail to root. I guess that's how I always set it up then. /Per -- Per Jessen, Zürich (11.2°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 11/16/2009 12:41 PM, Per Jessen wrote:
Lars Müller wrote:
On Mon, Nov 16, 2009 at 08:53:55AM +0100, Per Jessen wrote:
The setup usually copies the mails to a user account, but will also deliver them to root.
It is simply not this simple.
If you ack to send system mail to the first user you added while the installtion an alias is created in /etc/aliases
root: sascha
Ah, sorry, I thought it was the default to only send a copy to the user and still deliver the mail to root. I guess that's how I always set it up then.
Mail delivery to root does not work in postfix, I don't remember the exact reason, but I think it is because it uses procmail for local delivery. The postfix devs do not trust any external (to them) tool, so they refuse to run procmail as root to send email to root... therefore, mail to root has to be sent instead to a user. It was comented on the list at the time SuSE changed from sendmail to postfix as default tool. - -- Cheers / Saludos, Carlos E. R. (from 11.2-ex-factory "Emerald" GM) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAksBu8sACgkQU92UU+smfQWfCACfeNLvROPTUl+V2nOsHIPJ0pRd 6dwAn0BgvtyLVQwgIJTlM5pWfC8RvHFI =Nx8b -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
Mail delivery to root does not work in postfix, I don't remember the exact reason, but I think it is because it uses procmail for local delivery. The postfix devs do not trust any external (to them) tool, so they refuse to run procmail as root to send email to root... therefore, mail to root has to be sent instead to a user.
Hmm, can't say I've ever encountered that problem. Postfix has no problem running procmail, and I've never had a problem sending mail to root either. I never redirect mail to root to a user when I install, instead I amend the aliases file to send a copy. /Per -- Per Jessen, Zürich (9.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
Carlos E. R. wrote:
Mail delivery to root does not work in postfix, I don't remember the exact reason, but I think it is because it uses procmail for local delivery. The postfix devs do not trust any external (to them) tool, so they refuse to run procmail as root to send email to root... therefore, mail to root has to be sent instead to a user.
Hmm, can't say I've ever encountered that problem. Postfix has no problem running procmail,
And delivery via procmail is not enabled by default either. /Per -- Per Jessen, Zürich (9.4°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 11/16/2009 10:05 PM, Per Jessen wrote:
Per Jessen wrote:
Carlos E. R. wrote:
Mail delivery to root does not work in postfix, I don't remember the exact reason, but I think it is because it uses procmail for local delivery. The postfix devs do not trust any external (to them) tool, so they refuse to run procmail as root to send email to root... therefore, mail to root has to be sent instead to a user.
Hmm, can't say I've ever encountered that problem. Postfix has no problem running procmail,
Except to root.
And delivery via procmail is not enabled by default either.
Right, those people can receive mail on root's account. Look, it is documented: <http://www.postfix.org/faq.html#root> *************** Root's mail is delivered to nobody - ----------------------------------- If you use procmail (or some other command) for local mail delivery, Postfix will not deliver mail as root. Instead, Postfix runs procmail (or whatever) as nobody. Perhaps some day Wietse will trust Postfix enough to run external commands as root. Solution: just like you're not supposed to log in as root (except for unusual conditions), you're not supposed to receive mail as root. * Create a mail alias for root that forwards mail to a real user. /etc/aliases: root: you * Execute the command newaliases whenever you change the alias database. On some systems the alias database is not in /etc/aliases. To find out the location for your system, execute the command postconf alias_maps. *************** - -- Cheers / Saludos, Carlos E. R. (from 11.2-ex-factory "Emerald" GM) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAksBwfcACgkQU92UU+smfQV82QCdGXMOgRtPZ3M3HjYQNjZSy2G+ j7AAn1LZiLNQB4q7Ese1yXQWuNN/OZvZ =/OsW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On 11/16/2009 10:05 PM, Per Jessen wrote:
Per Jessen wrote:
Carlos E. R. wrote:
Mail delivery to root does not work in postfix, I don't remember the exact reason, but I think it is because it uses procmail for local delivery. The postfix devs do not trust any external (to them) tool, so they refuse to run procmail as root to send email to root... therefore, mail to root has to be sent instead to a user.
Hmm, can't say I've ever encountered that problem. Postfix has no problem running procmail,
Except to root.
And delivery via procmail is not enabled by default either.
Right, those people can receive mail on root's account.
Look, it is documented:
Okay, I see. Yes, you're right - nonetheless, an openSUSE vanilla postfix installation does not use procmail for local deliveries, and your assertion that "Mail delivery to root does not work in postfix", is wrong. Here is a bit of my root mailbox: # mail Heirloom mailx version 12.2 01/07/07. Type ? for help. "/var/spool/mail/root": 123 messages 123 new
N 1 root@cadmium.local Sun Jan 11 16:10 21/627 HP Agent Trap Alert N 2 root@cadmium.local Sun Jan 11 16:10 21/647 HP Insight Management Agents Trap Alarm N 3 root@cadmium.local Sun Jan 11 17:44 21/627 HP Agent Trap Alert N 4 root@cadmium.local Fri Jan 16 16:15 21/627 HP Agent Trap Alert N 5 MAILER-DAEMON@cadm Sun Jan 18 01:19 77/2806 Delayed Mail (still being retried) N 6 MAILER-DAEMON@cadm Sun Jan 18 14:16 75/2594 Delayed Mail (still being retried)
/Per -- Per Jessen, Zürich (6.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen wrote:
Carlos E. R. wrote:
Okay, I see. Yes, you're right - nonetheless, an openSUSE vanilla postfix installation does not use procmail for local deliveries, and your assertion that "Mail delivery to root does not work in postfix", is wrong. Here is a bit of my root mailbox:
It does not work when you configure Postfix to deliver mails to your home directory. For that Postfix would need to be able to enter the /root directory, and that would require root rights. Neither will it work with any other delivery agent that will assume the rights of the user to whom mail is delivered. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) drobic (.) de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/17/2009 08:48 AM, Per Jessen wrote:
Carlos E. R. wrote:
Look, it is documented:
Okay, I see. Yes, you're right - nonetheless, an openSUSE vanilla postfix installation does not use procmail for local deliveries, and your assertion that "Mail delivery to root does not work in postfix", is wrong. Here is a bit of my root mailbox:
I said that I was talking from memory, I bumped into the problem long ago O:-) - -- Cheers / Saludos, Carlos E. R. (from 11.2-ex-factory "Emerald" GM) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAksC/vQACgkQU92UU+smfQVJhwCgh0jCOBuSvF3PgMTi9M7uO0fJ uqkAn28YnmSP8XmGfkeVt1Fw3lNIXlE8 =iv6M -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (10)
-
Anders Norrbring
-
Carlos E. R.
-
Carlos E. R.
-
Jon Clausen
-
Lars Müller
-
Malcolm
-
Patrick Shanahan
-
Per Jessen
-
Sandy Drobic
-
Sascha 'saigkill' Manns