This commit is contained in:
12
run.sh
12
run.sh
@@ -2,6 +2,17 @@
|
||||
|
||||
[ "${DEBUG}" == "yes" ] && set -x
|
||||
|
||||
# GPG Area
|
||||
#exec gpg-agent --daemon --batch --disable-scdaemon
|
||||
gpg-agent --daemon --batch --disable-scdaemon
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Postfix area
|
||||
|
||||
function add_config_value() {
|
||||
local key=${1}
|
||||
local value=${2}
|
||||
@@ -35,6 +46,7 @@ add_config_value "myorigin" '$mydomain'
|
||||
add_config_value "relayhost" "[${SMTP_SERVER}]:${SMTP_PORT}"
|
||||
add_config_value "smtp_use_tls" "yes"
|
||||
if [ ! -z "${SMTP_USERNAME}" ]; then
|
||||
add_config_value "smtp_sasl_mechanism_filter" "login"
|
||||
add_config_value "smtp_sasl_auth_enable" "yes"
|
||||
add_config_value "smtp_sasl_password_maps" "lmdb:/etc/postfix/sasl_passwd"
|
||||
add_config_value "smtp_sasl_security_options" "noanonymous"
|
||||
|
||||
Reference in New Issue
Block a user