Am 07.08.19 um 09:32 schrieb Gerben Wierda:
> Is it possible to run postfix in a container (e.g. docker, red-hot)? 

Yes, since postfix-3.4 you could start postfix with "postfix start-fg"
If you also set "maillog_file = /dev/stdout" in main.cf, any log will go to 
stdout which is the preferred "docker way"

We use this setup since a year or so, handover all logs to splunk and also this 
works like expected.

some advise:

 - do not use multi-instance setup -> use multiple container
 - make $(postconf data_directory) and $(postconf queue_directory) persistent 
volumes, separate per container
 - $(postconf config_directory) could be mounted read only
 - docker healthcheck can be used to monitor the number of items in a deferred 
queue
 - "postfix reload" works

-> works, give it a try :-)

Andreas

Reply via email to