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