[Bug 557492] New: no more cron mail on no error after upgrade to 11.2
http://bugzilla.novell.com/show_bug.cgi?id=557492 http://bugzilla.novell.com/show_bug.cgi?id=557492#c0 Summary: no more cron mail on no error after upgrade to 11.2 Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i686 OS/Version: openSUSE 11.2 Status: NEW Severity: Critical Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: antoine.mechelynck@belgacom.net QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6pre) Gecko/20091119 SeaMonkey/2.0.1pre No more cron mail on no error after upgrade to 11.2 Reproducible: Always Steps to Reproduce: 1. Make sure you have a shell script under /etc/cron.daily/ with "execute" permission set, and which always writes on stdout. 2. Make sure that /var/spool/mail/root exists. If it doesn't, create it as a zero-length file. 3. Set "Yast => System => /etc/sysconfig editor => System => Cron => SEND_MAIL_ON_NO_ERROR" to yes Actual Results: No mail from cron to root Expected Results: Daily mail from cron to root with (at least) the output from the scxript mentioned at step 1 above. I got this daily email before I upgraded from openSUSE 11.1 to 11.2 final on 2009-11-13. Additional info: After upgrade to 11.2, /var/spool/mail/root has permission bits -rw------. I thought this file box was world-writable (and ISTR that I had created it so under 11.1). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c
Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c1
--- Comment #1 from Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c2
--- Comment #2 from Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c3
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c4
Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c5
--- Comment #5 from Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c6
--- Comment #6 from Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c7
Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c8
--- Comment #8 from Tony Mechelynck
Tony: try to start postfix : /etc/init.d/postfix start
Peter: this looks like a postfix problem, could be related to bnc#552270, check Comment 4
In "YaST => System => System services (Runlevel)" (Expert mode), service "postfix" has "Yes 3 5". I didn't change it. In a root console: "rcpostfix status" answers: Checking for service Postfix: running Nevertheless, I've done "rcpostfix restart" with the following result: Shutting down mail service (Postfix) done Starting mail service (Postfix) done "ps -lC postfix" still lists no processes. Could the postfix service have a different process name? We'll see after cron-daily runs (which happens every night shortly after midnight UTC) whether I get any mail, but my expectations aren't high. (Note: /sbin/rcpostfix is a softlink to /etc/init.d/postfix). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c9
Mark Gray
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c10
--- Comment #10 from Tony Mechelynck
Do you have a directory /root/Maildir ? If so, look for your mail in the directory: /root/Maildir/new/
(I just tracked down where postfix was stuffing MY mail. Apparently procmail used to be the default which sticks mail in /var/spool/mail/${USER}, but now direct delivery goes to ${HOME}/Maildir/* ala qmail)
Being logged in as root: # ls -l ~/Maildir ls: cannot access /root/Maildir: No such file or directory BTW, I have SeaMonkey configured to retrieve Movemail mail out of a mailbox file named (I'm not sure which) /var/mail/root or /var/spool/mail/root. I don't see that file name anywhere in the program's settings however, so I wouldn't know how to change it. Couldn't I get it back the way it used to be? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c11
--- Comment #11 from Mark Gray
Being logged in as root: # ls -l ~/Maildir ls: cannot access /root/Maildir: No such file or directory
It could be that during some installation (if not this latest upgrade) you checked the "Receive System Mail" check box when creating a user, in which case the mail would have been delivered as individual files to the directory ${HOME}/Maildir/new/
Couldn't I get it back the way it used to be?
I took the lazy path and using yast I selected under "Delivery Mode" -> "Through Procmail". This used to be the default. When you have no ${HOME}/.procmailrc procmail delivers to /var/spool/mail/${USER} ( /var/mail/ is a symlink to /var/spool/mail/ BTW,) The hard way would be to hand modify /etc/postfix/main.cf in order to deliver mail in unix mailbox format to /var/mail/${USER}, but procmail does everything you want for you, and if you wanted to, you could write a ${HOME}/.procmailrc to sort the mail for you. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c12
--- Comment #12 from Tony Mechelynck
(In reply to comment #10)
Couldn't I get it back the way it used to be?
I took the lazy path and using yast I selected under "Delivery Mode" -> "Through Procmail". This used to be the default. When you have no ${HOME}/.procmailrc procmail delivers to /var/spool/mail/${USER} ( /var/mail/ is a symlink to /var/spool/mail/ BTW,)
Where in YaST? Under "Network Services => Mail Server", if I select "Standard" configuration my only choice is Permanent/Dialup/No connection, and if I choose "Advanced" configuration it wants me to set up LDAP. In neither case do I get this "Delivery mode" option. So it must be some other YaST menu, but there are so many I'm stumped. Ah... maybe I found it "System => etc/sysconfig editor => Network => Mail => Postfix => POSTFIX_MDA". Current value was "local". I suppose "procmail" is what I want. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c13
--- Comment #13 from Mark Gray
Where in YaST? Under "Network Services => Mail Server", if I select "Standard" configuration my only choice is Permanent/Dialup/No connection
Once I selected "Permanent" it took me to the dialog I referred to ... but
Ah... maybe I found it "System => etc/sysconfig editor => Network => Mail => Postfix => POSTFIX_MDA". Current value was "local". I suppose "procmail" is what I want.
That is the value that yast2 set for me in /etc/sysconfig/postfix so that is almost certainly the place to change it "behind yast2's back". Be sure to run SuSEconfig after changing it if the etc/sysconfig editor does not run it for you. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c14
--- Comment #14 from Tony Mechelynck
That is the value that yast2 set for me in /etc/sysconfig/postfix so that is almost certainly the place to change it "behind yast2's back". Be sure to run SuSEconfig after changing it if the etc/sysconfig editor does not run it for you.
The /etc/sysconfig editor is part of YaST. I thought it had run SuSEconfig but maybe it hadn't -- here are the results of running it by hand (I notice "Reading /etc/sysconfig and updating the system", and lower down "Setting up procmail as MDA"). We'll see (after cron-daily runs -- it should finish before 01:00 UTC) whether I get cron mail now. Starting SuSEconfig, the SuSE Configuration Tool... Running in full featured mode. Reading /etc/sysconfig and updating the system... Executing /sbin/conf.d/SuSEconfig.desktop-file-utils... Could not parse file '/opt/kde3/share/applications/kde/AdobeReader.desktop': No such file or directory Executing /sbin/conf.d/SuSEconfig.fonts... Configure X11 to use available CID-keyed fonts ... Creating fonts.{scale,dir} files ....................... /etc/fonts/suse-font-dirs.conf unchanged /etc/fonts/suse-hinting.conf unchanged /etc/fonts/suse-bitmaps.conf unchanged Creating cache files for fontconfig ............................................................................ generating java font setup writing /usr/lib/jvm/java-1.5.0-sun-1.5.0/jre/lib/fontconfig.SuSE.properties Executing /sbin/conf.d/SuSEconfig.gdm... Executing /sbin/conf.d/SuSEconfig.ghostscript-cjk... Executing /sbin/conf.d/SuSEconfig.glib2... Executing /sbin/conf.d/SuSEconfig.groff... Executing /sbin/conf.d/SuSEconfig.gtk2... Executing /sbin/conf.d/SuSEconfig.isdn... Modify isdn.conf provider provider0 done Executing /sbin/conf.d/SuSEconfig.ispell... Executing /sbin/conf.d/SuSEconfig.permissions... Executing /sbin/conf.d/SuSEconfig.postfix... Setting up procmail as MDA... Setting SPAM protection to "off"... Executing /sbin/conf.d/SuSEconfig.scim... Executing /sbin/conf.d/SuSEconfig.scpm... Executing /sbin/conf.d/SuSEconfig.texlive... Executing /sbin/conf.d/SuSEconfig.words... Executing /sbin/conf.d/SuSEconfig.xjdic... no index generating program found. Finished. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c15
--- Comment #15 from Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c16
Peter Varkoly
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c17
--- Comment #17 from Tony Mechelynck
It seems the relayr.db file was not created. Please create it manually:
touch /etc/postfix/relay postmap /etc/postfix/relay
And restart postfix
/etc/postfix/relay existed with the following contents (2 lines, 37 bytes): # for relaying domain # domain.de OK so I did the following with the following results: # cp -vf /dev/null/ /etc/postfix/relay `/dev/null' -> `/etc/postfix/relay' # postmap /etc/postfix/relay # rcpostfix restart Shutting down mail service (Postfix) done Starting mail service (Postfix) done (If I did wrong, please tell me.) However, cron-daily ran a few minutes ago, so I'll have to wait for about 24 hours to know if it cured my problem. I'll report tomorrow and _then_ remove the NEEDINFO flag. (Note: the postmap step added nothing to /etc/postfix/relay which is now a zero-length file.) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c18
--- Comment #18 from Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c19
Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c20
Peter Varkoly
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c21
Tony Mechelynck
(Note: the postmap step added nothing to /etc/postfix/relay which is now a zero-length file.) postmap /etc/postfix/relay have to create db file: /etc/postfix/relay.db and must not make anything with /etc/postfix/relay.
ah, I see. /etc/postfix/relay.db date 2009-12-01 size 12288
please attach /var/log/mail from last 3 day
done -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c22
Peter Varkoly
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c23
Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c24
Peter Varkoly
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c25
--- Comment #25 from Tony Mechelynck
1. No you do not need LDAP-Server. 2. I do not known how you have configured your server and why did you select LDAP.
AFAIK, I did not select LDAP. If I did, it was unwittingly.
3. You have to configure your mail system with yast2 mail in standard mode. Enhanced mode requires LDAP server.
Mail server in yast2 was already configured with "standard mode" and "no connection". Under "LDAP Client" in yast2 there was "Use LDAP but disable logins". I have now selected "Do not use LDAP". We'll see tonight if it makes a difference.
4. Remove from your /etc/postfix/main.cf the line: home_mailbox = Maildir/ if exists.
Searching /etc/postfix/main.cf for the string home_mailbox yields exactly three lines (410, 415, 416), all beginning with the character # -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c26
Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c27
--- Comment #27 from Tony Mechelynck
http://bugzilla.novell.com/show_bug.cgi?id=557492
http://bugzilla.novell.com/show_bug.cgi?id=557492#c28
Peter Varkoly
participants (1)
-
bugzilla_noreply@novell.com