mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 18:14:38 +03:00
change default dmarc & tls reporting address so they don't contain a dash
The defaults for a new domain were dmarc-reports@ and tls-reports@. But some setups use "-" as catchall separator, which currently would cause messages to those addresses to be rejected with a "no such user" smtp error. Better to prevent these issues in the future by using dmarcreports@ and tlsreports@ localparts. The config checks don't enforce that the DMARC and TLS reporting addresses don't contain the localpart catchall separator. A next commit will fix accepting incoming reports to such addresses.
This commit is contained in:
@ -219,12 +219,12 @@ func MakeDomainConfig(ctx context.Context, domain, hostname dns.Domain, accountN
|
||||
DKIM: confDKIM,
|
||||
DMARC: &config.DMARC{
|
||||
Account: accountName,
|
||||
Localpart: "dmarc-reports",
|
||||
Localpart: "dmarcreports",
|
||||
Mailbox: "DMARC",
|
||||
},
|
||||
TLSRPT: &config.TLSRPT{
|
||||
Account: accountName,
|
||||
Localpart: "tls-reports",
|
||||
Localpart: "tlsreports",
|
||||
Mailbox: "TLSRPT",
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user