mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:54:40 +03:00
store rejects for 14 days, and don't keep them as neutral by default so they won't cause outright rejects for repeated delivery attempts of spam messages
the previous default, marking the messages as junk had the interesting effect of training the junk filter. rejecting could have been the result of the sending IP being in the DNSBL. so the DNSBL helped to automatically train the junk filter. perhaps we can keep that in the future and just not take messages from the rejects mailbox into account when evaluating the reputation for incoming deliveries.
This commit is contained in:
@ -130,8 +130,8 @@ func MakeAccountConfig(addr smtp.Address) config.Account {
|
||||
},
|
||||
}
|
||||
account.AutomaticJunkFlags.Enabled = true
|
||||
account.AutomaticJunkFlags.JunkMailboxRegexp = "^(junk|spam|rejects)"
|
||||
account.AutomaticJunkFlags.NeutralMailboxRegexp = "^(inbox|neutral|postmaster|dmarc|tlsrpt)"
|
||||
account.AutomaticJunkFlags.JunkMailboxRegexp = "^(junk|spam)"
|
||||
account.AutomaticJunkFlags.NeutralMailboxRegexp = "^(inbox|neutral|postmaster|dmarc|tlsrpt|rejects)"
|
||||
account.SubjectPass.Period = 12 * time.Hour
|
||||
return account
|
||||
}
|
||||
|
Reference in New Issue
Block a user