Cron notifications in messages screen

General eFa discussion
Post Reply
yuljk
Posts: 15
Joined: 07 Sep 2014 15:29

Cron notifications in messages screen

Post 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
issue.png (14.92 KiB) Viewed 9229 times
yuljk
Posts: 15
Joined: 07 Sep 2014 15:29

Re: Cron notifications in messages screen

Post by yuljk »

Any ideas guys?..
DaN
Posts: 240
Joined: 19 Nov 2014 10:04
Location: Earth

Re: Cron notifications in messages screen

Post by DaN »

Whats in that mails?
1.JPG
1.JPG (16.78 KiB) Viewed 9223 times
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Cron notifications in messages screen

Post 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.
yuljk
Posts: 15
Joined: 07 Sep 2014 15:29

Re: Cron notifications in messages screen

Post 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
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Cron notifications in messages screen

Post by pdwalker »

Is @domain.com one of the domains served by your EFA box?
yuljk
Posts: 15
Joined: 07 Sep 2014 15:29

Re: Cron notifications in messages screen

Post by yuljk »

Yep
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Cron notifications in messages screen

Post by pdwalker »

Trying to reproduce the problem...
yuljk
Posts: 15
Joined: 07 Sep 2014 15:29

Re: Cron notifications in messages screen

Post by yuljk »

Many thanks :)

Here's an example of the message headers (sender being root@mydomain.com)
Attachments
issue2.png
issue2.png (45.65 KiB) Viewed 9205 times
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Cron notifications in messages screen

Post 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.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Cron notifications in messages screen

Post 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
yuljk
Posts: 15
Joined: 07 Sep 2014 15:29

Re: Cron notifications in messages screen

Post by yuljk »

DaN wrote:See also viewtopic.php?t=1602
Excellent find DaN - That has done the trick.

Many thanks guys :)
Post Reply