Forum OpenACS Q&A: OpenACS Docker Email configuration

Collapse
Posted by Tyge Cawthon on
Device: Docker
OpenACS and PostgreSQL - loaded successfully. Nice Job with procedure write-up.

Email implementation question
1) How does the SMTP nssmtpd module get build and instaledl?
non-docker: ns_modules="nsdbpg nssmtpd" bash install-ns.sh

2) How can I tell if the module nssmtpd is installed?
non-docker - /usr/local/src/modules

3) How/where is the NaviServer param relay plain://info%40celtic-arts.org:mailto:PWD@smtp.celtic-arts.org:587 variable set

Docker compose:
.......
# Internal listen ports
oacs_httpport: 8080
oacs_httpsport: 8443
oacs_ipaddress: 0.0.0.0
oacs_loopbackport: ${internal_loopbackport:-8888}
oacs_smtpdhost: mail-relay
oacs_smtpdport: 2525

# Host / service naming
oacs_hostname: ${hostname:-localhost}
oacs_server: ${service:-oacs-5-10}
oacs_tag: ${oacs_tag:-oacs-5-10}
# Paths inside the container
oacs_serverroot: /var/www/openacs
oacs_certificate: ${certificate🤔var/www/openacs/etc/certfile.pem}
oacs_logdir: ${logroot🤔var/www/openacs/log}

# OpenACS internal secrets (populated by entrypoint from /run/secrets/*)
oacs_clusterSecret: ${clusterSecret:-}
oacs_paramterSecret: ${parameterSecret:-}

# Extra packages installed at container setup
system_pkgs: ${system_pkgs:-imagemagick}

# ------------------------------------------------------------------
# mail relay
# ------------------------------------------------------------------
mail-relay:
image: gustafn/mail-relay:latest
container_name: mail-relay
hostname: smtpd.celtic-arts.org
restart: unless-stopped

expose:
- "2525"

environment:
- TZ=US/Detroit
- POSTFIX_TLS_CERT_FILE=${certificate}

volumes:
- /var/www/openacs.org:/var/www/openacs.org
- ${logdir}/postfix:/var/log

# ------------------------------------------------------------------
# postgres (PostgreSQL instance)
# ------------------------------------------------------------------

Collapse
Posted by Tyge Cawthon on
My over site.
Per Gustafin Docker information:
Integrated nssmtpd The container includes the NaviServer nssmtpd module and is preconfigured to send mail to an internal/external mail relay. STARTTLS is supported automatically when the mail-relay provides a certificate.

Update:
ACS Mail Services Lite
EmailDeliveryMode nssmtpd
EmailRedirectTo celtic-arts.org
Smtp
SMTPPort 2525

Docker:
oacs_smtpdhost: mail-relay
oacs_smtpdport: 2525

hostname: smtpd.${hostname}
expose:
- "2525"

Certificate:
/var/lib/docker/volumes/openacs-prod_oacs_data/_data/etc/certfile.pem

Looking for where place the command line:
param relay plain: