mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 10:34:40 +03:00
allow requesting a certificate for autodiscover.<domain>, but don't recommend a DNS record that would make requests to it.
this may help testing again in the future. autodiscover with outlook is not working now.
This commit is contained in:
@ -193,12 +193,17 @@ func (c *Config) allowACMEHosts() {
|
||||
for _, dom := range c.Dynamic.Domains {
|
||||
|
||||
if l.AutoconfigHTTPS.Enabled {
|
||||
d, err := dns.ParseDomain("autoconfig." + dom.Domain.ASCII)
|
||||
if err != nil {
|
||||
if d, err := dns.ParseDomain("autoconfig." + dom.Domain.ASCII); err != nil {
|
||||
xlog.Errorx("parsing autoconfig domain", err, mlog.Field("domain", dom.Domain))
|
||||
continue
|
||||
} else {
|
||||
m.AllowHostname(d)
|
||||
}
|
||||
|
||||
if d, err := dns.ParseDomain("autodiscover." + dom.Domain.ASCII); err != nil {
|
||||
xlog.Errorx("parsing autodiscover domain", err, mlog.Field("domain", dom.Domain))
|
||||
} else {
|
||||
m.AllowHostname(d)
|
||||
}
|
||||
m.AllowHostname(d)
|
||||
}
|
||||
|
||||
if l.MTASTSHTTPS.Enabled && dom.MTASTS != nil {
|
||||
|
Reference in New Issue
Block a user