sets up docker compose

This commit is contained in:
2025-08-04 10:05:23 -07:00
parent 31088cf112
commit e1b7da3dbe
12 changed files with 400 additions and 1 deletions

View File

View File

@@ -0,0 +1,11 @@
disable_plaintext_auth = no
auth_mechanisms = plain login
passdb {
driver = passwd-file
args = username_format=%u /etc/dovecot/users
}
userdb {
driver = static
args = uid=vmail gid=vmail home=/srv/mail/%d/%n mail=maildir:/srv/mail/%d/%n
}

View File

@@ -0,0 +1,39 @@
# Mailbox configuration
namespace {
separator = /
prefix =
location = maildir:/srv/mail/%d/%n
inbox = yes
# Auto-create and subscribe mailboxes
mailbox INBOX {
auto = subscribe
}
mailbox Pending {
auto = subscribe
}
mailbox Work {
auto = subscribe
}
mailbox Personal {
auto = subscribe
}
mailbox Receipts {
auto = subscribe
}
mailbox Marketing {
auto = subscribe
}
mailbox Archived {
auto = subscribe
}
}

View File

@@ -0,0 +1 @@
# Local configuration overrides

66
dovecot-conf/dovecot.conf Executable file
View File

@@ -0,0 +1,66 @@
## You should mount /etc/dovecot if you want to
## manage this file
mail_home=/srv/mail/%Lu
mail_location=sdbox:~/Mail
mail_uid=1000
mail_gid=1000
protocols = imap pop3 submission sieve lmtp
first_valid_uid = 1000
last_valid_uid = 1000
passdb {
driver = static
args = password=pass
}
ssl=yes
ssl_cert=<cert.pem
ssl_key=<key.pem
# namespace {
# inbox = yes
# separator = /
# }
service lmtp {
inet_listener {
port = 24
}
}
service imap-login {
process_min_avail = 1
client_limit = 1000
service_count = 0
}
service pop3-login {
process_min_avail = 1
client_limit = 1000
service_count = 0
}
service submission-login {
process_min_avail = 1
client_limit = 1000
service_count = 0
}
service managesieve-login {
process_min_avail = 1
client_limit = 1000
service_count = 0
}
listen = *
log_path=/dev/stdout
info_log_path=/dev/stdout
debug_log_path=/dev/stdout
verbose_proctitle = yes
!include_try /etc/dovecot/conf.d/*.conf

2
dovecot-conf/users Normal file
View File

@@ -0,0 +1,2 @@
user1@example.com:{PLAIN}password1
user2@example.com:{PLAIN}password2