mmv

mailserver bootstrap script
git clone git://git.yotsev.xyz/mmv.git
Log | Files | Refs | README | LICENSE

commit aa34b685a47eb1fd76a5a26f667270449e5e4d4d
parent 504e86ea15d5a4a58677014456f616ae9f446afc
Author: Petar Yotsev <petar@yotsev.xyz>
Date:   Tue,  5 Oct 2021 11:16:35 +0100

Fix bugs

Diffstat:
Mfiles/local.conf | 4++--
Mfiles/smtpd.conf | 10++++------
2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/files/local.conf b/files/local.conf @@ -43,7 +43,7 @@ namespace inbox { type = private separator = / prefix = - location = ~/var/vmail/%d/%n/Inbox + location = /var/vmail/%d/%n/Inbox inbox = yes hidden = no list = yes @@ -71,7 +71,7 @@ namespace inbox { } } -mail_attachment_dir = ~/Maildir/attachments/ +mail_attachment_dir = /var/vmail/%d/%n/attachments # # protocol settings diff --git a/files/smtpd.conf b/files/smtpd.conf @@ -12,17 +12,15 @@ table virtuals file:/etc/mail/virtuals filter "rspamd" proc-exec "/usr/local/libexec/smtpd/filter-rspamd" # listen directives -listen on all tls pki "mail" hostname "<maildom>" filter "rspamd" -listen on egress port submission tls-require pki "mail" \ - hostname "<maildom>" auth <credentials> filter "rspamd" +listen on egress port 587 tls-require pki "mail" \ + hostname "<maildom>" auth <credentials> filter "rspamd" action "local" mbox alias <aliases> -action "inbound" maildir "/var/vmail/<domain>/%{dest.user:lowercase}" virtual <virtuals> +action "inbound" maildir "/var/vmail/%{dest.domain:lowercase}/%{dest.user:lowercase}" virtual <virtuals> action "outbound" relay helo "<domain>" # accept external mail match from any for domain "<domain>" action "inbound" match from local for local action "local" - -match from local for any action "outbound" match from auth for any action "outbound" +match from local for any action "outbound"