Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: FQ Hostname Not Set

  1. #1
    swu
    swu is offline Special Member
    Join Date
    Apr 2007
    Location
    Ann Arbor, MI
    Posts
    108
    Rep Power
    8

    Question FQ Hostname Not Set

    We've been running our new Zimbra system for a few days and things seem OK. However, I got a returned email today with this error message:

    The Postfix program

    ... host mxi2s.craigslist.org[66.150.243.2] said:
    504 : Helo command rejected: need fully-qualified hostname (in
    reply to RCPT TO command)

    If I look in /opt/zimbra/conf and look at main.cf, indeed

    myhostname = mail-01

    Where is this being set from? Shouldn't the domain name be appended to mail-01 at this point? In the admin GUI, my Service host name is mail-01.

    Our email is getting through, but maybe few are checking for the FQ hostname. Even though, I'd like it to be set correctly.

    Thx in advance!

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Try
    Code:
    su - zimbra
    postconf -e myhostname=mail.domain.com
    Also, make sure your hostnames are correct in zmlocalconfig.

    Goodluck,
    john

  3. #3
    swu
    swu is offline Special Member
    Join Date
    Apr 2007
    Location
    Ann Arbor, MI
    Posts
    108
    Rep Power
    8

    Red face

    Thanks for the quick reply. I looked in zmlocalconfig and don't see any reference to a hostname. Should there be?

    Do I need to restart after making the postfix config change? Is there anywhere else I need to check?

    Thx again!

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    List them with 'zmlocalconfig | grep host' you should have an entry for:
    Code:
    zimbra_server_hostname = FQDN_of_your_host
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    swu
    swu is offline Special Member
    Join Date
    Apr 2007
    Location
    Ann Arbor, MI
    Posts
    108
    Rep Power
    8

    Question

    Thanks for the reply. The hostname I get from that command is:

    zimbra_server_hostname = mail-01

    Which is correct, it's the server's hostname. Does it have to match the myhostname in postfix? In past postfix setups I have had the server's name and the postfix hostname (resolvable MX record name) be different. Do I need to make them the same in Zimbra?

    Thx!

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    No, that isn't correct. It should be the FQDN (Fully Qualified Domain Name) of your server i.e. mail-01.yourdomain.com

    What's in your hosts file and are ther DNS A & MX records set? You can check with the following (run on the zimbra server):

    Code:
    host `hostname`  <-- backticks not single quotes
    dig yourdomain.com any
    dig yourdomain.com mx
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    swu
    swu is offline Special Member
    Join Date
    Apr 2007
    Location
    Ann Arbor, MI
    Posts
    108
    Rep Power
    8

    Question

    Bill -

    Nothing in my hosts file but the loopback. MX records are set with our ISP. Here's the output you asked for:

    mailman@mail-01:/etc$ host `hostname`
    mail-01.emerson-school.org has address 10.10.10.18
    mailman@mail-01:/etc$

    That's the internal DNS name of our Zimbra server.

    I used the dig commands to query our ISP's DNS servers. I did not include all the repatative output.

    mailman@mail-01:/etc$ dig @216.165.129.157 emerson-school.org mx

    ; <<>> DiG 9.3.2 <<>> @216.165.129.157 emerson-school.org mx
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39629
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 7, ADDITIONAL: 8

    ;; QUESTION SECTION:
    ;emerson-school.org. IN MX

    ;; ANSWER SECTION:
    emerson-school.org. 43000 IN MX 10 mail.emerson-school.org.
    emerson-school.org. 43000 IN MX 20 backupmx.tds.net.

    ;; AUTHORITY SECTION:
    emerson-school.org. 8289 IN NS c.dns.tds.net.
    emerson-school.org. 8289 IN NS d.dns.tds.net.

    **************

    mailman@mail-01:/etc$ dig @216.165.129.157 emerson-school.org any

    ; <<>> DiG 9.3.2 <<>> @216.165.129.157 emerson-school.org any
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60101
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 7, ADDITIONAL: 7

    ;; QUESTION SECTION:
    ;emerson-school.org. IN ANY

    ;; ANSWER SECTION:
    emerson-school.org. 8336 IN NS ns.tds.net.
    emerson-school.org. 8336 IN NS a.dns.tds.net.
    emerson-school.org. 8336 IN NS b.dns.tds.net.

    ***************

    mailman@mail-01:/etc$ dig @216.165.129.157 mail.emerson-school.org

    ; <<>> DiG 9.3.2 <<>> @216.165.129.157 mail.emerson-school.org
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42146
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 7

    ;; QUESTION SECTION:
    ;mail.emerson-school.org. IN A

    ;; ANSWER SECTION:
    mail.emerson-school.org. 7402 IN A 69.128.82.114

  8. #8
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    Quote Originally Posted by swu View Post
    Bill -

    Nothing in my hosts file but the loopback. MX records are set with our ISP. Here's the output you asked for:
    That's the first problem.

    Quote Originally Posted by swu View Post
    I used the dig commands to query our ISP's DNS servers. I did not include all the repatative output.
    That's the second problem.

    You need to modify the /etc/hosts file to contain the correct information, please check the Quick Start Guide on the Documentation page. As you are behind a NAT device you need to have a local DNS server with correct A & MX records pointing to your Zimbra server, please check the wiki for Split Domain.

    Once you've corrected those two problems installation should be a doddle.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    swu
    swu is offline Special Member
    Join Date
    Apr 2007
    Location
    Ann Arbor, MI
    Posts
    108
    Rep Power
    8

    Question

    Bill -

    I looked through the wiki regarding split domains and I'm not seeing how they pertain to my issue. It seems split domains are for having an old and new server in the mix.

    It may be a stupid question but I'll ask it, why do I need an internal MX record defined on my DNS server? Queries for our MX record will be out on the internet and those queries will be to our ISP. External mail is coming in fine.

    My /etc/hosts file should have an entry for my internal FQDN of my zimbra server?

    10.10.10.18 mail-01.emerson-school.org

    Thx again!

  10. #10
    swu
    swu is offline Special Member
    Join Date
    Apr 2007
    Location
    Ann Arbor, MI
    Posts
    108
    Rep Power
    8

    Question

    I overlooked my hosts file. It had two entries:

    127.0.0.1 localhost localhost
    127.0.1.1 mail-01.emerson-school.org mail-01

    I changed the loopback per the Quick Start doc and added the FQDN entry:

    # 127.0.0.1 localhost localhost
    127.0.0.1 localhost.emerson-school.org localhost
    127.0.1.1 mail-01.emerson-school.org mail-01
    10.10.10.18 mail-01.emerson-school.org

    I saved the file and within a minute, no one could access the server via the webclient. After remarking the changes and saving the host file, they still could not. I had to restart the server to get access via the weblient again. SSH access still worked.

    I don't know where the 127.0.1.1 entry came from. Any advice would be greatly appreciated. Thx!

Page 1 of 4 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Changing Your Hostname
    By manthrax3 in forum Administrators
    Replies: 2
    Last Post: 12-27-2007, 06:15 PM
  2. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 04:21 PM
  3. Web mail MTA Hostname
    By melody in forum Administrators
    Replies: 16
    Last Post: 04-19-2007, 10:11 AM
  4. One domain set up in two different locations
    By sunshineknox in forum Administrators
    Replies: 1
    Last Post: 04-04-2007, 08:13 PM
  5. Installation Cancelled - Zimbra-spell !
    By Ledg in forum Installation
    Replies: 4
    Last Post: 10-19-2006, 02:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •