2 Commits

Author SHA1 Message Date
Râu Cao
fbad0bf896 More explicit postfix configs 2023-12-03 18:33:12 +01:00
Râu Cao
8a7eeb1dd9 Change INBOX location 2023-12-03 18:32:55 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -24,6 +24,9 @@ node.normal['postfix']['main']['mydomain'] = domain
node.normal['postfix']['main']['myorigin'] = domain
node.normal['postfix']['main']['myhostname'] = hostname
node.normal['postfix']['main']['mynetworks'] = ["10.1.1.0/24", "127.0.0.0/8"]
node.normal['postfix']['main']['mydestination'] = [domain, hostname, 'localhost.localdomain', 'localhost'].compact
node.normal['postfix']['main']['smtp_use_tls'] = "yes"
node.normal['postfix']['main']['smtp_tls_security_level'] = "may"
node.normal['postfix']['main']['smtpd_use_tls'] = "yes"
node.normal['postfix']['main']['smtpd_tls_cert_file'] = "/etc/letsencrypt/live/#{hostname}/fullchain.pem"
node.normal['postfix']['main']['smtpd_tls_key_file'] = "/etc/letsencrypt/live/#{hostname}/privkey.pem"

View File

@@ -27,7 +27,7 @@
#
# <doc/wiki/MailLocation.txt>
#
mail_location = mbox:~/mail:INBOX=/var/mail/%d/%u
mail_location = mbox:~/mail:INBOX=~/mail/INBOX
# If you need to set multiple mailbox locations or want to change default
# namespace settings, you can do it by defining namespace sections.