Is it possible to switch primary domain in isp3

Discussion in 'Installation/Configuration' started by Andesh, Mar 13, 2012.

  1. Andesh

    Andesh New Member

    Thanks for your answer till! :)

    Is it possible to switch primary domain in isp3 as I did for Isp2?
    Which files must I change?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you want to change the hostname of the server? The configuration files for the hostname of the server depend on the Linux distribution, for Debian and Ubuntu the hostname id in these files:

    /etc/hostname
    /etc/mailname
    /etc/postfix/main.cf
     
  3. Andesh

    Andesh New Member

    In the following files I have changed from old_domain.tld to new_domain.tld

    /etc/hostname
    /etc/mailname
    /etc/postfix/main.cf
    And restarted the services of course.

    But now I'm experiencing some email problems.

    Code:
    In the Show Mail Queue there is the following entries:
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
    29C602839E3 2232 Tue Mar 27 15:02:11 [email protected]_domain.tld (connect to alt4.gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out)
    [email protected]
    There seems to be some old info remaining regarding the old_domain.tld?
    Br
    A
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Do
    Code:
    hostname 
    and
    Code:
    hostname -f
    also show the new hostname? If not, run
    Code:
    /etc/init.d/hostname.sh start
    and check again.
     
  5. Andesh

    Andesh New Member

    Thanks for the support!

    But both of them show the new hostname.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Then it might be that some old emails were in the mailqueue. If you dont get the errors when you write a new mail, then the hostname has been changed successfully.
     
  7. Andesh

    Andesh New Member

    The hostname is changed successfully.
    I emptied the queue and retried.
    But I can't send emails outside of my own hostname, eg: to gmail or hotmail or to any one at all.
    This is the message in the mail queue:

    Code:
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
    8ED6628143D 2076 Wed Mar 28 20:32:10 
    (connect to alt4.gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out)
    [email protected]
     
    Last edited: Mar 29, 2012
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Can be a routing or firewall problem. Are you sure that your access provider does not blocj port 25 outgoing? If your server is not in a datacenter, then the port might be blocked.
     
  9. Andesh

    Andesh New Member

    Thanks for the support!

    When I fiddled with the main.cf I accidently edited out relay host =(
    All is well now :)
     

Share This Page