Start saving SMTP messages in the maildrop.
[mailpopbox.git] / config.go
1 package main
2
3 type Config struct {
4 SMTPPort int
5 POP3Port int
6
7 // Hostname is the name of the MX server that is running.
8 Hostname string
9
10 Servers []Server
11 }
12
13 type Server struct {
14 // Domain is the second component of a mail address: <local-part@domain.com>.
15 Domain string
16
17 TLSKeyPath string
18 TLSCertPath string
19
20 // Password for the POP3 mailbox user, mailbox@domain.com.
21 MailboxPassword string
22
23 // Location to store the mail messages.
24 MaildropPath string
25
26 // Blacklisted addresses that should not accept mail.
27 BlacklistedAddresses []string
28 }