Bump the version to 2.1.0.
[mailpopbox.git] / config.go
index ff695751f579c69698061d13695637d8c8f88d7c..961d2cb8f36ca36d15d32c2c8eec61428437c7f5 100644 (file)
--- a/config.go
+++ b/config.go
@@ -20,6 +20,8 @@ type Config struct {
        Servers []Server
 }
 
+const MailboxAccount = "mailbox@"
+
 type Server struct {
        // Domain is the second component of a mail address: <local-part@domain.com>.
        Domain string
@@ -33,8 +35,9 @@ type Server struct {
        // Location to store the mail messages.
        MaildropPath string
 
-       // Blacklisted addresses that should not accept mail.
-       BlacklistedAddresses []string
+       // Addresses that should not accept mail. This should include the @domain
+       // component.
+       BlockedAddresses []string
 }
 
 func (c Config) GetTLSConfig() (*tls.Config, error) {