External mailserver

Discussion in 'Installation/Configuration' started by emils.gailiss, Jul 17, 2007.

  1. emils.gailiss

    emils.gailiss New Member

    Hi all,
    First of all let's say we have a domain: whatever.com that is assigned to IP - 1.1.1.1 ( i know that IP isn't valid but let's say for our example it will be valid :) ).
    The sub-domain test.whatever.com is assigned to IP 1.1.1.2 which is another server running ISPConfig ( the sub-domain is assigned because it is a lot easer to connect to that server by domain name).
    On whatever.com server we have some e-mail boxes let's say: [email protected] and [email protected]
    And on test.whatever.com ( 1.1.1.2 ) are two domains: company1.com and company2.com with mailboxes.
    Now where is the problem? The problem is described bellow:
    If someone from company1.com wants to send email to [email protected] of course the test.whatever.com will catch the email thinking that it is for test.whatever.com ( 1.1.1.2 ) not for whatever.com that it was really devised for.
    My solution was to set test.whatever.com ( 1.1.1.2 ) to use external mailserver ( in ISPConfig ) but then none of these company1.com and company2.com mailboxes works, because in postfix/main.cf the var myhost is set to test.whatever.com
    ------------------------------------------------------
    I hope at least someone understood my problem and could help me to resolve it.
    Thanx a lot!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Why do you want to use 2 authoritive mailservers for an identical domain?

    And ISPCOnfig will not catch emails for ...@test.whatever.com when the website does not have a co-domain whatever.com with empty hostname.
     
  3. emils.gailiss

    emils.gailiss New Member

    What did you ment by 2 authorative mailservers ?
    Well when i had one box i had no problems but then i buyed another box and wanted to get access to that second box by not IP but with domain so i thought why i should buy another domain for that second box that i could just assign sub-domain to that another box.
    -----------------------------------------------------------------------------------
    And ISPCOnfig will not catch emails for ...@test.whatever.com when the website does not have a co-domain whatever.com with empty hostname.
    -----------------------------------------------------------------------------------
    Yes he is catching for somereason.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Above you used the identical domain on 2 servers and not subdomains of the domain!

    Then you created the domain and not subdomain on the server! Please check all websites and delete the co-domain "domain.com" with empty hostname. ASlso make sure that "domain.com" is not the official hostname of your server. Neither:

    hostname

    nor

    hostname -f

    shall report domain.com, they must report something like server1.domain.com on the first server and server2.domain.com on the second server.
     

Share This Page