[Bug 366762] New: cron ignores postfix environmental settings
https://bugzilla.novell.com/show_bug.cgi?id=366762 Summary: cron ignores postfix environmental settings Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: support@microtechniques.com QAContact: qa@suse.de Found By: Customer Security check jobs run by security-control.sh search for and prioritize which mail client that they use and use the environment variables specified in sysconfig/security (see tests around line 41) run-crons only uses the mail command, and does not export any of the mail related environmental settings (see line 224). As a result, an installation running multiple postfix instances with separate mail stores does not receive any mail from cron jobs, and you get syslog errors about a missing /var/spool/postfix/maildrop. 1)run-crons and security-control.sh should use the same means for selecting the mail system. 2)run-crons should export environment variables such as MAIL_CONFIG when specified in a crontab. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |mkoenig@novell.com -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 User support@microtechniques.com added comment https://bugzilla.novell.com/show_bug.cgi?id=366762#c1 --- Comment #1 from Don Hughes <support@microtechniques.com> 2008-08-16 05:32:16 MDT --- Still a problem in SuSE 11.0 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 User support@microtechniques.com added comment https://bugzilla.novell.com/show_bug.cgi?id=366762#c2 --- Comment #2 from Don Hughes <support@microtechniques.com> 2008-09-09 10:50:58 MDT --- In order to receive mail from cron entries in my systems running multiple postfix instances, I modified /usr/lib/cron/run-crons, /usr/lib/secceck/security-control.sh and /etc/sysconfig/cron. I have attached diff files. I would have rather been able to pick up MAIL_CONFIG information from the crontab file which was sufficient for most cron jobs, but could not get that to work for informational e-mails, and security jobs; and I ended up also adding the information to /etc/sysconfig/cron. It was also needed in /etc/sysconfig/secceck, but I did not want to add it in yet another place, so I changed security-control.sh to also run /etc/sysconfig/cron. I am sure that there is a more general way to implement this, but this works for me. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 User support@microtechniques.com added comment https://bugzilla.novell.com/show_bug.cgi?id=366762#c3 --- Comment #3 from Don Hughes <support@microtechniques.com> 2008-09-09 10:52:24 MDT --- Created an attachment (id=238607) --> (https://bugzilla.novell.com/attachment.cgi?id=238607) run-crons.diff -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 User support@microtechniques.com added comment https://bugzilla.novell.com/show_bug.cgi?id=366762#c4 --- Comment #4 from Don Hughes <support@microtechniques.com> 2008-09-09 10:52:50 MDT --- Created an attachment (id=238608) --> (https://bugzilla.novell.com/attachment.cgi?id=238608) security-control.diff -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 User support@microtechniques.com added comment https://bugzilla.novell.com/show_bug.cgi?id=366762#c5 --- Comment #5 from Don Hughes <support@microtechniques.com> 2008-09-09 10:53:11 MDT --- Created an attachment (id=238609) --> (https://bugzilla.novell.com/attachment.cgi?id=238609) cron.diff -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=366762 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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.
participants (1)
-
bugzilla_noreply@novell.com