11 // Hostname is the name of the MX server that is running.
17 const MailboxAccount = "mailbox@"
20 // Domain is the second component of a mail address: <local-part@domain.com>.
26 // Password for the POP3 mailbox user, mailbox@domain.com.
27 MailboxPassword string
29 // Location to store the mail messages.
32 // Blacklisted addresses that should not accept mail.
33 BlacklistedAddresses []string
36 func (c Config) GetTLSConfig() (*tls.Config, error) {
37 certs := make([]tls.Certificate, 0, len(c.Servers))
38 for _, server := range c.Servers {
39 if server.TLSCertPath == "" {
43 cert, err := tls.LoadX509KeyPair(server.TLSCertPath, server.TLSKeyPath)
47 certs = append(certs, cert)
54 config := &tls.Config{
57 config.BuildNameToCertificate()