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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    change SMTP server

    Vaultwarden
    4
    10
    190
    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.
    • andreasdueren
      andreasdueren last edited by

      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?

      mehdi micmc 3 Replies Last reply Reply Quote 0
      • mehdi
        mehdi App Dev @andreasdueren last edited by

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

        1 Reply Last reply Reply Quote 0
        • mehdi
          mehdi App Dev @andreasdueren last edited by

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

          andreasdueren 1 Reply Last reply Reply Quote 1
          • andreasdueren
            andreasdueren @mehdi last edited by

            @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

            mehdi girish 2 Replies Last reply Reply Quote 0
            • mehdi
              mehdi App Dev @andreasdueren last edited by

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

              andreasdueren 1 Reply Last reply Reply Quote 0
              • micmc
                micmc @andreasdueren last edited by

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


                https://marketingtechnology.services

                1 Reply Last reply Reply Quote 0
                • andreasdueren
                  andreasdueren @mehdi last edited by

                  @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 Reply Quote 0
                  • girish
                    girish Staff last edited by

                    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 Reply Quote 0
                    • girish
                      girish Staff @andreasdueren last edited by

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

                      andreasdueren 1 Reply Last reply Reply Quote 0
                      • andreasdueren
                        andreasdueren @girish last edited by

                        @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 Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB