Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 08:40:10

Author Topic: Getting cron.daily failure mails daily  (Read 6415 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Getting cron.daily failure mails daily
« Reply #15 on: 2017-08-20, 20:25:41 »
It's weird. Because then same command in my servers appear:
Code: [Select]
> sh -x /etc/cron.daily/spamdyke
+ /usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +10080 -size 0 -exec rm -f '{}' ';'
+ '[' -f /usr/bin/bc ']'
++ grep graylist-max-secs /etc/spamdyke.conf
++ cut -d = -f 2
+ GRAYLIST_MAX_SECS=1814400
++ echo 'scale=0 ; 1814400 / 60'
++ bc -l
+ GRAYLIST_MAX_SECS=30240
+ /usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +30240 -exec rm -f '{}' ';'

Inform here 'uname -r'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rsakhale

  • Valuable Member
  • *
  • Posts: 103
  • Karma: +1/-0
  • Gender: Male
  • Rohan Sakhale
    • View Profile
    • Rohan Rajan Sangita Sakhale
Re: Getting cron.daily failure mails daily
« Reply #16 on: 2017-08-20, 20:27:45 »
uname -r
Code: [Select]
2.6.32-642.15.1.el6.x86_64

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Getting cron.daily failure mails daily
« Reply #17 on: 2017-08-20, 21:49:38 »
Edit /etc/spamdyke.conf via 'file manager' in panel with add '# only add comment'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rsakhale

  • Valuable Member
  • *
  • Posts: 103
  • Karma: +1/-0
  • Gender: Male
  • Rohan Sakhale
    • View Profile
    • Rohan Rajan Sangita Sakhale
Re: Getting cron.daily failure mails daily
« Reply #18 on: 2017-08-21, 03:57:20 »
After adding the above comment line, error still exists

Code: [Select]
/usr/bin/find: invalid argument `-exec' to `-mmin'

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Getting cron.daily failure mails daily
« Reply #19 on: 2017-08-21, 04:13:59 »
Ok, give me your ssh access.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rsakhale

  • Valuable Member
  • *
  • Posts: 103
  • Karma: +1/-0
  • Gender: Male
  • Rohan Sakhale
    • View Profile
    • Rohan Rajan Sangita Sakhale
Re: Getting cron.daily failure mails daily
« Reply #20 on: 2017-08-22, 17:51:36 »
Will share you over PM

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Getting cron.daily failure mails daily
« Reply #21 on: 2017-08-22, 18:16:42 »
Something wrong with /etc/cron.daily/spamdyke.

In your server:
Code: [Select]
#!/bin/sh

# Delete empty files (older than one week)
/usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +10080 -size 0 -exec rm -f {} ;

if [ -f /usr/bin/bc ] ; then
        # If installed, it can automatically be determined
        #GRAYLIST_MAX_SECS=$(grep 'graylist-max-secs' /etc/spamdyke.conf)
        GRAYLIST_MAX_SECS=$(grep 'graylist-max-secs' /etc/spamdyke.conf | cut -d = -f 2)
        GRAYLIST_MAX_SECS=$(echo "scale=0 ; $GRAYLIST_MAX_SECS / 60" | bc -l)
else
        # Note: should work with graylist-max-secs / 60 / etc / spamdyke.conf identical
        # older than 30240 minutes (= 3 weeks)
        GRAYLIST_MAX_SECS=30240
fi
# Delete outdated posts
/usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +$GRAYLIST_MAX_SECS -exec rm -f {} ;


In my server:
Code: [Select]
#!/bin/sh

# Delete empty files (older than one week)
/usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +10080 -size 0 -exec rm -f {} \;

if [ -f /usr/bin/bc ] ; then
        # If installed, it can automatically be determined
        GRAYLIST_MAX_SECS=$(grep 'graylist-max-secs' /etc/spamdyke.conf | cut -d = -f 2)
        GRAYLIST_MAX_SECS=$(echo "scale=0 ; $GRAYLIST_MAX_SECS / 60" | bc -l)
else
        # Note: should work with graylist-max-secs / 60 / etc / spamdyke.conf identical
        # older than 30240 minutes (= 3 weeks)
        GRAYLIST_MAX_SECS=30240
fi
# Delete outdated posts
/usr/bin/find /var/qmail/spamdyke/greylist/ -type f -mmin +$GRAYLIST_MAX_SECS -exec rm -f {} \;

So, different is ';' versus '\;'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.063 seconds with 18 queries.

web stats analysis