Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Vaultwarden
  3. change SMTP server

change SMTP server

Scheduled Pinned Locked Moved Vaultwarden
10 Posts 4 Posters 1.9k Views 4 Watching
  • 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.
    • andreasduerenA Offline
      andreasduerenA Offline
      andreasdueren
      wrote on last edited by
      #1

      I am trying to change the SMTP server used for sending mail in vaultwarden since the IP of my server is blocked by a major provider and I urgently need to send out a transactional email.

      However when I do change the settings in the config.json, they are immediately reset on restart of the app.
      Adding the SMTP environment variables to the convig.env unfortunately is not overriding it either. Any ideas?

      mehdiM micmcM 3 Replies Last reply
      0
      • andreasduerenA andreasdueren

        I am trying to change the SMTP server used for sending mail in vaultwarden since the IP of my server is blocked by a major provider and I urgently need to send out a transactional email.

        However when I do change the settings in the config.json, they are immediately reset on restart of the app.
        Adding the SMTP environment variables to the convig.env unfortunately is not overriding it either. Any ideas?

        mehdiM Offline
        mehdiM Offline
        mehdi
        App Dev
        wrote on last edited by
        #2

        @andreasdueren Yes, you have to change the SMTP settings on the cloudron level

        1 Reply Last reply
        0
        • andreasduerenA andreasdueren

          I am trying to change the SMTP server used for sending mail in vaultwarden since the IP of my server is blocked by a major provider and I urgently need to send out a transactional email.

          However when I do change the settings in the config.json, they are immediately reset on restart of the app.
          Adding the SMTP environment variables to the convig.env unfortunately is not overriding it either. Any ideas?

          mehdiM Offline
          mehdiM Offline
          mehdi
          App Dev
          wrote on last edited by
          #3

          @andreasdueren You can configure a relay there. See the docs : https://docs.cloudron.io/email/#relay-outbound-mails

          andreasduerenA 1 Reply Last reply
          1
          • mehdiM mehdi

            @andreasdueren You can configure a relay there. See the docs : https://docs.cloudron.io/email/#relay-outbound-mails

            andreasduerenA Offline
            andreasduerenA Offline
            andreasdueren
            wrote on last edited by
            #4

            @mehdi I really don't want to change them on the cloudron level though since I don't want to use the domain for transactional emails only

            mehdiM girishG 2 Replies Last reply
            0
            • andreasduerenA andreasdueren

              @mehdi I really don't want to change them on the cloudron level though since I don't want to use the domain for transactional emails only

              mehdiM Offline
              mehdiM Offline
              mehdi
              App Dev
              wrote on last edited by
              #5

              @andreasdueren There is no way, to my knowledge, to force an app to use different SMTP settings than the platform. If you need, you can just add a relay to the platform, send you email, then remove it 🤷

              andreasduerenA 1 Reply Last reply
              0
              • andreasduerenA andreasdueren

                I am trying to change the SMTP server used for sending mail in vaultwarden since the IP of my server is blocked by a major provider and I urgently need to send out a transactional email.

                However when I do change the settings in the config.json, they are immediately reset on restart of the app.
                Adding the SMTP environment variables to the convig.env unfortunately is not overriding it either. Any ideas?

                micmcM Offline
                micmcM Offline
                micmc
                wrote on last edited by
                #6

                @andreasdueren If it's the IP address which is blocked then there must be a reason and most of the time it's because it's blocked by online email spam blacklisted IP services. You should do the process it's normally quick and easy.
                Otherwise, you could counter this by installing your vault on another cloudron instance.

                Ignorance is not an excuse anymore!
                https://AutomateKit.com

                1 Reply Last reply
                0
                • mehdiM mehdi

                  @andreasdueren There is no way, to my knowledge, to force an app to use different SMTP settings than the platform. If you need, you can just add a relay to the platform, send you email, then remove it 🤷

                  andreasduerenA Offline
                  andreasduerenA Offline
                  andreasdueren
                  wrote on last edited by
                  #7

                  @mehdi Well other apps like the LAMP stack allow me to use a secondary SMTP server as well. I don't see any reason why it should be impossible here.

                  The reason in this case is that the IP didn't build up enough "credibility" yet since its a new IP address.

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    Apps have to be packaged specifically to allow a custom SMTP server. We added the optional flag to sendmail addon for this purpose a couple of releases ago.

                    So far, we changed the "marketing" apps or apps that can be used for marketing like mautic/wordpress/mailtrain/lamp etc to use this flag. The idea is that the relay is used for transactional emails but the flag can be turned on at per-app level to not use the relay and use something else for marketing mails.

                    1 Reply Last reply
                    0
                    • andreasduerenA andreasdueren

                      @mehdi I really don't want to change them on the cloudron level though since I don't want to use the domain for transactional emails only

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #9

                      @andreasdueren said in change SMTP server:

                      @mehdi I really don't want to change them on the cloudron level though since I don't want to use the domain for transactional emails only

                      Is it not possible to configure the relay for transaction emails and your other apps individually for marketing purpose? For the latter, if there is a marketing app/use case we missed, we can fix the package.

                      andreasduerenA 1 Reply Last reply
                      0
                      • girishG girish

                        @andreasdueren said in change SMTP server:

                        @mehdi I really don't want to change them on the cloudron level though since I don't want to use the domain for transactional emails only

                        Is it not possible to configure the relay for transaction emails and your other apps individually for marketing purpose? For the latter, if there is a marketing app/use case we missed, we can fix the package.

                        andreasduerenA Offline
                        andreasduerenA Offline
                        andreasdueren
                        wrote on last edited by
                        #10

                        @girish Yes, vaultwarden sends out e-mails for things like invitations to companies, password resets etc. And there is no way to change the server used in the GUI, only as an environment variable.
                        So it would be nice if it would be an option to for example use SES or mailgun here.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search