So. OpenSMTPD und Dovecot laufen jetzt im Wesentlichen. Es fehlen noch: DKIM, Sieve/Pigeonhole, Catchall auf qsuscs.de (aktuell kommt halt nur das an blackhole.qsuscs.de auf diesem Server an), Autoconfig, Spamkrams … noch was?
/etc/mail/smtpd.conf
Code:
# $OpenBSD: smtpd.conf,v 1.7 2014/03/12 18:21:34 tedu Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
pki blackhole.qsuscs.de certificate "/etc/ssl/blackhole.qsuscs.de.crt"
pki blackhole.qsuscs.de key "/etc/ssl/private/blackhole.qsuscs.de.key"
listen on lo0
listen on egress port 25 tls pki blackhole.qsuscs.de
listen on egress port 465 smtps pki blackhole.qsuscs.de
listen on egress port 587 tls-require pki blackhole.qsuscs.de auth
table aliases db:/etc/mail/aliases.db
accept from any for local alias <aliases> deliver to lmtp "/var/dovecot/lmtp"
accept from any for domain qsuscs.de relay via secure://sculptor.uberspace.de
accept from local for any relay
# doveconf -n
Code:
# 2.2.18: /etc/dovecot/dovecot.conf
# OS: OpenBSD 5.8 amd64
first_valid_uid = 1000
mail_location = maildir:~/Maildir
mbox_write_locks = fcntl
mmap_disable = yes
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
separator = .
}
passdb {
driver = bsdauth
}
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service lmtp {
unix_listener lmtp {
mode = 0666
}
}
ssl = required
ssl_cert = </etc/ssl/blackhole.qsuscs.de.crt
ssl_cipher_list = ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SH
ssl_key = </etc/ssl/private/blackhole.qsuscs.de.key
ssl_prefer_server_ciphers = yes
ssl_protocols = TLSv1.2
submission_host = localhost
userdb {
driver = passwd
}
Von der Config gern inspirieren lassen, aber bitte nicht ohne Doku lesen einfach kopieren!