ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Zimbra help..multi-domain each with own external relay

    IT Discussion
    5
    48
    8.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dbeatoD
      dbeato
      last edited by dbeato

      Ithe past I have been doing this:
      https://wiki.zimbra.com/wiki/Relay_per_Domain
      And it works well but for you it is not.
      My question also would be, are you doing SPLIT DNS on this one server setup?

      vhinzsanchezV 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        This is definitely a complex and unusual configuration, not one I've had to work with before. This will take some research.

        1 Reply Last reply Reply Quote 0
        • vhinzsanchezV
          vhinzsanchez @dbeato
          last edited by

          @dbeato
          Yes, you got it. The one in zimbra is my first try. It seemed well but I'm unsure if domain2.com really routes to smtp.external2.com. I was pretty impressed by myself having set it up the way I wanted and I have not tried to check the header. :persevering_face:

          When it broke, I tried to set it up again. This time, I have checked the header and external email is not routing as expected, it instead routes to mtp.external2.com.

          After several months, I'd opened the topic in SW.

          1 Reply Last reply Reply Quote 1
          • vhinzsanchezV
            vhinzsanchez @dbeato
            last edited by

            @dbeato
            I think it would work if only one domain, but as SAM is pointing out, it seems that I may have an unusual configuration.

            @SAM
            Thanks. Presently, we have an almost similar setup (in terms of relay/smart host but both is on different physical machine and sending to each other means to send or route to our external server.

            dbeatoD wirestyle22W 2 Replies Last reply Reply Quote 0
            • dbeatoD
              dbeato @vhinzsanchez
              last edited by

              @vhinzsanchez said in Zimbra help..multi-domain each with own external relay:

              @dbeato
              I think it would work if only one domain, but as SAM is pointing out, it seems that I may have an unusual configuration.

              @SAM
              Thanks. Presently, we have an almost similar setup (in terms of relay/smart host but both is on different physical machine and sending to each other means to send or route to our external server.

              I have one server setup this way, but mayBe retired pretty soon.

              vhinzsanchezV 1 Reply Last reply Reply Quote 0
              • vhinzsanchezV
                vhinzsanchez @dbeato
                last edited by

                @dbeato
                Wow! You are one of the gems which has set it up correctly.

                How? How? How?

                dbeatoD bbigfordB 2 Replies Last reply Reply Quote 0
                • dbeatoD
                  dbeato @vhinzsanchez
                  last edited by

                  @vhinzsanchez said in Zimbra help..multi-domain each with own external relay:

                  @dbeato
                  Wow! You are one of the gems which has set it up correctly.

                  How? How? How?

                  I am connecting to the Zimbra server this morning and will let you know.

                  vhinzsanchezV 1 Reply Last reply Reply Quote 0
                  • wirestyle22W
                    wirestyle22 @vhinzsanchez
                    last edited by wirestyle22

                    @vhinzsanchez said in Zimbra help..multi-domain each with own external relay:

                    @SAM
                    Thanks. Presently, we have an almost similar setup (in terms of relay/smart host but both is on different physical machine and sending to each other means to send or route to our external server.

                    Just so you know @SAM is not @scottalanmiller, although Scott does go by SAM. It's just not his username.

                    scottalanmillerS vhinzsanchezV 2 Replies Last reply Reply Quote 1
                    • scottalanmillerS
                      scottalanmiller @wirestyle22
                      last edited by

                      @wirestyle22 said in Zimbra help..multi-domain each with own external relay:

                      @vhinzsanchez said in Zimbra help..multi-domain each with own external relay:

                      @SAM
                      Thanks. Presently, we have an almost similar setup (in terms of relay/smart host but both is on different physical machine and sending to each other means to send or route to our external server.

                      Just so you know @SAM is not @scottalanmiller, although Scott does go by SAM. It's just not his username.

                      That would confuse even me.

                      1 Reply Last reply Reply Quote 0
                      • vhinzsanchezV
                        vhinzsanchez @wirestyle22
                        last edited by

                        @wirestyle22
                        Oh great, just great. Noted. Thanks for letting me know.

                        1 Reply Last reply Reply Quote 0
                        • vhinzsanchezV
                          vhinzsanchez @dbeato
                          last edited by vhinzsanchez

                          @dbeato said in Zimbra help..multi-domain each with own external relay:

                          I am connecting to the Zimbra server this morning and will let you know.

                          Thanks @dbeato! Really appreciate it.

                          vhinzsanchezV 1 Reply Last reply Reply Quote 0
                          • vhinzsanchezV
                            vhinzsanchez @vhinzsanchez
                            last edited by

                            Hi Guys,

                            I was wondering if you have ever got to check out my queries.

                            Thanks in advance!

                            vhinzsanchezV 1 Reply Last reply Reply Quote 0
                            • vhinzsanchezV
                              vhinzsanchez @vhinzsanchez
                              last edited by

                              HI Guys,

                              Bumping this topic should anyone has an idea.

                              Thanks!

                              dbeatoD 1 Reply Last reply Reply Quote 0
                              • dbeatoD
                                dbeato @vhinzsanchez
                                last edited by

                                @vhinzsanchez said in Zimbra help..multi-domain each with own external relay:

                                HI Guys,

                                Bumping this topic should anyone has an idea.

                                Thanks!

                                Sorry, I haven't been able to connect to that Zimbra server... I am wondering why. Let me report back.

                                vhinzsanchezV 1 Reply Last reply Reply Quote 0
                                • vhinzsanchezV
                                  vhinzsanchez @dbeato
                                  last edited by

                                  @dbeato Thanks! I was just wondering where my setup went wrong...in all of my tests :grinning_face_with_smiling_eyes: for the last 1.5 to 2 years

                                  dbeatoD 1 Reply Last reply Reply Quote 0
                                  • dbeatoD
                                    dbeato @vhinzsanchez
                                    last edited by

                                    @vhinzsanchez said in Zimbra help..multi-domain each with own external relay:

                                    @dbeato Thanks! I was just wondering where my setup went wrong...in all of my tests :grinning_face_with_smiling_eyes: for the last 1.5 to 2 years

                                    There is nothing wrong with what you setup and I have that file on my Zimbra server so I am not sure what is different from yours.

                                    1 Reply Last reply Reply Quote 1
                                    • vhinzsanchezV
                                      vhinzsanchez
                                      last edited by

                                      I also think so...but setups are stating otherwise. I think I have the local bind9 working as dig works and the first domain is working fine.

                                      dbeatoD 1 Reply Last reply Reply Quote 0
                                      • dbeatoD
                                        dbeato @vhinzsanchez
                                        last edited by

                                        @vhinzsanchez said in Zimbra help..multi-domain each with own external relay:

                                        I also think so...but setups are stating otherwise. I think I have the local bind9 working as dig works and the first domain is working fine.

                                        So you are doing split DNS correct? If so, you need to add that domain there as well.

                                        vhinzsanchezV 1 Reply Last reply Reply Quote 0
                                        • vhinzsanchezV
                                          vhinzsanchez @dbeato
                                          last edited by vhinzsanchez

                                          @dbeato No, not doing split dns (well, I just don't get an idea of splitdns so I was thinking it was not implemented). Just simple bind9 implementation making sure it recognize itself as postoffice.domain1.com and itself and the other mail servers (external1.com and external2.com) as mx.

                                          • nxlookup and dig is working as expected and seeing itself, including the mx records.

                                          • Domain in network is still domain.local.

                                          • /etc/hostname is postoffice.domain1.com

                                          • /etc/hosts:
                                            127.0.0.1
                                            192.168.0.1 postoffice.domain1.com postoffice
                                            119.93.x.x smtp.external1.com smtp

                                          1 Reply Last reply Reply Quote 0
                                          • vhinzsanchezV
                                            vhinzsanchez
                                            last edited by

                                            Seemed like I had given the wrong information, sorry for the confusion. Just occurred to me that I may have provided the wrong info. Domain1.com is also external1.com (same domain name as our external provider). I think it may have no effect but it may have otherwise.

                                            Lets I’ll step back and start my installation procedure. Most of the steps I made are taken from https://ubuntuforums.org/showthread.php?t=1866784 specially those pre-Zimbra installation – preparation and DNS. I think it is the same guide my predecessor has made to create our present server.

                                            Just to make it clear, I have removed the extenal1.com (it is confusing, I think):
                                            Internal network/domain name: domain.local
                                            Server name: postoffice.domain1.com (192.168.0.1)
                                            Zimbra domain1: domain1.com
                                            Zimbra domain2: domain2.com
                                            External server1: smtp.domain1.com (119.93.x.x)
                                            External server2: smtp.domain2.com (119.93.x.y)

                                            ============

                                            /etc/hostname:
                                            postoffice.domain1

                                            ============

                                            /etc/network/interfaces
                                            iface eth0 inet static
                                            address 192.168.0.1
                                            netmask 255.255.255.0
                                            network 192.168.1.0
                                            broadcast 192.168.1.255
                                            gateway 192.168.1.5
                                            # dns-* options are implemented by the resolvconf package, if installed
                                            dns-nameservers 192.168.0.1 8.8.8.8
                                            dns-search domain1.com

                                            ============

                                            /etc/resolv.conf
                                            nameserver 192.168.0.1
                                            nameserver 8.8.8.8
                                            search domain1.com

                                            ============

                                            /etc/bind/named.conf.local
                                            zone "domain1.com" {
                                            type master;
                                            file "/etc/bind/db.domain1.com";
                                            allow-transfer {"none";};
                                            forwarders {8.8.8.8;};
                                            };

                                            zone "domain2.com" {
                                            type master;
                                            file "/etc/bind/db.domain2.com";
                                            allow-transfer {"none";};
                                            forwarders {8.8.8.8;};
                                            };

                                            ============

                                            /etc/bind/db.domain1.com
                                            ; domain1.com
                                            $TTL 604800
                                            @ IN SOA ns.domain1.com. root.domain1.com. (
                                            20180124 ; Serial
                                            604800 ; Refresh
                                            86400 ; Retry
                                            2419200 ; Expire
                                            604800 ); Negative Cache TTL
                                            ;
                                            @ IN NS ns
                                            IN MX 10 postoffice
                                            IN MX 10 smtp
                                            IN A 192.168.0.1
                                            ns IN A 192.168.0.1
                                            postoffice IN A 192.168.0.1
                                            smtp IN A 119.93.x.x
                                            www IN A 192.168.0.1

                                            ============

                                            /etc/bind/db.domain2.com
                                            ; domain2
                                            $TTL 604800
                                            @ IN SOA ns.domain2.com. root.domain2.com. (
                                            20180125 ; Serial
                                            604800 ; Refresh
                                            86400 ; Retry
                                            2419200 ; Expire
                                            604800 ); Negative Cache TTL
                                            ;
                                            @ IN NS ns
                                            IN MX 10 postoffice
                                            IN MX 10 smtp
                                            IN A 192.168.0.1
                                            ns IN A 192.168.0.1
                                            postoffice IN A 192.168.0.1
                                            smtp IN A 119.93.x.y
                                            www IN A 192.168.0.1

                                            ============

                                            admin@postoffice:~$ nslookup domain1.com
                                            Server: 192.168.0.1
                                            Address: 192.168.0.1#53

                                            Name: domain1.com
                                            Address: 192.168.0.1

                                            ============

                                            admin@postoffice:~$ nslookup smtp.domain1.com
                                            Server: 192.168.0.1
                                            Address: 192.168.0.1#53

                                            Name: smtp.domain1.com
                                            Address: 119.93.x.x

                                            ============

                                            admin@postoffice:~$ nslookup domain2.com
                                            Server: 192.168.0.1
                                            Address: 192.168.0.1#53

                                            Name: domain2.com
                                            Address: 192.168.0.1

                                            ============

                                            admin@postoffice:~$ nslookup smtp.domain2.com
                                            Server: 192.168.0.1
                                            Address: 192.168.0.1#53

                                            Name: smtp.domain2.com
                                            Address: 119.93.x.y

                                            ============

                                            admin@postoffice:~$ dig domain1.com

                                            ; <<>> DiG 9.10.3-P4-Ubuntu <<>> domain1.com
                                            ;; global options: +cmd
                                            ;; Got answer:
                                            ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28427
                                            ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

                                            ;; OPT PSEUDOSECTION:
                                            ; EDNS: version: 0, flags:; udp: 4096
                                            ;; QUESTION SECTION:
                                            ;domain1.com. IN A

                                            ;; ANSWER SECTION:
                                            domain1.com. 604800 IN A 192.168.0.1

                                            ;; AUTHORITY SECTION:
                                            domain1.com. 604800 IN NS ns.domain1.com.

                                            ;; ADDITIONAL SECTION:
                                            ns.domain1.com. 604800 IN A 192.168.0.1

                                            ;; Query time: 0 msec
                                            ;; SERVER: 192.168.0.1#53(192.168.0.1)
                                            ;; WHEN: Tue Feb 06 16:42:01 +08 2018
                                            ;; MSG SIZE rcvd: 91

                                            ============

                                            admin@postoffice:~$ dig domain1.com mx

                                            ; <<>> DiG 9.10.3-P4-Ubuntu <<>> domain1.com mx
                                            ;; global options: +cmd
                                            ;; Got answer:
                                            ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11646
                                            ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 4

                                            ;; OPT PSEUDOSECTION:
                                            ; EDNS: version: 0, flags:; udp: 4096
                                            ;; QUESTION SECTION:
                                            ;domain1.com. IN MX

                                            ;; ANSWER SECTION:
                                            domain1.com. 604800 IN MX 10 smtp.domain1.com.
                                            domain1.com. 604800 IN MX 10 postoffice.domain1.com.

                                            ;; AUTHORITY SECTION:
                                            domain1.com. 604800 IN NS ns.domain1.com.

                                            ;; ADDITIONAL SECTION:
                                            smtp.domain1.com. 604800 IN A 119.93.x.x
                                            postoffice.domain1.com. 604800 IN A 192.168.0.1
                                            ns.domain1.com. 604800 IN A 192.168.0.1

                                            ;; Query time: 0 msec
                                            ;; SERVER: 192.168.0.1#53(192.168.0.1)
                                            ;; WHEN: Tue Feb 06 16:42:20 +08 2018
                                            ;; MSG SIZE rcvd: 155

                                            ============

                                            admin@postoffice:~$ dig domain2.com mx

                                            ; <<>> DiG 9.10.3-P4-Ubuntu <<>> domain2.com mx
                                            ;; global options: +cmd
                                            ;; Got answer:
                                            ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10800
                                            ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 4

                                            ;; OPT PSEUDOSECTION:
                                            ; EDNS: version: 0, flags:; udp: 4096
                                            ;; QUESTION SECTION:
                                            ;domain2.com. IN MX

                                            ;; ANSWER SECTION:
                                            domain2.com. 604800 IN MX 10 postoffice.domain2.com.
                                            domain2.com. 604800 IN MX 10 smtp.domain2.com.

                                            ;; AUTHORITY SECTION:
                                            domain2.com. 604800 IN NS ns.domain2.com.

                                            ;; ADDITIONAL SECTION:
                                            smtp.domain2.com. 604800 IN A 119.93.x.y
                                            postoffice.domain2.com. 604800 IN A 192.168.0.1
                                            ns.domain2.com. 604800 IN A 192.168.0.1

                                            ;; Query time: 0 msec
                                            ;; SERVER: 192.168.0.1#53(192.168.0.1)
                                            ;; WHEN: Tue Feb 06 16:42:27 +08 2018
                                            ;; MSG SIZE rcvd: 166

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post