The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

rkhunter and email

Discussion in 'E-mail Discussions' started by latpanel, Sep 10, 2004.

  1. latpanel

    latpanel Well-Known Member

    Joined:
    Jan 23, 2004
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    I can't get rkhunter send emails after it make a system scan,
    I've put my email address (out of my server) in the config file, but rkhunter scans the system and ends without any error message, nor any email message.
    I've looked in messages and exim logs, but I can't find anything.

    Any help, please?

    Thanks
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What parameters are you using to run it?
     
  3. latpanel

    latpanel Well-Known Member

    Joined:
    Jan 23, 2004
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    I use the next command

    rkhunter -c --quick --skip-keypress

    I-ve found this in /var/log/maillog
    Sep 10 17:25:57 servername cpanelpop[25167]: Connection from host=127.0.0.1 to ip=127.0.0.1
    Sep 10 17:25:57 servername cpanelpop[25167]: Session Closed host=127.0.0.1 ip=127.0.0.1 user=root realuser= totalxfer=57
    Sep 10 17:25:57 servername imapd[25176]: Logout user=??? domain=??? host=UNKNOWN

    I've installed the same program in another box with the same distro and mail program, and it sends the mail whn scan is finished

    thanks
     
    #3 latpanel, Sep 10, 2004
    Last edited: Sep 10, 2004
  4. latpanel

    latpanel Well-Known Member

    Joined:
    Jan 23, 2004
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    rkhunter mail ----> Fixed !!!

    Well, I think I was too impatient or I don't lnow how CPanel works !!!!

    Today I've see two email from rkhunter. One form cron.daily and one from my own crontab
    I've changed the way I use rkhunter to

    rkhunter -c --cronjob
    And walah: rkhunter sends mails!!

    (But in my other box rkhunter sends mails without the --cronjob option and without a mail pipe)


    I've found that rkhunter installed its cron in cron.daily

    ( By the way, how can I set the time when cpanel runs cron.daily? )


    Well, my problem is fixed and I hope that it help to other webmasters.

    Thanks
    Bye
     
  5. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    /etc/crontab
     
  6. latpanel

    latpanel Well-Known Member

    Joined:
    Jan 23, 2004
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    Thanks

    Oh!, I must be fool !!!
    Thanks
     
Loading...

Share This Page