Changing mail server name

Discussion in 'Installation/Configuration' started by tristanlee85, Apr 3, 2008.

  1. tristanlee85

    tristanlee85 New Member

    I recently changed my nameservers, but when I run a diagnostic tool on my mail server, it still shows my old hostname and no mail is being delivered.

    I am running FC7 and Postfix. I've look in the main.cf file and I don't see anything and I believe I have change my hostname elsewhere that I could find so I'm not sure what else needs changed.
     
  2. topdog

    topdog New Member HowtoForge Supporter

    Are your name servers returning the correct MX record ?
     
  3. tristanlee85

    tristanlee85 New Member

    When I do a MX lookup, it's returning the correct hostname, but when I run a test on the server to check for open relays and such, it's returning my old hostname.

    Because of this, I believe it's why I am not receiving any e-mail.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your mail log? What's in /etc/postfix/main.cf? What are the outputs of
    Code:
    hostname
    and
    Code:
    hostname -f
    ?
     
  5. tristanlee85

    tristanlee85 New Member

    Well actually I found a line I had skipped over before it /etc/postfix/main.cf that had my old hostname. I changed it and that worked.

    Now, I seem to be getting these messages now:

    Code:
    Return-Path: <>
     X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on
            hostname.domain.net
     X-Spam-Level: 
     X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RELAYS autolearn=ham
            version=3.2.1
     X-Original-To: [email protected]
     Delivered-To: [email protected]
     Received: by hostname.domain.net (Postfix)
            id 923CC10FA04; Fri,  4 Apr 2008 16:33:35 -0400 (EDT)
     Date: Fri,  4 Apr 2008 16:33:35 -0400 (EDT)
     From: [email protected] (Mail Delivery System)
     Subject: Undelivered Mail Returned to Sender
     To: [email protected]
     Auto-Submitted: auto-replied
     MIME-Version: 1.0
     Content-Type: multipart/report;
      report-type=delivery-status;
      boundary="C8F5B10FA05.1207341215/hostname.domain.net"
     Content-Transfer-Encoding: 8bit
     Message-Id: <[email protected]>
     Status: R
     X-Status: NC
     X-KMail-EncryptionState: 
     X-KMail-SignatureState: 
     X-KMail-MDN-Sent: 
     
    This is the mail system at host hostname.domain.net.
    
    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]>: host smtp-server.columbus.rr.com[71.74.56.22] said:
        553 hostname.domain.net does not exist (in reply to MAIL FROM
        command)
    Is this happening because of reverse DNS issues?
     
  6. topdog

    topdog New Member HowtoForge Supporter

    I think its the actually hostname is it dnsed and does it resolve ?
     

Share This Page