Results 1 to 8 of 8

Thread: Question about host names

  1. #1
    Join Date
    Mar 2007
    Location
    Michigan, USA
    Posts
    30
    Rep Power
    8

    Question Question about host names

    I don't completely understand everything reguarding the MTA, but I have a possible installation mistake.

    The question: Does the hostname given by the MTA on connect have to be routeable back to the server for some reason?

    When I installed Zimbra, I gave it the internal hostname for the server (eg, a.domain.com). However, I realized later I really wanted Zimbra to work as mail.domain.com. All of my outside DNS entries are set up for mail.domain.com. My internal DNS server (because I am behind a NAT) is also configured for a.domain.com. Mail seems to be sent and received just find. When a server connects to my MTA, it gives its hostname as a.domain.com - which cannot be routed back using a DNS lookup.

    Due to the way I have the server set up, I would really prefer to not set up the DNS entry for a.domain.com.

    A followup question: If this could be a problem, should I try to reconfigure Zimbra to use the mail.domain.com as explained in the Wiki?

    Thanks,
    - Phil DeJarnett
    - Phil DeJarnett

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Hi Phil,
    You can create as many domains as you wish, and yes, you're gonna want to create a special domain.

    There is no huge reason why it needs to be traceable, it just has to be resolvable.

  3. #3
    Join Date
    Mar 2007
    Location
    Michigan, USA
    Posts
    30
    Rep Power
    8

    Smile Maybe that was confusing.

    I think I might have been a bit confusing.

    When you connect to port 25, the server announces itself as a.domain.com:

    Code:
    host$ telnet mail.domain.com
    220 a.domain.com ESMTP Postfix
    a.domain.com is not resolveable, currently. Is there a way to update zimbra so that the domain that is listed above is changed to mail.domain.com? Is this even necessary?

    Thanks again.
    - Phil DeJarnett

  4. #4
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    The "220" message by default returns the hostname of the system. In the Postfix configuration, main.cf file, there is a variable you can change called "smtpd_banner" to customize the message. With Zimbra I'd be careful about directly editing files Postfix configuration files. The changes may not survive an upgrade. You may want to search around on the proper way to make the change.

  5. #5
    Join Date
    Mar 2007
    Location
    Michigan, USA
    Posts
    30
    Rep Power
    8

    Default

    Yes, I'd rather make a more permanent change. Also, I didn't see an existing smtpd_banner in mail.cf, nor did changing myhostname to the correct domain seem to have an effect (after restarting Postfix, of course). I think .cf files need to be processed before they update, so that may be why.

    Thanks.
    - Phil DeJarnett

  6. #6
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    Since the smtpd_banner is not in the main.cf file it should assume the Postfix default, which is "$myhostname ESMTP $mail_name". I'm guessing that changing the $myhostname variable didn't work because it repopulated that value when you restarted, probably from the localconfig.xml file. I would think if you manually added the smtpd_banner variable to the main.cf file it would work, but again not sure about surviving an upgrade.

  7. #7
    Join Date
    Mar 2007
    Location
    Michigan, USA
    Posts
    30
    Rep Power
    8

    Smile Decided to "risk it"

    I decided to just try ZmSetServerName at http://wiki.zimbra.com/index.php?title=ZmSetServerName.

    If you follow the directions exactly (stopping the services first), you get an error. If, instead, you just run the command, there is no error, and it stops the services automatically. That seems to have solved my "problem", or at least alleviated my fears. Since the internal DNS lists both domains fully, I'm not too worried about any leftover domain issues.
    - Phil DeJarnett

  8. #8
    Join Date
    Mar 2007
    Location
    bz italy
    Posts
    23
    Rep Power
    8

    Default just to confirm...

    i had to switch the domain name and found troubles with the logger and server statistics:

    zimbra 4.5.5 on ubuntu 6.06:

    these two hints worked fine:

    1)
    Quote Originally Posted by OverZealous View Post
    I decided to just try ZmSetServerName at ZmSetServerName - ZimbraWiki.

    If you follow the directions exactly (stopping the services first), you get an error. If, instead, you just run the command, there is no error, and it stops the services automatically. That seems to have solved my "problem", or at least alleviated my fears. Since the internal DNS lists both domains fully, I'm not too worried about any leftover domain issues.
    then:
    change of /etc/hosts
    and
    hostname newhostname

    followed by :

    2)
    Quote Originally Posted by rnuno View Post
    Ok it's working now thanks for the support of the Zimbra team.

    For the record this has what fixed:

    Code:
    su - zimbra
    zmloggerctl stop
    ps aux | grep zmlogger
    kill any logger processes
    zmloggerctl start
    /opt/zimbra/libexec/zmlogprocess
    And my graps started working on the fly.

    Regards,
    Ricardo
    3) after this, i had TWO server-statistics:

    -- the old ones with the old servername
    -- a new - empty - set with the new servername.

    at this point
    dnsdomainname still gave me the old domain !

    -- i changed the content of the filename /etc/hostname (containing the old hostname ) and did a reboot.

    now serverstatistics gives me only one servername, the new one, with the old statistical data still there and the new one displayed in a new set of graphs.

    Beware:
    before going the way described above, i had tried to solve the logging problem with:
    zmprov mcf zimbraLogHostname newhostname
    i finished up with a big mess and had to reverse completely to the old hostname to get the admin-console working again.

    thanks for the hints

    anton

Similar Threads

  1. Installed on Mac OS X client, host file question
    By McBurtnieks in forum Installation
    Replies: 1
    Last Post: 04-01-2007, 12:09 PM
  2. Multiple Domains Question
    By kristiaan_d in forum Administrators
    Replies: 2
    Last Post: 03-14-2007, 05:38 AM
  3. Installation Cancelled - Zimbra-spell !
    By Ledg in forum Installation
    Replies: 4
    Last Post: 10-19-2006, 03:54 AM
  4. Unknown Host ?
    By msentissi in forum Administrators
    Replies: 5
    Last Post: 03-18-2006, 03:57 PM

Posting Permissions

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