catatnight / docker-postfix

run postfix with smtp authentication (sasldb) in a docker container
MIT License
309 stars 220 forks source link

Getting Error while trying to build container from the image #35

Open suvsap opened 4 years ago

suvsap commented 4 years ago

Hi,

I am getting the below error when i try to build the container

suv@Suvankars-MacBook-Pro[6:12:13]:~/thermeon/docker-postfix$ docker run -it -e MailDomain=gmail.com -e SmtpUser=smtp@gmail.com:abcd --name=suv_pfx postfix
2020-05-25 12:42:16,500 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2020-05-25 12:42:16,500 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2020-05-25 12:42:16,506 INFO RPC interface 'supervisor' initialized
2020-05-25 12:42:16,506 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2020-05-25 12:42:16,506 INFO supervisord started with pid 18
2020-05-25 12:42:17,511 INFO spawned: 'postfix' with pid 20
2020-05-25 12:42:17,512 INFO spawnerr: can't find command '/usr/sbin/rsyslogd'
2020-05-25 12:42:17,785 INFO exited: postfix (exit status 1; not expected)
2020-05-25 12:42:18,790 INFO spawned: 'postfix' with pid 137
2020-05-25 12:42:18,792 INFO spawnerr: can't find command '/usr/sbin/rsyslogd'
2020-05-25 12:42:18,832 INFO exited: postfix (exit status 1; not expected)
2020-05-25 12:42:20,848 INFO spawned: 'postfix' with pid 152
2020-05-25 12:42:20,850 INFO spawnerr: can't find command '/usr/sbin/rsyslogd'
2020-05-25 12:42:20,893 INFO exited: postfix (exit status 1; not expected)
2020-05-25 12:42:23,909 INFO spawned: 'postfix' with pid 167
2020-05-25 12:42:23,911 INFO spawnerr: can't find command '/usr/sbin/rsyslogd'
2020-05-25 12:42:23,912 INFO gave up: rsyslog entered FATAL state, too many start retries too quickly
2020-05-25 12:42:23,951 INFO exited: postfix (exit status 1; not expected)
2020-05-25 12:42:24,954 INFO gave up: postfix entered FATAL state, too many start retries too quickly

Then i had to add RUN apt-get -y install rsyslog in Docker file and got introduced to a new error

suv@Suvankars-MacBook-Pro[2:57:21]:~/thermeon/docker-postfix$ docker run -it -e MailDomain=gmail.com -e SmtpUser=smtp@gmail.com:abcd --name=spfx pfx
2020-05-29 09:27:25,602 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2020-05-29 09:27:25,603 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2020-05-29 09:27:25,606 INFO RPC interface 'supervisor' initialized
2020-05-29 09:27:25,606 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2020-05-29 09:27:25,607 INFO supervisord started with pid 18
2020-05-29 09:27:26,612 INFO spawned: 'postfix' with pid 20
2020-05-29 09:27:26,617 INFO spawned: 'rsyslog' with pid 21
2020-05-29 09:27:26,627 INFO exited: rsyslog (exit status 1; not expected)
2020-05-29 09:27:26,874 INFO exited: postfix (exit status 1; not expected)
2020-05-29 09:27:27,882 INFO spawned: 'postfix' with pid 138
2020-05-29 09:27:27,886 INFO spawned: 'rsyslog' with pid 139
2020-05-29 09:27:27,896 INFO exited: rsyslog (exit status 1; not expected)
2020-05-29 09:27:27,926 INFO exited: postfix (exit status 1; not expected)
2020-05-29 09:27:29,938 INFO spawned: 'postfix' with pid 154
2020-05-29 09:27:29,947 INFO spawned: 'rsyslog' with pid 155
2020-05-29 09:27:29,955 INFO exited: rsyslog (exit status 1; not expected)
2020-05-29 09:27:29,981 INFO exited: postfix (exit status 1; not expected)
2020-05-29 09:27:33,001 INFO spawned: 'postfix' with pid 170
2020-05-29 09:27:33,006 INFO spawned: 'rsyslog' with pid 171
2020-05-29 09:27:33,016 INFO exited: rsyslog (exit status 1; not expected)
2020-05-29 09:27:33,016 INFO gave up: rsyslog entered FATAL state, too many start retries too quickly
2020-05-29 09:27:33,044 INFO exited: postfix (exit status 1; not expected)
2020-05-29 09:27:34,048 INFO gave up: postfix entered FATAL state, too many start retries too quickly

Kindly help.

Thanks, Suvankar