summaryrefslogtreecommitdiff
path: root/roles/gitlab/templates/main.cf.j2
blob: 3fcc001fbecd529c436127d892124222a8323175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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 = 127.0.0.1
myorigin = /etc/mailname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_loglevel = 1

smtpd_relay_restrictions =
    permit_mynetworks
    reject_unauth_destination