Closed xolom closed 1 year ago
SSMTP was the culprit.
Removing it by adding
RUN apk del ssmtp
to my custom Dockerfile solved the issue
So i'm looking at this and I see sendmail
is normally provided by busybox
, but can also be from dma
, exim
, opensmtpd
, ssmtp
and maybe others as well. In our case, ssmtp
was not originally included, but was added in https://github.com/linuxserver/docker-fail2ban/pull/8 in response to being requested in https://github.com/linuxserver/docker-fail2ban/issues/6
You should actually be able to replace https://github.com/linuxserver/fail2ban-confs/blob/d0b2f029034feccad788debe468ed25690e23476/action.d/sendmail-common.conf#LL66C16-L66C29 with
mailcmd = /bin/busybox sendmail -f "<sender>" "<dest>"
and it should work without having to modify the image.
When installing ssmtp
it appears to place a symlink at /usr/sbin/sendmail
that just has it use ssmtp
, so I would have expected the two to be compatible, but maybe it's not.
There's a few options to resolve this, but I'm not sure which one is the best choice at the moment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is locked due to inactivity
With the newest release I can't send mails anymore via
sendmail
. It gives me following error:Reproducable with:
echo "Subject: sendmail test" | sendmail -v <email@address.com>
Arch: x86-64
docker-compose.yml:
Dockerfile: