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.

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

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

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    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:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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}"
    
    
     

Share This Page