From b3f46e0353d404dcf886020baef82cb71e6b7eb7 Mon Sep 17 00:00:00 2001 From: arf20 Date: Sun, 24 Dec 2023 15:54:24 +0100 Subject: Initial commit --- README.md | 27 ++++++++++ dovecot/dovecot.conf | 40 +++++++++++++++ gnu-mailutils/.mailrc | 2 + gnu-mailutils/mailutils.conf | 4 ++ postfix/aliases | 12 +++++ postfix/main.cf | 48 ++++++++++++++++++ postfix/master.cf | 114 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 247 insertions(+) create mode 100644 README.md create mode 100644 dovecot/dovecot.conf create mode 100644 gnu-mailutils/.mailrc create mode 100644 gnu-mailutils/mailutils.conf create mode 100644 postfix/aliases create mode 100644 postfix/main.cf create mode 100644 postfix/master.cf diff --git a/README.md b/README.md new file mode 100644 index 0000000..1a59c8d --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# mail-conf +ARFNET mail server configuration + +Postfix SMTP MTA and smtpd. +With smtpd at ports 25, SMTPS submission at 465 and STARTTLS submission at 587. +Accepts all connections, relays mail from authenticated users, rejects unauthenticated relaying. + +Dovecot IMAP daemon +IMAP at 145 and IMAPS at 993 + +Domain: `arf20.com` (MX mail.arf20.com) (PTR, TLSA, SPF, DKIM and DMARC configured) +FQDN: `mail.arf20.com` +hostname: `mail` +mailname: `arf20.com` + +``` +postfix +|- master.cf daemon instance specific, { smtpd, submission, submissions } +|- main.cf program specific, { smtp, smtpd } +|- aliases address aliases +dovecot +|- dovecot.conf dovecot config +gnu-mailutils +|- mailutils.conf GNU mailutils config +|- .mailrc user specific mail options +``` + diff --git a/dovecot/dovecot.conf b/dovecot/dovecot.conf new file mode 100644 index 0000000..1266741 --- /dev/null +++ b/dovecot/dovecot.conf @@ -0,0 +1,40 @@ +disable_plaintext_auth = no +mail_privileged_group = mail +mail_location = mbox:~/mail:INBOX=/var/mail/%n +userdb { + driver = passwd +} +passdb { + args = dovecot + driver = pam + #driver = passwd-file + #args = scheme=plain username_format=%n /etc/dovecot/passwd +} +protocols = " imap" + +namespace inbox { + inbox = yes + + mailbox Trash { + auto = subscribe # autocreate and autosubscribe the Trash mailbox + special_use = \Trash + } + mailbox Sent { + auto = subscribe # autocreate and autosubscribe the Sent mailbox + special_use = \Sent + } +} + + +service auth { + unix_listener /var/spool/postfix/private/auth { + group = postfix + mode = 0660 + user = postfix + } +} + +ssl=required +ssl_cert =