change SMTP server
-
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? -
@andreasdueren Yes, you have to change the SMTP settings on the cloudron level
-
@andreasdueren You can configure a relay there. See the docs : https://docs.cloudron.io/email/#relay-outbound-mails
-
@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 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. -
@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.
-
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.
-
@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.
-
@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.