mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
queue: Get the DSN domain from the message
Picking the domain used in the DSN message "From" header is more complicated than it needs to be, causing confusing code paths and having different uses for the hostname, which should be purely aesthetic. This patch makes the queue pick the DSN "From" domain from the message itself, by looking for a local domain in either the sender or the original recipients. We should find at least one, otherwise it'd be relaying. This allows the code to be simplified, and we can narrow the scope of the hostname option even further.
This commit is contained in:
@@ -2,13 +2,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
message Config {
|
||||
// Main/default hostname to use.
|
||||
// This is used to say hello to clients, and by default as the domain
|
||||
// we send delivery notifications errors from.
|
||||
// It should be a domain we can send email from, and we should have a
|
||||
// certificate for it.
|
||||
// It usually helps if our IP address resolves to it.
|
||||
// Default: machine hostname.
|
||||
// Default hostname to use when saying hello.
|
||||
// This is used to say hello to clients, for aesthetic purposes.
|
||||
// Default: the system's hostname.
|
||||
string hostname = 1;
|
||||
|
||||
// Maximum email size, in megabytes.
|
||||
|
||||
Reference in New Issue
Block a user