Undelivered Mail Returned to Sender

Discussion in 'General' started by sistematico, Jul 26, 2014.

  1. sistematico

    sistematico New Member

    Im receiving this e-mail:
    This is the mail system at host host1.
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    For further assistance, please send mail to postmaster.
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
                       The mail system
    <[email protected]>: mail for localhost.host2 loops back to
    Reporting-MTA: dns; host1
    X-Postfix-Queue-ID: C70E8214B7
    X-Postfix-Sender: rfc822; root@host2
    Arrival-Date: Sat, 26 Jul 2014 05:46:33 -0400 (EDT)
    Final-Recipient: rfc822; [email protected]
    Original-Recipient: rfc822;root@localhost
    Action: failed
    Status: 5.4.6
    Diagnostic-Code: X-Postfix; mail for localhost.host2 loops back to
    rkhunter Daily Run on host1.eml
    rkhunter Daily Run on host1
    root@host2 (root)
    26-07-2014 05:45
    [email protected]
    --------------------- Start Rootkit Hunter Update ---------------------
    [ Rootkit Hunter version 1.4.2 ]
    Checking rkhunter data files...
      Checking file mirrors.dat                                  [ No update ]
      Checking file programs_bad.dat                             [ No update ]
      Checking file backdoorports.dat                            [ No update ]
      Checking file suspscan.dat                                 [ No update ]
      Checking file i18n/cn                                      [ No update ]
      Checking file i18n/de                                      [ No update ]
      Checking file i18n/en                                      [ No update ]
      Checking file i18n/tr                                      [ No update ]
      Checking file i18n/tr.utf8                                 [ No update ]
      Checking file i18n/zh                                      [ No update ]
      Checking file i18n/zh.utf8                                 [ No update ]
    ---------------------- Start Rootkit Hunter Scan ----------------------
    Warning: The file properties have changed:
             File: /usr/bin/chattr
             Current inode: 1919424    Stored inode: 1835127
    Warning: The file properties have changed:
             File: /usr/bin/lsattr
             Current inode: 1835127    Stored inode: 1835386
    ----------------------- End Rootkit Hunter Scan -----------------------
    host1 is domain with ISPConfig 3 and MX for host1 and host2
    host2 is pointing to other machine on DNS of host1

    How to fix this?

  2. webrunner

    webrunner New Member

    Choose your editor
    # nano /etc/sysconfig/rkhunter
    # vi /etc/sysconfig/rkhunter
    # vim /etc/sysconfig/rkhunter

    #nano /etc/cron.daily/rkhunter
    #vi /etc/cron.daily/rkhunter
    #vim /etc/cron.daily/rkhunter

    Change e-mail address to existing one. Save file and close.

    Advise: Please remember that rkhunter will try to send e-mail via mailx as root@hostname
    Type hostname in terminal and you will see your hostname.
    example: root@localhost or root@mail dot example dot com
    So, just set an alias for root as I did in my postfix+dovecot configuration and all e-mails sent from and to root@localhost are forwarded to a real e-mail address.
    Last edited: Oct 30, 2019
  3. Steini86

    Steini86 Active Member

    Hopefully, after 5 years, that problem is already solved ;-)
    webrunner likes this.
  4. webrunner

    webrunner New Member

    I just decided to answer it, because this post is on a first place in Google, when someone is looking for the solution to find out how to solve the problem. Have no idea why it was ignored so long. :) Anyway I hope it will be usefull for others. And just because I have my own website where I learn how to make first step in Linux I try to help if I can.

Share This Page