add msmtp for debug
Some checks are pending
Test / build (push) Waiting to run

This commit is contained in:
2024-07-07 10:46:37 -07:00
parent c65f98a437
commit a22a313474
4 changed files with 44 additions and 20 deletions

14
run.sh
View File

@@ -2,16 +2,13 @@
[ "${DEBUG}" == "yes" ] && set -x
# GPG Area
#exec gpg-agent --daemon --batch --disable-scdaemon
# GPG/PMB Area -------------------
gpg-agent --daemon --batch --disable-scdaemon
# ProtonMail bridge has really bad timeout/retry logic:
sleep 2
/pmb/bridge -n &
# Postfix area
# Postfix area ------------------
function add_config_value() {
local key=${1}
@@ -46,6 +43,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
# Following line added for proton bridge
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"