Docker wrapper for mhsendmail
As a standalone tool
docker run aheadworks/mhsendmail --from="[email protected]" [email protected] ...
As a source of compiled mhsendmail in your image, e.g. PHP devboxes with Mailhog linked
FROM aheadworks/mhsendmail as mhsendmail
FROM your/phpbox
# ...
COPY --from=mhsendmail /usr/bin/mhsendmail /usr/bin/mhsendmail
RUN echo "sendmail_path=/usr/bin/mhsendmail --smtp-addr \$MAIL_HOST:25 " > /usr/local/etc/php/conf.d/sendmail.ini