Page 1 of 1
Cron notifications in messages screen
Posted: 23 May 2016 07:31
by yuljk
Hi guys - Noticed after upgrading to 3.0.1.0 my messages log is showing
Cron <root@filter> run-parts /etc/cron.hourly
Is there any way of hiding these notifications? - They are a tad intrusive!
Many thanks

- issue.png (14.92 KiB) Viewed 11526 times
Re: Cron notifications in messages screen
Posted: 24 May 2016 22:22
by yuljk
Any ideas guys?..
Re: Cron notifications in messages screen
Posted: 25 May 2016 06:32
by DaN
Whats in that mails?

- 1.JPG (16.78 KiB) Viewed 11520 times
Re: Cron notifications in messages screen
Posted: 25 May 2016 08:31
by pdwalker
Can you tell me the contents of the following files:
- /etc/cron.d/0hourly
- /etc/aliases
I think I know what your problem is, and that information will confirm it.
Re: Cron notifications in messages screen
Posted: 25 May 2016 18:15
by yuljk
Contents of /etc/cron.d/0hourly
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
01 * * * * root run-parts /etc/cron.hourly
and /etc/aliases
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>> The program "newaliases" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> show through to sendmail.
#
# Basic system aliases -- these MUST be present.
mailer-daemon: postmaster
postmaster: root
# General redirections for pseudo accounts.
bin: root
daemon: root
adm: root
lp: root
sync: root
shutdown: root
halt: root
mail: root
news: root
uucp: root
operator: root
games: root
gopher: root
ftp: root
nobody: root
radiusd: root
nut: root
dbus: root
vcsa: root
canna: root
wnn: root
rpm: root
nscd: root
pcap: root
apache: root
webalizer: root
dovecot: root
fax: root
quagga: root
radvd: root
pvm: root
amanda: root
privoxy: root
ident: root
named: root
xfs: root
gdm: root
mailnull: root
postgres: root
sshd: root
smmsp: root
postfix: root
netdump: root
ldap: root
squid: root
ntp: root
mysql: root
desktop: root
rpcuser: root
rpc: root
nfsnobody: root
ingres: root
system: root
toor: root
manager: root
dumper: root
abuse: root
newsadm: news
newsadmin: news
usenet: news
ftpadm: ftp
ftpadmin: ftp
ftp-adm: ftp
ftp-admin: ftp
www: webmaster
webmaster: root
noc: root
security: root
hostmaster: root
info: postmaster
marketing: postmaster
sales: postmaster
support: postmaster
# trap decode to catch security attacks
decode: root
# Person who should get root's mail
#root: marc
root:
myemailaddress@domain.com
Edited my email address at the end.
Many thanks
Re: Cron notifications in messages screen
Posted: 26 May 2016 05:11
by pdwalker
Is @domain.com one of the domains served by your EFA box?
Re: Cron notifications in messages screen
Posted: 26 May 2016 07:46
by yuljk
Yep
Re: Cron notifications in messages screen
Posted: 26 May 2016 13:13
by pdwalker
Trying to reproduce the problem...
Re: Cron notifications in messages screen
Posted: 26 May 2016 20:35
by yuljk
Many thanks
Here's an example of the message headers (sender being
root@mydomain.com)
Re: Cron notifications in messages screen
Posted: 27 May 2016 08:02
by pdwalker
oops.
I just noticed that I'm getting those messages to after upgrading. I didn't noticed until I actually looked.
The message is generated by the hourly cron job to show the results.
Looking at the message, I've got the following content:
Code: Select all
Notice: Constant SHOW_GREYLIST already defined in
/var/www/html/mailscanner/conf.php on line 251
that looks suspicious
editing that file shows that yes, that variable is define twice. I'm going to delete one of them - the last one in the file.
Now that I have done so, I'll see if the messages show up again in an hour.
Re: Cron notifications in messages screen
Posted: 27 May 2016 08:44
by DaN
Re: Cron notifications in messages screen
Posted: 27 May 2016 09:22
by pdwalker
Ha! Thanks DaN,
That is indeed the fix. It's been over an hour and the message hasn't returned.
The lesson here is: if you are getting these cron messages, pay attention to them.
- Paul
Re: Cron notifications in messages screen
Posted: 27 May 2016 17:33
by yuljk
Excellent find DaN - That has done the trick.
Many thanks guys
