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

    Local SMTP relay?

    IT Discussion
    mail postfix smtp relay
    7
    18
    1.3k
    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.
    • 1
      1337
      last edited by 1337

      Instead of having a bunch of VMs connect directly to an external SMTP server to send emails, I'd like to set up a local SMTP relay. So VMs will all connect to the relay and then the relay will connect to the external SMTP server.

      What software should I be looking at? Postfix? It will run on linux of course.

      EddieJenningsE JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 1
      • EddieJenningsE
        EddieJennings @1337
        last edited by

        @pete-s said in Local SMTP relay?:

        Instead of having a bunch of VMs connect directly to an external SMTP server to send emails, I'd like to set up a local SMTP relay. So VMs will all connect to the relay and then the relay will connect to the external SMTP server.

        What software should I be looking at? Postfix? It will run on linux of course.

        +1 for Postfix

        1 Reply Last reply Reply Quote 4
        • JaredBuschJ
          JaredBusch @1337
          last edited by

          @pete-s said in Local SMTP relay?:

          Postfix?

          This is how I do it.

          In addition to the local stuff, using the local IP, I install ZeroTier on the VM and the hosted things, then have them use that IP to hit the relay also. Not everything, but it is useful.

          1 1 Reply Last reply Reply Quote 3
          • 1
            1337 @JaredBusch
            last edited by 1337

            @jaredbusch said in Local SMTP relay?:

            @pete-s said in Local SMTP relay?:

            Postfix?

            This is how I do it.

            In addition to the local stuff, using the local IP, I install ZeroTier on the VM and the hosted things, then have them use that IP to hit the relay also. Not everything, but it is useful.

            Thanks!

            In my mind I imagine the SMTP relay as being a transparent delivery guy to the "real" email server. But I'm not sure if that is how it works... I've also seen the mentioning of a SMTP proxy.

            What I'm trying to figure out is - does the relay mean anything for DKIM/SPF/DMARC?

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @1337
              last edited by

              @pete-s said in Local SMTP relay?:

              @jaredbusch said in Local SMTP relay?:

              @pete-s said in Local SMTP relay?:

              Postfix?

              This is how I do it.

              In addition to the local stuff, using the local IP, I install ZeroTier on the VM and the hosted things, then have them use that IP to hit the relay also. Not everything, but it is useful.

              Thanks!

              In my mind I imagine the SMTP relay as being a transparent delivery guy to the "real" email server. But I'm not sure if that is how it works... I've also seen the mentioning of a SMTP proxy.

              What I'm trying to figure out is - does the relay mean anything for DKIM/SPF/DMARC?

              Not if the relay is internal and sending only to your email server. That stuff all hits once it leaves your email server.

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

                @pete-s said in Local SMTP relay?:

                Postfix? It will run on linux of course.

                Definitely. Postfix is the "go to" product here.

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

                  We do this for companies regularly. So for example, we run a Postfix relay that takes multiple printer feeds and authenticates them and relays them on to Office 365 or Google for final delivery. All the hard part is done by those other email providers.

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

                    @scottalanmiller said in Local SMTP relay?:

                    We do this for companies regularly. So for example, we run a Postfix relay that takes multiple printer feeds and authenticates them and relays them on to Office 365 or Google for final delivery. All the hard part is done by those other email providers.

                    That was a great example. Do you have any pointers on how to configure postfix for this?

                    My intention was BTW to relay to zoho for delivery. Their new Transmail service actually.

                    V 1 Reply Last reply Reply Quote 0
                    • 1
                      1337 @JaredBusch
                      last edited by 1337

                      @jaredbusch said in Local SMTP relay?:

                      @pete-s said in Local SMTP relay?:

                      @jaredbusch said in Local SMTP relay?:

                      @pete-s said in Local SMTP relay?:

                      Postfix?

                      This is how I do it.

                      In addition to the local stuff, using the local IP, I install ZeroTier on the VM and the hosted things, then have them use that IP to hit the relay also. Not everything, but it is useful.

                      Thanks!

                      In my mind I imagine the SMTP relay as being a transparent delivery guy to the "real" email server. But I'm not sure if that is how it works... I've also seen the mentioning of a SMTP proxy.

                      What I'm trying to figure out is - does the relay mean anything for DKIM/SPF/DMARC?

                      Not if the relay is internal and sending only to your email server. That stuff all hits once it leaves your email server.

                      Relay would be internal on the LAN but not internal as "on the same server" as the sender.

                      1 Reply Last reply Reply Quote 0
                      • J
                        JasGot
                        last edited by

                        Any particular reason for the relay? Why not just setup an smtp server?

                        DashrenderD 1 Reply Last reply Reply Quote 0
                        • DashrenderD
                          Dashrender @JasGot
                          last edited by

                          @jasgot said in Local SMTP relay?:

                          Any particular reason for the relay? Why not just setup an smtp server?

                          Because then you only have to worry about DKIM/SPF/DMARC for me one server. The relay takes all emails sent locally and gets them to your external sending host. Then that host handles DKIM/SPF/DMARC when sending to the outside world.

                          1 Reply Last reply Reply Quote 2
                          • V
                            VoIP_n00b @1337
                            last edited by VoIP_n00b

                            @pete-s said in Local SMTP relay?:

                            Do you have any pointers on how to configure postfix for this?

                            Lots of guides when googling "postfix smtp relay"

                            Here is one:
                            https://www.lisenet.com/2018/configure-postfix-to-relay-mail-to-an-external-smtp-server-on-centos-7/

                            1 1 Reply Last reply Reply Quote 0
                            • 1
                              1337 @VoIP_n00b
                              last edited by

                              @voip_n00b said in Local SMTP relay?:

                              @pete-s said in Local SMTP relay?:

                              Do you have any pointers on how to configure postfix for this?

                              Lots of guides when googling "postfix smtp relay"

                              Here is one:
                              https://www.lisenet.com/2018/configure-postfix-to-relay-mail-to-an-external-smtp-server-on-centos-7/

                              Thanks! It looks simple enough and I hope it is.

                              When I looked at the postfix documention it seems like it's a lot more complicated than that.

                              DashrenderD 1 Reply Last reply Reply Quote 0
                              • DashrenderD
                                Dashrender @1337
                                last edited by

                                @pete-s said in Local SMTP relay?:

                                @voip_n00b said in Local SMTP relay?:

                                @pete-s said in Local SMTP relay?:

                                Do you have any pointers on how to configure postfix for this?

                                Lots of guides when googling "postfix smtp relay"

                                Here is one:
                                https://www.lisenet.com/2018/configure-postfix-to-relay-mail-to-an-external-smtp-server-on-centos-7/

                                Thanks! It looks simple enough and I hope it is.

                                When I looked at the postfix documention it seems like it's a lot more complicated than that.

                                is CentOS still where people want to be for things like this?

                                JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch @Dashrender
                                  last edited by

                                  @dashrender said in Local SMTP relay?:

                                  @pete-s said in Local SMTP relay?:

                                  @voip_n00b said in Local SMTP relay?:

                                  @pete-s said in Local SMTP relay?:

                                  Do you have any pointers on how to configure postfix for this?

                                  Lots of guides when googling "postfix smtp relay"

                                  Here is one:
                                  https://www.lisenet.com/2018/configure-postfix-to-relay-mail-to-an-external-smtp-server-on-centos-7/

                                  Thanks! It looks simple enough and I hope it is.

                                  When I looked at the postfix documention it seems like it's a lot more complicated than that.

                                  is CentOS still where people want to be for things like this?

                                  because Aaron....

                                  V 1 Reply Last reply Reply Quote 0
                                  • V
                                    VoIP_n00b @JaredBusch
                                    last edited by

                                    @jaredbusch I'm 100% Ubuntu - just grab the first link that came up.

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

                                      @dashrender said in Local SMTP relay?:

                                      @pete-s said in Local SMTP relay?:

                                      @voip_n00b said in Local SMTP relay?:

                                      @pete-s said in Local SMTP relay?:

                                      Do you have any pointers on how to configure postfix for this?

                                      Lots of guides when googling "postfix smtp relay"

                                      Here is one:
                                      https://www.lisenet.com/2018/configure-postfix-to-relay-mail-to-an-external-smtp-server-on-centos-7/

                                      Thanks! It looks simple enough and I hope it is.

                                      When I looked at the postfix documention it seems like it's a lot more complicated than that.

                                      is CentOS still where people want to be for things like this?

                                      I use Ubuntu or Fedora.

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

                                        @dashrender said in Local SMTP relay?:

                                        @pete-s said in Local SMTP relay?:

                                        @voip_n00b said in Local SMTP relay?:

                                        @pete-s said in Local SMTP relay?:

                                        Do you have any pointers on how to configure postfix for this?

                                        Lots of guides when googling "postfix smtp relay"

                                        Here is one:
                                        https://www.lisenet.com/2018/configure-postfix-to-relay-mail-to-an-external-smtp-server-on-centos-7/

                                        Thanks! It looks simple enough and I hope it is.

                                        When I looked at the postfix documention it seems like it's a lot more complicated than that.

                                        is CentOS still where people want to be for things like this?

                                        Not generally and never CentOS 7.

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