-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple SMTP servers #2271
Comments
Yeah, I didn't know this was ever supported. But shouldn't be too hard to bring it back in general I guess. If that is expected and enough, it can be easily added to server/lib/private/Mail/Mailer.php Line 180 in ba87db3
|
Hm, so was it actually there before and somehow got scrapped? :D Yeah, for a start just covering what is written in the documentation sounds sufficient. And individual credentials, protocols etc. for each server could then for example be added as a further enhancement. |
I'm not sure, if so it got killed with the introduction of swiftmailer in 8.0 |
@nickvergessen I would say we don't support it. Because it doesn't seem to work for a longer time, which means it isn't used at all :( Instead of adding more complexity here I would vote for adjusting the documentation. |
Well thing is, it at least works with only one SMTP server. But that doesn't mean backup servers wouldn't be needed. When emails can't be sent out due to SMTP server failure, it indeed can have a critical impact especially on large scale projects. Having the option to employ backup servers isn't really that special, last but not least that's also why email providers offer more than one SMTP server for backup. And as discussed above, it is not all that much effort to re-implement this feature. We would really need this on the long run, and I'm sure there are other Nextcloud users who would welcome the feature. |
We are happy about pull requests. But many people here are already doing other stuff that is also needed. As this doesn't work right now I would not rate this a bug but a wrong documentation. I will make this a enhancement ticket then :) |
Perfect, thanks :D |
I am going to close this since there doesn't seem to be a lot of interest (no upvotes) and no respond since around 2 years. Please reopen if you still want to implement this. |
Maybe I'm all wrong, but it seems like multiple SMTP servers aren't supported even though the documentation says so?
Have tried with the current master to set multiple hosts separated by semicolon for the 'mail_smtphost' parameter, but sending a test mail fails as the whole hosts string is treated as one host which obviously can't be connected to
In the source code it doesn't look like Swiftmailer's multiple hosts features are used, e.g. Swift_FailoverTransport or Swift_LoadBalancedTransport...
Hope I'm wrong though as I would like to use the feature. Maybe someone can shed some light on this? Thanks :)
The text was updated successfully, but these errors were encountered: