commit - 59b0dd8d0c7eff4a86d0e8ac30fb71f9b4a9e54e
commit + 89ef9981d4d5c87bb55d4ab98b73633d04967bf5
blob - 7f31f7f9523fdd624a4fdf20faf5e28401ce0ed9
blob + a8abe496ed1b102ba46146ce7464c75c28215920
--- templates/smtpd.conf.j2
+++ templates/smtpd.conf.j2
-set queue compression
-
-set bounce warn-interval 1h, 6h, 2d
-set queue ttl 3d
-
## PKI
pki {{ domain }} cert "/etc/ssl/{{ domain }}_fullchain.pem"
pki {{ domain }} key "/etc/ssl/private/{{ domain }}_private.pem"
## Ports
listen on lo0
-listen on lo0 port 10028 tag DKIM_OUT
-listen on egress port 25 tls pki {{ domain }}
-listen on egress port 587 tls-require pki {{ domain }} auth <passwd>
+listen on egress tls pki {{ domain }} hostname \
+ {{ domain }}
+listen on egress smtps pki {{ domain }} hostname \
+ {{ domain }}
+## If you use neomutt as a client
+## on the same server as me you need
+## this rule
+listen on lo0 port submission tls-require pki {{ domain }} \
+ hostname {{ domain }} auth <passwd>
+##
+listen on egress port submission tls-require pki {{ domain }} \
+ hostname {{ domain }} auth <passwd>
+action "mda_with_aliases" mda \
+ "/usr/local/bin/rspamc --mime -e '/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest}'" \
+ alias <aliases> user vmail
+
action "mda_with_virtuals" mda \
- "/usr/local/bin/rspamc --mime --exec '/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest}'" \
+ "/usr/local/bin/rspamc --mime -e '/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest}'" \
virtual <virtuals> user vmail
-action "relay" relay helo {{ domain }}
-action "dkim" relay host smtp://127.0.0.1:10027
-## Block spammers
-match from any mail-from <blacklist-recipients> for domain <domains> reject
+action "relay" relay
-# Accept mail sent from local server to a local account
-match from local for local action "mda_with_virtuals"
-
+match from any mail-from <blacklist-recipients> for domain <domains> reject
+match for local action "mda_with_aliases"
match from any for domain <domains> action "mda_with_virtuals"
-
-match tag DKIM_OUT for any action "relay"
-
-match from local for any action dkim
-match auth from any for any action dkim
+match from local for any action "relay"
+match auth from any for any action "relay"