Postfix が、ログを syslog に出力するので、syslog デーモンが必要となる。 そこで、Supervisord で、Postfix と rsyslog を実行するようにしている。
$ docker run --rm --name postfix -p 10025:25 chatwork/postfix
2018-11-07 09:21:36,518 INFO Set uid to user 0 succeeded
2018-11-07 09:21:36,520 INFO supervisord started with pid 13
2018-11-07 09:21:37,522 INFO spawned: 'rsyslog' with pid 15
2018-11-07 09:21:37,524 INFO spawned: 'master' with pid 16
2018-11-07T09:21:37.660367+00:00 1a6c8af85c6f postfix/postfix-script[81]: starting the Postfix mail system
2018-11-07T09:21:37.663653+00:00 1a6c8af85c6f postfix/master[82]: daemon started -- version 3.3.0, configuration /etc/postfix
2018-11-07 09:21:38,665 INFO success: rsyslog entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-11-07 09:21:38,665 INFO success: master entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
$ curl telnet://localhost:10025
220 fdb0484594ab.localdomain ESMTP Postfix
Content type
Image
Digest
Size
90.4 MB
Last updated
over 4 years ago
docker pull chatwork/postfix