Results 1 to 10 of 13

Thread: Forwarding at Split Domain

Hybrid View

  1. #1
    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 offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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
    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 offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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
    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 offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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 01:01 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Similar Threads

  1. Forwarding at Split Domain
    By rcanto in forum Administrators
    Replies: 1
    Last Post: 08-02-2012, 06:12 AM
  2. Replies: 0
    Last Post: 07-16-2012, 03: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
  •