Your question
I want to use stalwart as a kind of unified mailbox for my private and business mails. I do not want to operate my own smtp server, but send mails over my private and business servers.
Is there a way to select the outgoing stmp based on the sender address? I tried the following without success, as the mail do not seem to be relayed to the respective smtp sever:
[[directory.in-memory.principals]]
class = "individual"
email = ["[email protected]"]
name = "[email protected]"
secret = "pass"
[[directory.in-memory.principals]]
class = "individual"
email = ["[email protected]"]
name = "[email protected]"
secret = "pass"
[queue.route.private]
address = "smtp.private-server.com"
description = "private smpt relay"
port = 587
protocol = "smtp"
type = "relay"
[queue.route.private.auth]
secret = "pass"
username = "[email protected]"
[queue.route.private.tls]
allow-invalid-certs = true
implicit = true
[queue.route.business]
address = "smtp.business.com"
description = "business smpt relay"
port = 587
protocol = "smtp"
type = "relay"
[queue.route.business.auth]
secret = "pass"
username = "[email protected]"
[queue.route.business.tls]
allow-invalid-certs = true
implicit = false
[[queue.strategy.route]]
if = "sender == '[email protected]'"
then = "'private'"
[[queue.strategy.route]]
if = "sender == '[email protected]'"
then = "'business'"
[[queue.strategy.route]]
else = "'local'"
```