# HG changeset patch # User Shin'ya Minazuki # Date 1764545895 -32400 # Node ID 007252fb6449da4123bae1bf21dc2659516f3383 # Parent e3de72cc63b9ab4a707342541ee72a94bcd1082d SHIN'YA M. > ADD README.md diff -r e3de72cc63b9 -r 007252fb6449 README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Mon Dec 01 08:38:15 2025 +0900 @@ -0,0 +1,13 @@ +# laidback.moe mail server + +## Dependencies +* Cyrus SASL (with `saslauthd`) +* Dovecot +* Postfix with Cyrus SASL support built-in (you may have to build it yourself) +* Rspamd + +## Setup +Search and replace, and figure out everything yourself. + +## Authors +* [Nishi](https://nishi.boats) diff -r e3de72cc63b9 -r 007252fb6449 dovecot/dovecot.conf --- a/dovecot/dovecot.conf Mon Nov 10 21:14:26 2025 +0900 +++ b/dovecot/dovecot.conf Mon Dec 01 08:38:15 2025 +0900 @@ -31,29 +31,10 @@ # Hostname hostname = example.net -# PostgreSQL UserDB -#userdb { -# driver = sql -# args = /etc/dovecot/pgsql.conf -#} - -#passdb { -# driver = sql -# args = /etc/dovecot/pgsql.conf -#} - protocol lmtp { mail_plugins = $mail_plugins sieve } -service auth { - unix_listener auth-userdb { - mode = 0660 - user = dovecot - group = mail - } -} - passdb { driver = pam } @@ -62,6 +43,13 @@ driver = passwd } +service auth { + unix_listener auth-userdb { + mode = 0660 + user = dovecot + group = mail + } +} service lmtp { unix_listener lmtp { mode = 0660 diff -r e3de72cc63b9 -r 007252fb6449 postfix/main.cf --- a/postfix/main.cf Mon Nov 10 21:14:26 2025 +0900 +++ b/postfix/main.cf Mon Dec 01 08:38:15 2025 +0900 @@ -1,11 +1,3 @@ -# See /usr/share/postfix/main.cf.dist for a commented, more complete version - - -# Debian specific: Specifying a file name will cause the first -# line of that file to be used as the name. The Debian default -# is /etc/mailname. -#myorigin = /etc/mailname - setgid_group = maildrop smtpd_banner = $myhostname ESMTP $mail_name (NetBSD) biff = no @@ -22,8 +14,6 @@ # fresh installs. compatibility_level = 3.6 - - # TLS parameters smtpd_tls_cert_file=/etc/letsencrypt/live/example.net/fullchain.pem smtpd_tls_key_file=/etc/letsencrypt/live/example.net/privkey.pem @@ -33,7 +23,6 @@ smtp_tls_security_level=may smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache - smtpd_sasl_auth_enable = yes smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination