arunasdevoro/postfix-pgsql

By arunasdevoro

Updated 8 months ago

Postfix (PostgreSQL) SMTP only. No local mail delivery.

Image
Message queues
0

519

arunasdevoro/postfix-pgsql repository overview

Postfix (PostgreSQL)

Description

Postfix Docker Image based on Debian Bookworm-Slim. It is striped down version of Postfix just for SMTP work. Local mail delivery is disabled. Must use dedicated mail server like Dovecot with message delivery via LMTP.

Ports

  • 25/tcp

Volumes

  • /var/spool/postfix: Make this volume persistent to keep mail queue state.
  • /var/log/postfix: disabled by default. all logs goes to STDOUT/STDERR

Shell

shell is not available. Image is setup to run in foreground.

Run

Run postfix under network name named br0. Mount PGSQL config files as well as blacklist and whitelist config files that are placed in folder conf. postmap runs automatically upon each restart.

docker run -d -p 25:25 --name postfix --network br0 \ -v ./conf/main.cf:/etc/postfix/main.cf -v ./conf/master.cf:/etc/postfix/master.cf \ -v ./conf/blacklist:/etc/postfix/blacklist -v ./conf/whitelist:/etc/postfix/whitelist \ -v ./conf/pgsql-virtual_alias_maps.cf:/etc/postfix/pgsql-virtual_alias_maps.cf \ -v ./conf/pgsql-virtual_domains.cf:/etc/postfix/pgsql-virtual_domains.cf \ -v ./conf/pgsql-virtual_mailbox_maps.cf:/etc/postfix/pgsql-virtual_mailbox_maps.cf \ -v ./conf/pgsql-virtual_relay_domain_maps.cf:/etc/postfix/pgsql-virtual_relay_domain_maps.cf \ postfix-pgsql:latest

Tag summary

Content type

Image

Digest

sha256:84cf08c52

Size

214.4 MB

Last updated

8 months ago

docker pull arunasdevoro/postfix-pgsql