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

      Okay, so I reviewed finally that Zimbra server. What I found out is that we have three domains in there, one is sending through the WAN IP of the Server as NAT through the firewall while the other two domains are sending through a relay server as below:
      0_1518291530281_DeepinScreenshot_select-area_20180210143842.png

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

        Also are you SMTP Servers also on the MTA Trusted networks?

        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:

          P of the Server as NAT through the firewall while the other two domains are sending through a relay server as belo

          Thanks @dbeato, great! Same as what I'm trying to achieve!

          I have below as my settings

          bysender:
          @domain1.com [ smtp.domain1.com]:587
          @domain2.com [ smtp.domain2.com]:587

          relay_password:
          [smtp.domain1.com]:587 [email protected]:Password1
          [smtp.domain2.com]:587 [email protected]:Password2

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

          Also are you SMTP Servers also on the MTA Trusted networks?

          No. Does it need to be?

          Below are mynetworks (edited the line '# name postoffice.domain1.com as it formats large):
          zimbra@postoffice:~$ postconf mynetworks
          mynetworks = 127.0.0.0/8 [::1]/128 192.168.0.0/24
          zimbra@postoffice:~$ zmprov gs postoffice.domain1.com zimbraMtaMyNetworks
          '# name postoffice.domain1.com
          zimbraMtaMyNetworks: 127.0.0.0/8 [::1]/128 192.168.0.0/24

          Honestly, I do not understand the MTA Trusted networks. Our present servers (physical and one domain on one server..this is not the one I opened in this thread) only have the loopback (127.0.0.1/8) and its network (192.168.0.0/24) but our other VLANs, other offices (via IPSEC) and outside access (NATted) works.

          What I was thinking is that the since our users are accessing the (zimbra) webmail, it is using the server's own IP address. However, this is also true if I set up POP/IMAP through a client, it connects and sends via the server's IP. Pls. correct me if I'm understanding it wrong.

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

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

            What I was thinking is that the since our users are accessing the (zimbra) webmail, it is using the server's own IP address. However, this is also true if I set up POP/IMAP through a client, it connects and sends via the server's IP. Pls. correct me if I'm understanding it wrong.

            Your understanding is correct.

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

              @dbeato thanks!

              Do I also need to include both SMTP servers in MTA Trusted Networks? How do I input them in CIDR format?

              119.93.x.x /32?
              119.93.x.y /32?

              Thanks!

              dbeatoD 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 thanks!

                Do I also need to include both SMTP servers in MTA Trusted Networks? How do I input them in CIDR format?

                119.93.x.x /32?
                119.93.x.y /32?

                Thanks!

                Yes /32 is one IP address.

                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!

                  Do I also need to include both SMTP servers in MTA Trusted Networks? How do I input them in CIDR format?

                  119.93.x.x /32?
                  119.93.x.y /32?

                  Thanks!

                  Please include them there for sure.

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

                    @dbeato

                    Yup...tried to enter the IPs in MTA Trusted Networks but still the same even after issuing "zmcontrol restart" and even restarting the whole VM. It seems as though that the email is being sent directly to the recipient's server (Google's in this case):

                    Feb 13 16:36:59 postoffice systemd-logind[936]: Removed session 92.
                    Feb 13 16:37:10 postoffice postfix/smtp[38133]: connect to alt1.gmail-smtp-in.l.google.com[74.125.198.27]:25: Connection timed out
                    Feb 13 16:37:10 postoffice postfix/smtp[38134]: connect to alt1.gmail-smtp-in.l.google.com[74.125.198.27]:25: Connection timed out
                    Feb 13 16:37:40 postoffice postfix/smtp[38134]: connect to alt2.gmail-smtp-in.l.google.com[74.125.124.26]:25: Connection timed out
                    Feb 13 16:37:40 postoffice postfix/smtp[38133]: connect to alt2.gmail-smtp-in.l.google.com[74.125.124.26]:25: Connection timed out
                    Feb 13 16:37:46 postoffice zmconfigd[1371]: Fetching All configs
                    Feb 13 16:37:46 postoffice zmconfigd[1371]: All configs fetched in 0.09 seconds
                    Feb 13 16:37:51 postoffice zmconfigd[1371]: Watchdog: service antivirus status is OK.
                    Feb 13 16:37:51 postoffice zmconfigd[1371]: All rewrite threads completed in 0.00 sec
                    Feb 13 16:37:51 postoffice zmconfigd[1371]: All restarts completed in 0.00 sec
                    Feb 13 16:38:10 postoffice postfix/smtp[38133]: connect to alt3.gmail-smtp-in.l.google.com[74.125.136.26]:25: Connection timed out
                    Feb 13 16:38:10 postoffice postfix/smtp[38134]: connect to alt3.gmail-smtp-in.l.google.com[74.125.136.26]:25: Connection timed out
                    Feb 13 16:38:40 postoffice postfix/smtp[38134]: connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out
                    Feb 13 16:38:40 postoffice postfix/smtp[38133]: connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out
                    Feb 13 16:38:40 postoffice postfix/smtp[38133]: B00E09B4207B: to=[email protected], relay=none, delay=3353, delays=3231/0.75/121/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out)
                    Feb 13 16:38:40 postoffice postfix/smtp[38134]: 065129B42075: to=[email protected], relay=none, delay=3351, delays=3230/0.59/121/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out)

                    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

                      Yup...tried to enter the IPs in MTA Trusted Networks but still the same even after issuing "zmcontrol restart" and even restarting the whole VM. It seems as though that the email is being sent directly to the recipient's server (Google's in this case):

                      Feb 13 16:36:59 postoffice systemd-logind[936]: Removed session 92.
                      Feb 13 16:37:10 postoffice postfix/smtp[38133]: connect to alt1.gmail-smtp-in.l.google.com[74.125.198.27]:25: Connection timed out
                      Feb 13 16:37:10 postoffice postfix/smtp[38134]: connect to alt1.gmail-smtp-in.l.google.com[74.125.198.27]:25: Connection timed out
                      Feb 13 16:37:40 postoffice postfix/smtp[38134]: connect to alt2.gmail-smtp-in.l.google.com[74.125.124.26]:25: Connection timed out
                      Feb 13 16:37:40 postoffice postfix/smtp[38133]: connect to alt2.gmail-smtp-in.l.google.com[74.125.124.26]:25: Connection timed out
                      Feb 13 16:37:46 postoffice zmconfigd[1371]: Fetching All configs
                      Feb 13 16:37:46 postoffice zmconfigd[1371]: All configs fetched in 0.09 seconds
                      Feb 13 16:37:51 postoffice zmconfigd[1371]: Watchdog: service antivirus status is OK.
                      Feb 13 16:37:51 postoffice zmconfigd[1371]: All rewrite threads completed in 0.00 sec
                      Feb 13 16:37:51 postoffice zmconfigd[1371]: All restarts completed in 0.00 sec
                      Feb 13 16:38:10 postoffice postfix/smtp[38133]: connect to alt3.gmail-smtp-in.l.google.com[74.125.136.26]:25: Connection timed out
                      Feb 13 16:38:10 postoffice postfix/smtp[38134]: connect to alt3.gmail-smtp-in.l.google.com[74.125.136.26]:25: Connection timed out
                      Feb 13 16:38:40 postoffice postfix/smtp[38134]: connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out
                      Feb 13 16:38:40 postoffice postfix/smtp[38133]: connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out
                      Feb 13 16:38:40 postoffice postfix/smtp[38133]: B00E09B4207B: to=[email protected], relay=none, delay=3353, delays=3231/0.75/121/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out)
                      Feb 13 16:38:40 postoffice postfix/smtp[38134]: 065129B42075: to=[email protected], relay=none, delay=3351, delays=3230/0.59/121/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.208.26]:25: Connection timed out)

                      Can you setup a relay as below?
                      https://support.google.com/a/answer/2956491?hl=en

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

                        Thanks @dbeato, by goal is to use our own SMTP (external email server) as smarthost. We are using the 2 now, in a separate physical Zimbra installation, without issues. I was only trying to replicate that settings into a single (VM) zimbra install.

                        Thanks again for sticking with me to help me out with my dilemma.

                        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:

                          Thanks @dbeato, by goal is to use our own SMTP (external email server) as smarthost. We are using the 2 now, in a separate physical Zimbra installation, without issues. I was only trying to replicate that settings into a single (VM) zimbra install.

                          Thanks again for sticking with me to help me out with my dilemma.

                          Strange, I mean your error seem to be trying to connect to Gmail that the ports are timing out.

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

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

                            Strange, I mean your error seem to be trying to connect to Gmail that the ports are timing out.

                            That's where I'm also confused about. It seems that it is directly trying to connect to Gmail to send the messages. The recipient is my personal gmail account. Creating bysender and relay_password files and configuring Zimbra to recognize those (by the searches I had done), it should have routed the mails to the external (SMTP) server.

                            Inputting the smtp.domain1.com to "Relay MTA for external delivery" routes all outgoing emails to it, including the ones from domain2.com which should route to smtp.domain2.com.

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

                              Hi,

                              Guys, I'll be out and will be back on Monday. Tomorrow is a holiday here in Philippines, work resumes on Monday. Hope you can help me out :smiling_face_with_open_mouth:

                              Thanks!

                              scottalanmillerS 1 Reply Last reply Reply Quote 2
                              • scottalanmillerS
                                scottalanmiller @vhinzsanchez
                                last edited by

                                @vhinzsanchez enjoy your holiday.

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

                                  @scottalanmiller Thanks! I did enjoy it with family and friends!

                                  1 Reply Last reply Reply Quote 1
                                  • bbigfordB
                                    bbigford @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?

                                    0_1519015698097_websearch.png

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

                                      @BBigford yeah, that's it. And no fault of any other. I just can't figure this thing out...luckily, its just a test server (planning for an upgrade...thus the test).

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

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

                                        @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?

                                        0_1519015698097_websearch.png

                                        Lol

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

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

                                          @BBigford yeah, that's it. And no fault of any other. I just can't figure this thing out...luckily, its just a test server (planning for an upgrade...thus the test).

                                          I explained how I have it but I will set it up from the ground up.

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

                                            @dbeato, thanks...I'm relieved that someone still has working with me on this.

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