mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-28 20:56:03 +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:
@@ -8,4 +8,9 @@ type Courier interface {
|
||||
// Deliver mail to a recipient. Return the error (if any), and whether it
|
||||
// is permanent (true) or transient (false).
|
||||
Deliver(from string, to string, data []byte) (error, bool)
|
||||
|
||||
// Forward mail using the given servers.
|
||||
// Return the error (if any), and whether it is permanent (true) or
|
||||
// transient (false).
|
||||
Forward(from string, to string, data []byte, servers []string) (error, bool)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user