💾 Archived View for mediocregopher.com › assets › maddy-vultr.conf captured on 2023-09-08 at 16:13:41. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
state_dir ${stateDir}
$(hostname) = mx.mydomain.com
hostname $(hostname)
$(primary_domain) = mydomain.com
$(local_domains) = $(primary_domain)
tls file /etc/letsencrypt/live/$(hostname)/fullchain.pem /etc/letsencrypt/live/$(hostname)/privkey.pem
auth.pass_table local_authdb {
table sql_table {
driver sqlite3
dsn credentials.db
table_name passwords
}
}
target.remote outbound_delivery {
mx_auth {
dane
mtasts {
cache fs
fs_dir mtasts_cache/
}
local_policy {
min_tls_level encrypted
min_mx_level none
}
}
}
submission tcp://0.0.0.0:587 {
auth &local_authdb
insecure_auth true
modify {
dkim $(primary_domain) $(local_domains) default
}
deliver_to &outbound_delivery
}
target.smtp forward_to_desktop {
targets tcp://mediocre-desktop.private-domain.com:25
}
smtp tcp://0.0.0.0:25 {
limits {
all rate 5 1s
all concurrency 2
}
dmarc yes
check {
require_mx_record
dkim
spf
}
source $(local_domains) {
reject 501 5.1.8 "Use Submission for outgoing SMTP"
}
default_source {
destination postmaster $(local_domains) {
deliver_to &forward_to_desktop
}
default_destination {
reject 550 5.1.1 "User doesn't exist"
}
}
}