add catch-all mailbox, closes #25

This commit is contained in:
Aine
2022-10-04 21:45:52 +03:00
parent 4c6b7c2c1a
commit d6b6a5dc44
5 changed files with 69 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ const acBotSettingsKey = "cc.etke.postmoogle.config"
// bot options keys
const (
botOptionUsers = "users"
botOptionCatchAll = "catch-all"
botOptionDKIMSignature = "dkim.pub"
botOptionDKIMPrivateKey = "dkim.pem"
)
@@ -42,6 +43,11 @@ func (s botSettings) Users() []string {
return []string{value}
}
// CatchAll option
func (s botSettings) CatchAll() string {
return s.Get(botOptionCatchAll)
}
// DKIMSignature (DNS TXT record)
func (s botSettings) DKIMSignature() string {
return s.Get(botOptionDKIMSignature)