🔧 Configure Main Postfix domain
This commit is contained in:
parent
b685832d12
commit
5c2230b77d
|
@ -34,7 +34,7 @@ COPY rsyslog.d /etc/rsyslog.d
|
||||||
|
|
||||||
COPY sympa.conf.template /etc/sympa/sympa/sympa.conf.template
|
COPY sympa.conf.template /etc/sympa/sympa/sympa.conf.template
|
||||||
|
|
||||||
COPY main.cf /etc/postfix/main.cf
|
COPY main.cf.template /etc/postfix/main.cf.template
|
||||||
COPY master.cf /etc/postfix/master.cf
|
COPY master.cf /etc/postfix/master.cf
|
||||||
|
|
||||||
COPY entrypoint.sh /root/entrypoint.sh
|
COPY entrypoint.sh /root/entrypoint.sh
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cat /etc/sympa/sympa/sympa.conf.template | sed "s/{{MAIN_LIST_DOMAIN}}/$MAIN_LIST_DOMAIN/g" | sed "s/{{LISTMASTERS}}/$LISTMASTERS/g" | sed "s/{{DB_TYPE}}/$DB_TYPE/g" | sed "s/{{DB_NAME}}/$DB_NAME/g" | sed "s/{{DB_HOST}}/$DB_HOST/g" | sed "s/{{DB_PORT}}/$DB_PORT/g" | sed "s/{{DB_USER}}/$DB_USER/g" | sed "s/{{DB_PASSWORD}}/$DB_PASSWORD/g" > /etc/sympa/sympa/sympa.conf
|
cat /etc/sympa/sympa/sympa.conf.template | sed "s/{{MAIN_LIST_DOMAIN}}/$MAIN_LIST_DOMAIN/g" | sed "s/{{LISTMASTERS}}/$LISTMASTERS/g" | sed "s/{{DB_TYPE}}/$DB_TYPE/g" | sed "s/{{DB_NAME}}/$DB_NAME/g" | sed "s/{{DB_HOST}}/$DB_HOST/g" | sed "s/{{DB_PORT}}/$DB_PORT/g" | sed "s/{{DB_USER}}/$DB_USER/g" | sed "s/{{DB_PASSWORD}}/$DB_PASSWORD/g" > /etc/sympa/sympa/sympa.conf
|
||||||
|
rm /etc/postfix/main.cf && cat /etc/postfix/main.cf.template | sed "s/{{MAIN_LIST_DOMAIN}}/$MAIN_LIST_DOMAIN/g" > /etc/postfix/main.cf
|
||||||
|
|
||||||
|
[[ -d /var/lib/sympa/bounce ]] || mkdir -p /var/lib/sympa/bounce
|
||||||
|
|
||||||
chown -R sympa:sympa /etc/sympa/sympa_transport \
|
chown -R sympa:sympa /etc/sympa/sympa_transport \
|
||||||
/var/spool/sympa \
|
/var/spool/sympa \
|
||||||
|
|
|
@ -34,11 +34,11 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||||||
# information on enabling SSL in the smtp client.
|
# information on enabling SSL in the smtp client.
|
||||||
|
|
||||||
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
|
||||||
myhostname = 70b9f42c4290.pulseheberg.com
|
myhostname = {{MAIN_LIST_DOMAIN}}
|
||||||
alias_maps = hash:/etc/aliases
|
alias_maps = hash:/etc/aliases
|
||||||
alias_database = hash:/etc/aliases
|
alias_database = hash:/etc/aliases
|
||||||
myorigin = /etc/mailname
|
myorigin = /etc/mailname
|
||||||
mydestination = $myhostname, 70b9f42c4290, localhost.localdomain, localhost
|
mydestination = $myhostname, localhost.localdomain, localhost
|
||||||
relayhost =
|
relayhost =
|
||||||
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
||||||
mailbox_command = procmail -a "$EXTENSION"
|
mailbox_command = procmail -a "$EXTENSION"
|
Loading…
Reference in New Issue