mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
SMTP Relay initialization
This commit is contained in:
parent
7ffc889c08
commit
d9397a026b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user