bokysan / docker-postfix

Multi architecture simple SMTP server (postfix null relay) host for your Docker and Kubernetes containers. Based on Debian/Ubuntu/Alpine.
MIT License
555 stars 152 forks source link

Not able to get the smtp-relay pod in ready state #174

Closed tardich closed 10 months ago

tardich commented 10 months ago

Running the mail relay from the provided helm chart, I'm facing an issue which do not let the pod reach the ready state.

In the pod logs, everything seems normal, but describing the pod, I'm getting:

Readiness probe failed: command "sh -c [ ! -f /tmp/container_is_terminating ] && printf \"EHLO healthcheck\nquit\n\" | { while read l ; do sleep 1; echo $l; done } | nc -w 2 127.0.0.1 587 | grep -qE \"^220.*ESMTP Postfix\"" timed out

Any clue on where to look at?

Nice work, by the way!

tardich commented 10 months ago

In case you ask, I'm using mail-4.0.4, using default image from it

tardich commented 10 months ago

As I can see, the error is the script itself. Running it in a shell all by itself returns:

!: line 1: [: missing `]'

I haven't found out yet the issue with it....

bokysan commented 10 months ago

Yeah, this is all connected to #171 -- I'll need to fix the issue and test it out thorougly.

bokysan commented 10 months ago

I believe issue has been fixed. Can you please try edge image?

You'll also need to do helm ... --set readinessProbe.timeoutSeconds=8 to test this. This will be the default in release v4.1.0.

tardich commented 10 months ago

Yes, it now works! Great !

In fact, I was looking at putting single quotes around the script but it was still failing, because of the timeout being too small, I guess :-)