mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
aliases: Implement "via" aliases
This patch implements "via" aliases, which let us explicitly select a server to use for delivery. This feature is useful in different scenarios, such as a secondary MX server that forwards all incoming email to a primary. For now, it is experimental and the syntax and semantics are subject to change.
This commit is contained in:
@@ -671,7 +671,7 @@ func realMain(m *testing.M) int {
|
||||
udb := userdb.New("/dev/null")
|
||||
udb.AddUser("testuser", "testpasswd")
|
||||
s.aliasesR.AddAliasForTesting(
|
||||
"to@localhost", "testuser@localhost", aliases.EMAIL)
|
||||
"to@localhost", "testuser@localhost", nil, aliases.EMAIL)
|
||||
s.authr.Register("localhost", auth.WrapNoErrorBackend(udb))
|
||||
s.AddDomain("localhost")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user