mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #2985] Modoboa should allow the use of an external SMTP #1720
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1720
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Toniob on GitHub (Apr 27, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2985
Currently, Modoboa considers that the SMTP server is available on localhost. That’s a good assumption for most of the setups. But with bigger networks, it might not be the case. And if no SMTP server is available, some functions are failing : autoreply for example, and mail notifications too.
It should be allowed to configure an external SMTP for all those cases. I’m thinking about some configuration options in the settings file.
@fpiccinali commented on GitHub (Oct 26, 2023):
And what about to have a list of domains and select a smtp dedicated.
Postfix can select a transport based on the author of the message.
Another idea :
We could also have a list of SMTP. We try to send a message with the first domain, and if it fail, we try we the second smtp , and so on.
@sabo14 commented on GitHub (Jan 28, 2024):
Modoboa should allow to use separate smtp setting for each domain
@tonioo commented on GitHub (Jul 15, 2025):
To reply to original question, which is related to Modoboa sending emails in some cases (mostly notifications), it's actually possible to configure a different SMTP server thanks to Django: https://docs.djangoproject.com/en/5.2/topics/email/.
@fpiccinali @sabo14 What you're suggesting might be achieved using sender_dependent_relayhost_maps setting in postfix, and a bit of work to make that customizable directly from the UI.