11 // Hostname is the name of the MX server that is running.
18 // Domain is the second component of a mail address: <local-part@domain.com>.
24 // Password for the POP3 mailbox user, mailbox@domain.com.
25 MailboxPassword string
27 // Location to store the mail messages.
30 // Blacklisted addresses that should not accept mail.
31 BlacklistedAddresses []string
34 func (c Config) GetTLSConfig() (*tls.Config, error) {
35 certs := make([]tls.Certificate, 0, len(c.Servers))
36 for _, server := range c.Servers {
37 if server.TLSCertPath == "" {
41 cert, err := tls.LoadX509KeyPair(server.TLSCertPath, server.TLSKeyPath)
45 certs = append(certs, cert)
52 config := &tls.Config{
55 config.BuildNameToCertificate()