Skip to content
Discussion options

You must be logged in to vote

Solution

transport maps

This seems like the way to go, although there is no official DMS support for making that easier, it's not too difficult for you to configure with us 😎

Custom config files (without runtime scripts)

Use our postfix-main.cf override to enable transport_maps:

# text is used instead of hash, this should work and not require the postmap + reload step:
transport_maps = text:/etc/postfix/transport

Then volume mount the config to /etc/postfix/transport, or alternatively, update that path above to point to your config volume (/tmp/docker-mailserver/path/to/transport):

.example.com   :
example.com    :
*              discard:

Postfix docs for transport table explain most …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jdtron
Comment options

@polarathene
Comment options

@jdtron
Comment options

Answer selected by jdtron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants