Initial commit
This commit is contained in:
13
templates/aliases.j2
Normal file
13
templates/aliases.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
postmaster: root
|
||||
nobody: root
|
||||
hostmaster: root
|
||||
usenet: root
|
||||
news: root
|
||||
webmaster: root
|
||||
www: root
|
||||
ftp: root
|
||||
abuse: root
|
||||
noc: root
|
||||
security: root
|
||||
root: {{ vm_user }}
|
||||
{{ vm_user }}: {{ external_email_address }}
|
28
templates/main.cf.j2
Normal file
28
templates/main.cf.j2
Normal file
@@ -0,0 +1,28 @@
|
||||
biff = no
|
||||
append_dot_mydomain = no
|
||||
compatibility_level = 2
|
||||
myhostname = {{ mail_hostname }}
|
||||
alias_maps = hash:/etc/aliases
|
||||
alias_database = hash:/etc/aliases
|
||||
myorigin = {{ mail_hostname }}
|
||||
mydestination = $myhostname, {{ mail_hostname }}, localhost
|
||||
relayhost = [{{ relay_host }}]:{{ relay_port }}
|
||||
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
||||
mailbox_size_limit = 0
|
||||
recipient_delimiter = +
|
||||
inet_interfaces = localhost
|
||||
inet_protocols = all
|
||||
|
||||
# enable SASL authentication
|
||||
smtp_sasl_auth_enable = yes
|
||||
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
|
||||
smtp_sasl_security_options = noanonymous
|
||||
smtp_sasl_tls_security_options = noanonymous
|
||||
|
||||
# Enable STARTTLS encryption
|
||||
smtp_use_tls = yes
|
||||
smtp_tls_wrappermode = yes
|
||||
smtp_tls_security_level = encrypt
|
||||
|
||||
# Setup sender canonical mapping
|
||||
sender_canonical_maps = hash:/etc/postfix/sender_canonical
|
1
templates/sasl_passwd.j2
Normal file
1
templates/sasl_passwd.j2
Normal file
@@ -0,0 +1 @@
|
||||
[{{ relay_host }}]:{{ relay_port }} {{ relay_user }}:{{ relay_password }}
|
2
templates/sender_canonical.j2
Normal file
2
templates/sender_canonical.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
root root@{{ canonical_name }}
|
||||
{{ vm_user }} {{ vm_user }}@{{ canonical_name }}
|
Reference in New Issue
Block a user