montgomery-auber / postfix-containerized

Postfix Server with Letsencrypt Certs and Roundcube
GNU General Public License v3.0
2 stars 1 forks source link

Add SES support to Roundcube #21

Open montgomery-auber opened 1 year ago

montgomery-auber commented 1 year ago

postfix-containerized/docker-files/docker-compose.yml

Line 194 in 7fae91e

ROUNDCUBEMAIL_SMTP_SERVER: dovecot ROUNDCUBEMAIL_SMTP_SERVER: tls://${FQDN}

ALSO setup this section to be prepared for Amazon SES

See https://floatingcloud.io/use-amazon-ses-to-send-email-via-smtp/ has extra settings for smtp username and password for SES that are not in the env vars for the container

Also add volume mount to rondcube container so that extra settings will work

montgomery-auber commented 1 year ago

https://github.com/montgomery-auber/postfix-containerized/blob/e7a7c82a14d4e2cf90e2c0896daf6ad7f03716eb/docker-files/docker-compose.yml#L228 the dir does not exist docker-volumes/var/roundcube/config/ - create it and add .gitignore to keep it. left like this it's hard to write a file when docker creates the mount

montgomery-auber commented 1 year ago

the image defines the path /var/roundcube/config where additional config files (*.php) are searched and included. Mount a local directory with your config files - check for valid PHP syntax - when starting the Docker container:

docker run -v ./config/:/var/roundcube/config/ -d roundcube/roundcubemail Check the Roundcube Webmail wiki for a reference of Roundcube config options. https://github.com/roundcube/roundcubemail/wiki/Configuration

Customized PHP settings can be implemented by mounting a configuration file to /usr/local/etc/php/conf.d/zzz_roundcube-custom.ini. For example, it may be used to increase the PHP memory limit (memory_limit=128M).

This seems to be correct in volumes: