summaryrefslogtreecommitdiff
path: root/roles/gitlab/templates/main.cf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/gitlab/templates/main.cf.j2')
-rw-r--r--roles/gitlab/templates/main.cf.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/gitlab/templates/main.cf.j2 b/roles/gitlab/templates/main.cf.j2
new file mode 100644
index 0000000..3fcc001
--- /dev/null
+++ b/roles/gitlab/templates/main.cf.j2
@@ -0,0 +1,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