1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

SMTP Relay initialization

This commit is contained in:
David Duque 2020-04-16 20:19:14 +01:00
parent 7ffc889c08
commit d9397a026b
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A

View File

@ -260,6 +260,26 @@ chmod +x /etc/cron.daily/mailinabox-postgrey-whitelist
tools/editconf.py /etc/postfix/main.cf \ tools/editconf.py /etc/postfix/main.cf \
message_size_limit=134217728 message_size_limit=134217728
# Store default configurations for SMTP relays:
tools/editconf.py /etc/postfix/main.cf \
smtp_sasl_auth_enable=no \
smtp_sasl_password_maps="hash:/etc/postfix/sasl_passwd" \
smtp_sasl_security_options=anonymous \
smtp_sasl_tls_security_options=anonymous \
smtp_tls_security_level=encrypt \
header_size_limit=4096000
touch /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
# Store those configurations in the mailinabox.conf file
tools/editconf.py /etc/mailinabox.conf \
SMTP_RELAY_ENABLED=false \
SMTP_RELAY_HOST="" \
SMTP_RELAY_AUTH=false \
SMTP_RELAY_USER=""
# Allow the two SMTP ports in the firewall. # Allow the two SMTP ports in the firewall.
ufw_allow smtp ufw_allow smtp