cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
415 stars 280 forks source link

Busybox sendmail does not support argument "b" #357

Closed SC-cmarquardt closed 3 years ago

SC-cmarquardt commented 4 years ago

Hi,

the Swiftmailer Implementation uses as default sendmail command /user/sbin/sendmail -bs . But the sendmail implementation in the busybox does not support the argument -b.

Kind regards, Christopher

djdefi commented 4 years ago

Would adding the ssmtp package work? https://pkgs.alpinelinux.org/contents?file=sendmail&path=&name=&branch=edge

Stunkymonkey commented 3 years ago

original:

bash-5.0# sendmail -bs -S cachet_postfix_1
sendmail: unrecognized option: b
BusyBox v1.30.1 (2019-10-26 11:23:07 UTC) multi-call binary.
...

with ssmtp:

bash-5.0# sendmail -bs -S cachet_postfix_1
-bs is not supported by sSMTP

i would like to assist in helping debugging this.

verifing that the server server works (without ssmtp):

bash-5.0# sendmail -v -S cachet_postfix_1
sendmail: recv:'220 test.de ESMTP Postfix (Debian/GNU)'
sendmail: send:'EHLO 31bafc8bc6a6'
sendmail: recv:'250-test.de'
sendmail: recv:'250-PIPELINING'
sendmail: recv:'250-SIZE 10240000'
sendmail: recv:'250-VRFY'
sendmail: recv:'250-ETRN'
sendmail: recv:'250-ENHANCEDSTATUSCODES'
sendmail: recv:'250-8BITMIME'
sendmail: recv:'250-DSN'
sendmail: recv:'250-SMTPUTF8'
sendmail: recv:'250 CHUNKING'
sendmail: send:'MAIL FROM:<root@31bafc8bc6a6>'
sendmail: recv:'250 2.1.0 Ok'

anything i can help there?

Stunkymonkey commented 3 years ago

I guess this is the origin of the problem: Cachet:config/mail.php#:111

Stunkymonkey commented 3 years ago

adding postfix does not raise an error with -bs

but I have not yet tested if this can send an email

Stunkymonkey commented 3 years ago

can confirm, that my PR fixed the issue with sendmail. Have successfully verified my email.

djdefi commented 3 years ago

Thanks for looking into that and the PR @Stunkymonkey

Going to close this but let me know if I have misunderstood.