Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How can I get rootkit hunter to email me the results?

Discussion in 'E-mail Discussion' started by BianchiDude, Apr 4, 2008.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    I am trying to secure my cpanel server.

    How can I get rootkit hunter to email me the results?

    I tried
    MAILTO=me@mydomain
    0 0 * * * /root/rkhunter-1.3.2/files/rkhunter --cronjob
    and
    MAILTO=me@mydomain 0 0 * * * /root/rkhunter-1.3.2/files/rkhunter --cronjob

    But it is not sending the email, nothing even show up in my exim_mainlog.

    Thanks in advance.
     
  2. John W

    John W Member

    Joined:
    Aug 24, 2007
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    Orlando
    Mine works with
    MAILTO=root


    but RKH has a place for this in the config file and it works
    Code:
    #
    # Email a message to this address if a warning is found when the
    # system is being checked. Multiple addresses may be specified
    # simply be separating them with a space. Setting this option to
    # null disables the option.
    #
    # NOTE: This option should be present in the configuration file.
    #
    #MAIL-ON-WARNING=me@mydomain   root@mydomain
    MAIL-ON-WARNING=""
    
    #
    # Specify the mail command to use if MAIL-ON-WARNING is set.
    # NOTE: Double quotes are not required around the command, but
    # are required around the subject line if it contains spaces.
    #
    MAIL_CMD=mail -s "[rkhunter] Warnings found for ${HOST_NAME}"
    
    
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice