Browse Source

maddy config tweaks

main
Nick Thomas 3 years ago
parent
commit
fa5500a8c9
Signed by: lupine
GPG Key ID: 1F1A7ECCCFE0B92F
  1. 30
      roles/maddy/templates/etc/maddy/maddy.conf.tmpl

30
roles/maddy/templates/etc/maddy/maddy.conf.tmpl

@ -7,39 +7,41 @@ hostname {{ domain }}
log stderr
# Create and initialize sql module, it provides simple authentication and
# storage backend using one database for everything.
sql {
sql pgdb {
driver postgres
dsn "user=maddy dbname=maddy_prod host=/run/postgresql"
}
queue out-queue {
workers 16
max_tries 8
# TODO: remote delivery
target dummy
}
smtp smtp://[::]:25 {
auth sql
auth pgdb
# Verify that hostname in EHLO/HELO resolves to the source IP. Fail if it is not.
filter check_source_hostname
# Deliver all mail into sql module storage
destination {{ domain }} {
deliver sql
deliver pgdb
}
}
submission smtps://[::]:465 smtp://[::]:587 {
# Use sql module for authentication.
auth sql
require_auth
auth pgdb
# Deliver all mail for @example.org into sql module storage.
destination {{ domain }} {
deliver sql
deliver pgdb
}
# No remote delivery is implemented now, just deliver it to /dev/null for now.
deliver out-queue
}
imap imaps://[::]:993 imap://[::]:143 {
auth sql
storage sql
auth pgdb
storage pgdb
}

Loading…
Cancel
Save