Intermittent email connection problems after renaming server

Discussion in 'ISPConfig 3 Priority Support' started by I90cj7, Aug 18, 2018.

  1. I90cj7

    I90cj7 New Member

    Hello,
    My fictitious server name (fooallinoneserver.com) was being blocked so I renamed my ispconfig3 server by changing the following to server1.helpdeskishere.com:
    /etc/hostname
    /etc/hosts
    /etc/mailname
    /etc/postfix/main.cf

    then run:

    /etc/init.d/hostname restart
    /etc/init.d/postfix restart

    Since then sometimes my email client reports, "connection error" and "failed downloading message" and it may take up to 30 minutes to receive an email. Additionally in the message headers I can see a domain name listed of a domain that I am hosting, "inventthewheel.com"
    X-Apparently-To: [email protected]; Sat, 18 Aug 2018 17:53:07 +0000
    Return-Path: <[email protected]>
    Received-SPF: none (domain of thebrightideas.com does not designate permitted sender hosts)
    X-YMailISG: YgZxvZ4WLDukg1YuzzxUDH6OVnqheysFBh.clOdD.7hT9u2R
    BnWuXkKfkE2kOb70kqVRi2yu3y9Tf1drxiJzN.MdRHVLW7sJqMt23SIlvmFN
    .ci60nTIRoH1KFnj_T8yU6WUwvF5OG7o6bWcxg4dMxCmEgju7qrUN6rybd6_
    Ia20ljxgcvJDT2u_s3a7xgeV_47YlDPyq0lBowCrZTV02ii4yZUCdPas9DTG
    1yrOsfy5PzQzm5MvU_aAJub9FZL9tuQegsLHDPexV4021U6r8Chgh4fEEMly
    T.KOICBnsjecnFZ7bA8IZAHLleqRPDZeCgEhurvStkVujlbeFEFMCAZpMvC.
    kgN17kkquUT045DvB88iPQHbOY84wsa9wzwS6GE04onn6DxMxBR1Zh764Qqo
    ZWZM0LiA6eZ.fkCG2RrZkCTk.8TEjsuPHHcRqQHOlsXnJko2DAzlPKbcduqS
    Ob46rQxtjd1oTMIUt.cyjUZixoBeTHiZt8MWf2I.DEg8JIQNQuD59nxzr33Y
    5_iNhaf5SeKO9iGE4QxmZST0yKUJDSibErtyUno379PqebCtm1VXp7rZ9gUa
    gdjLA3SqaWl5qXy0VW60f1aX9IIUZ_C9l0MJd8XT.ECZhUzhbI27K0oUYANJ
    XmahJjF2jnNgiqp3Bav65f.zggOu9tiXrh_HhJo9BM14tq54oYFuwJLbEoXV
    cuj7Ud8QelPPS3c4yybYZUsNhf61qPoAwTb52sIvizI0LA8ozYdIE6Hc.UfS
    di.j_fCf7SBVmuER0os24x.EysA9xAjKTOlk7agLbRgOrlxXYQxv.GZXdqxG
    OLxmw_BsDMOdn8Ff3tU6_YDqnQPGHatE5D4BLDGOw7VAcANJqRCHf1s_p5h6
    ts8cfAl2TFcskkVYzVPnrkEPgBy2xjuNtQDzDvtICDNg3tR6KJz6SbkqxU5d
    Z51elzQQM6obNh43971oQGOE3f1q1vbkF00BiTp26PhRmjn.VxI.UsYKjU23
    YfAflG0_t5Qbbft4hMZsxdqvXWbQGw0szwFoVvWgHvSzlA--
    X-Originating-IP: [24.213.239.30]
    Authentication-Results: mta4150.mail.bf1.yahoo.com from=thebrightideas.com; domainkeys=neutral (no sig); from=thebrightideas.com; dkim=neutral (no sig)
    Received: from 127.0.0.1 (EHLO server1.helpdeskishere.com) (24.213.239.30)
    by mta4150.mail.bf1.yahoo.com with SMTPS; Sat, 18 Aug 2018 17:53:06 +0000
    Received: from localhost (localhost [127.0.0.1])
    by server1.helpdeskishere.com (Postfix) with ESMTP id 260D6223067
    for <[email protected]>; Sat, 18 Aug 2018 13:53:06 -0400 (EDT)
    X-Virus-Scanned: Debian amavisd-new at server1.helpdeskishere.com
    Received: from server1.helpdeskishere.com ([127.0.0.1])
    by localhost (server1.mail.inventthewheel.com [127.0.0.1]) (amavisd-new, port 10026)
    with ESMTP id 121Rs7-l4NlD for <[email protected]>;
    Sat, 18 Aug 2018 13:53:05 -0400 (EDT)
    Received: from TBIlaptop (unknown [192.168.0.91])
    (Authenticated sender: [email protected])
    by server1.helpdeskishere.com (Postfix) with ESMTPA id B7D53221D24
    for <[email protected]>; Sat, 18 Aug 2018 13:53:05 -0400 (EDT)
    From: "Victorian Doucette" <[email protected]>
    To: <[email protected]>
    Subject: headers
    Date: Sat, 18 Aug 2018 13:53:03 -040
     
  2. I90cj7

    I90cj7 New Member

    To hopefully make my post clearer.
    I sent the test message above from my ISPConfig3 hosted domain (thebrightideas.com) on the server that was renamed (Server1.Helpdeskishere.com) to my yahoo account.
    In the headers it mentions that the message is received from another hosted domain's (inventthewheel.com) email host on the renamed server in addition to the renamed server (server1.helpdeskishere.com). The other domain that should not be appearing (inventthewheel.com) is taking the new host name (server1) and adding its mail host name (mail.inventthewheel.com). Since I am not sending email from (inventthewheel.com), maybe the Postfix main.cf is not correct. However, the server name was never Server1.Mail.Inventthewheel.com so I am lost. Please help. Hopefully this is more clear than mud. Thanks
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    When you rename a mail server, then the name has to be changed in these files:

    /etc/postfix/main.cf
    /etc/mailname
    /etc/hostname
    /etc/hosts

    Then you will have to adjust the reverse DNS record of the server IP and finally reboot the server.
     
  4. I90cj7

    I90cj7 New Member

    Thanks for the reply Till. I changed those files when I did the rename. Is there something else to check?

    Why would the wrong mail server name show up in message headers?
    Received: from server1.helpdeskishere.com ([127.0.0.1]) (THIS IS THE MAIL SERVER)
    by localhost (server1.mail.inventthewheel.com [127.0.0.1] (THIS IS A HOSTED DOMAIN)
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    You can search for the old name with:

    grep -r server1.helpdeskishere.com /etc/

    files with ~ at the end can be ignored, they are backups of config files.
     
  6. I90cj7

    I90cj7 New Member

    Thanks Till. I found the reference in /etc/amavis/conf.d/05-node_id and changed it.
    I didn't have reverse dns setup before with a totally fake/unregistered domain name of "fooallinoneserver.com" and mail for all hosted accounts was delivered in seconds.
    On the day that I renamed the host to a registered/unhosted domain, the email is 5-30min to deliver and sometimes the client connection is refused.
    My firewall rules aren't stopping pop3, imap or smtp to the server address.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    DNS is really setup properly for the domain and you might want to take a look into the mail.log if there are any further errors.
     

Share This Page