Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Forwarding at Split Domain

  1. #1
    rcanto is offline Intermediate Member
    Join Date
    Jul 2012
    Posts
    20
    Rep Power
    3

    Default Forwarding at Split Domain

    Hi Guys.

    I installed a zimbra server as a secondary and a postfix server as a primary mta using fop.unicamp.br as a single domain. First I tried to configure zimbra to forward all messages of recipients that aren't hosted on zimbra secondary to primary mta. However, when a zimbra userI send a message to a recipient on Internet (eg user@yahoo) the connection is refused, like the zimbra server log below:

    Code:
    Jul 17 05:48:51 zimbra postfix/smtp[15890]: A02D941B832C: to=, relay=none, delay=55115, delays=55115/0.01/0/0, dsn=4.4.1, status=deferred (connect to fop.unicamp.br[143.106.235.43]:25: Connection refused)
    
    Jul 17 06:53:52 zimbra postfix/smtp[17207]: 057E941B832A: to=, relay=none, delay=59218, delays=59218/0.02/0/0, dsn=4.4.1, status=deferred (connect to fop.unicamp.br[143.106.235.29]:25: Connection refused)
    
    Jul 17 06:53:52 zimbra postfix/smtp[17208]: DC85141B8329: to=, relay=none, delay=59321, delays=59321/0.01/0/0, dsn=4.4.1, status=deferred (connect to fop.unicamp.br[143.106.235.58]:25: Connection refused)
    
    Jul 17 06:58:51 zimbra postfix/smtp[19717]: 2C8BA41B832B: to=, relay=none, delay=59358, delays=59358/0.02/0/0, dsn=4.4.1, status=deferred (connect to fop.unicamp.br[143.106.235.2]:25: Connection refused)

    I hoped that in the field "(fop.unicamp.br connect to [xxx.xxx.xxx.xxx]: 25" were showed the IP address of the primary server (postfix) to which the messages are being sent. However, note that IPs 143.106.235.43, 143.106.235.29, 143.106.235.58, 143.106.235.2 not belong to the primary MTA and were not set on any cinfiguration file on any mail server. The IPs above also are not mail servers. These IPs are DNS servers my network.

    Anyone know what's going on?

    The set the forwarding using the follow comands on zimbra secondary:

    Code:
    # zmprov md fop.unicamp.br zimbraMailCatchAllAddress @fop.unicamp.br
    # zmprov md fop.unicamp.br zimbraMailCatchAllForwardingAddress @fop.unicamp.br
    # zmprov md fop.unicamp.br zimbraMailTransport smtp:smtp.fop.unicamp.br
    # zmprov mcf zimbraMtaRelayHost fop.unicamp.br
    # zmprov mcf zimbraMtaDnsLookupsEnabled FALSE
    # postfix stop
    # postfix start
    Where "smtp.fop.unicamp.br" is a alias to primary mta.


    On the postfix primary MTA I set this line in the main.cf file:

    Code:
    mynetworks = 143.106.235.0/24, 143.106.236.0/24
    Where 143.106.235.0 is the network of primary MTA server and 143.106.236.0 is the network of the secondary.

    I'm grateful for any help.

    Rodrigo

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

    Default

    Quote Originally Posted by rcanto View Post
    However, note that IPs 143.106.235.43, 143.106.235.29, 143.106.235.58, 143.106.235.2 not belong to the primary MTA and were not set on any cinfiguration file on any mail server. The IPs above also are not mail servers.
    It would appear to me that your DNS server seems to think that IP address is where the server is located.

    Quote Originally Posted by rcanto View Post
    Where "smtp.fop.unicamp.br" is a alias to primary mta.
    What do you mean by "an alias"?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    rcanto is offline Intermediate Member
    Join Date
    Jul 2012
    Posts
    20
    Rep Power
    3

    Default

    Quote Originally Posted by phoenix View Post
    It would appear to me that your DNS server seems to think that IP address is where the server is located.

    What do you mean by "an alias"?

    Yes. It appear that the zimbra is checking MX entry in DNS and receiving wrong information through DNS query. I can't imagine how can it is possible?

    I said alias for a DNS CNAME, because smtp.fop.unicamp.br is a CNAME to logan.fop.unicamp.br. If you ask to DNS what is the MX for domain fop.unicamp.br, the aswer will be logan.fop.unicamp.br.

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

    Default

    Quote Originally Posted by rcanto View Post
    Yes. It appear that the zimbra is checking MX entry in DNS and receiving wrong information through DNS query. I can't imagine how can it is possible?
    Then you need to ssh into the Zimbra server and run some DNS checks from there.

    Quote Originally Posted by rcanto View Post
    I said alias for a DNS CNAME, because smtp.fop.unicamp.br is a CNAME to logan.fop.unicamp.br. If you ask to DNS what is the MX for domain fop.unicamp.br, the aswer will be logan.fop.unicamp.br.
    You should never use a CNAME for a mail server it can cause you problems, use the correct A & MX records.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    rcanto is offline Intermediate Member
    Join Date
    Jul 2012
    Posts
    20
    Rep Power
    3

    Default

    I Checked my DNS entries on zimbra server and it look's correct:

    Code:
    # dig +short -t mx fop.unicamp.br
    10 mx2.unicamp.br.
    15 zimbra.fop.unicamp.br.
    0 logan.fop.unicamp.br.
    
    # dig +short logan.fop.unicamp.br
    143.106.235.49
    # dig +short -x 143.106.235.49
    logan.fop.unicamp.br.
    Where zimbra.fop.unicamp.br is the secondary and logan.fop.unicamp.br is the primary.

    I changed the old comand:
    Code:
    zmprov md fop.unicamp.br zimbraMailTransport smtp:smtp.fop.unicamp.br
    to this:
    Code:
    zmprov md fop.unicamp.br zimbraMailTransport smtp:logan.fop.unicamp.br
    However, the same problem persists...

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

    Default

    Quote Originally Posted by rcanto View Post
    Where zimbra.fop.unicamp.br is the secondary and logan.fop.unicamp.br is the primary.
    This isn't a Split Domain it's two different domains on two different server. A Split Domain uses the same domain name on two different servers, check the wiki article for a complete description of the process. BTW what you are using in this configuration is not a domain name it's actually a sub-domain.
    Last edited by phoenix; 07-18-2012 at 12:01 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    rcanto is offline Intermediate Member
    Join Date
    Jul 2012
    Posts
    20
    Rep Power
    3

    Default

    Hi Bill.

    zimbra.fop.unicamp.br and logan.fop.unicamp.br are FQDNs of MTA servers... Both belong to the same domain fop.unicamp.br. zimbra and logan are just the names of the servers...
    Last edited by rcanto; 07-17-2012 at 01:26 PM.

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

    Default

    Quote Originally Posted by rcanto View Post
    zimbra.fop.unicamp.br and logan.fop.unicamp.br are FQDNs of MTA servers... Both belong to the same domain fop.unicamp.br. zimbra and logan are just the names of the servers...
    Then you need to provide full DNS output for the domain that shows all the records available and which DNS server it's using.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    rcanto is offline Intermediate Member
    Join Date
    Jul 2012
    Posts
    20
    Rep Power
    3

    Default

    Quote Originally Posted by phoenix View Post
    Then you need to provide full DNS output for the domain that shows all the records available and which DNS server it's using.
    Hi Bill.


    I don't think it's safe to openly publish such information. Anyway, I believe that these outputs are enough to check the proper functioning of DNS. If you do not mind I can send to you the full DNS output domain by private message.

    $ nslookup -type=MX fop.unicamp.br
    Server: 143.106.235.58
    Address: 143.106.235.58#53

    fop.unicamp.br mail exchanger = 10 mx2.unicamp.br.
    fop.unicamp.br mail exchanger = 15 zimbra.fop.unicamp.br.
    fop.unicamp.br mail exchanger = 0 logan.fop.unicamp.br.


    $ nslookup fop.unicamp.br
    Server: 143.106.235.58
    Address: 143.106.235.58#53

    Name: fop.unicamp.br
    Address: 143.106.235.58
    Name: fop.unicamp.br
    Address: 143.106.235.29
    Name: fop.unicamp.br
    Address: 143.106.235.2
    Name: fop.unicamp.br
    Address: 143.106.235.43
    Thanks for your help,

    Rodrigo

  10. #10
    soxfan is offline Moderator
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    From your Zimbra server does smtp.fop.unicamp.br resolve correctly? Have you tried fully stopping and starting Zimbra and postfix on your primary server? Does your primary (postfix) server show any error messages related to Zimbra trying to connect?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Forwarding at Split Domain
    By rcanto in forum Administrators
    Replies: 1
    Last Post: 08-02-2012, 05:12 AM
  2. Replies: 0
    Last Post: 07-16-2012, 02:11 AM
  3. Replies: 4
    Last Post: 12-21-2007, 06:43 AM

Tags for this Thread

Posting Permissions

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