summaryrefslogtreecommitdiff
path: root/ansible/roles/mail-server/templates/postfix.main.cf.j2
blob: ba5c09f93b029c9438e521097f2c6521d6228707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Who are we? This varies depending on host.
myhostname = {{ mail_hostname }}
mydestination = {{ mail_hostname }}, localhost.localdomain, localhost


# Configure various things. These should be the same everywhere.
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
inet_interfaces = all
myorigin = /etc/mailname
relayhost = 
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
virtual_alias_maps = hash:/etc/postfix/virtual
mailbox_size_limit = 0
home_mailbox = Maildir/

# Configure TLS. We use the snakeoild self-signed certificate Debian
# creates automatically. MTAs don't generally care, this is just for
# opportunistic crypto use, but we don't rely on it.
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache