Commit 383ed618 by Daniel Marinovici

refs #31595: remove unneeded file (refactored)

parent 5436abf3
#!/bin/bash
# Set up user
function setup_conf_and_secret {
postconf -e 'smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.trust.crt'
postconf -e "relayhost = [$MTP_RELAY]:$MTP_PORT"
postconf -e 'smtp_sasl_auth_enable = yes'
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd'
postconf -e 'smtp_sasl_security_options = noanonymous'
postconf -e 'smtp_tls_security_level = may'
postconf -e 'mynetworks = 127.0.0.0/8 172.17.0.0/16'
echo "$MTP_RELAY $MTP_USER:$MTP_PASS" > /etc/postfix/relay_passwd
postmap /etc/postfix/relay_passwd
}
postconf -e "myhostname = $MTP_HOST"
postconf -e 'inet_interfaces = all'
if [ ! -z "$MTP_RELAY" -a ! -z "$MTP_PORT" -a ! -z "$MTP_USER" -a ! -z "$MTP_PASS" ]; then
setup_conf_and_secret
else
postconf -e 'mynetworks = 127.0.0.1/32 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8'
fi
service rsyslog start
service postfix start
touch /var/log/maillog
tail -f /var/log/maillog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment