Download raw body.
[PATCH] mail/alpine: unable to send mail in default install
Hi ports@,
Pinging back to see if anyone is interested in merging this patch for Alpine.
AFAIK Alpine has no active maintainer. The root cause of this bug is two-fold:
* Default config of Alpine has a dependency on /usr/sbin/sendmail -bs, which
is not supported by the default MTA. Patch below forces use of TCP to connect
to the local MTA as opposed to the fallback pipe connection, which gives a
working Alpine out of the box upon package installation.
* The default MTA should reject the -bs flag as invalid if it does not support
the SMTP-over-stdout mode of Sendmail. Separate patch to tech@ to prevent
future concealment of anomalous behavior.
Regards
Lloyd
Lloyd wrote:
> There is a bug in Alpine whereby out of the box it is unable to send email on
> an OpenBSD box, even locally. By default, sending a message in unconfigured
> Alpine will fork out to sendmail(8) which hangs for some unknown reason and
> the sendmail wrapper process needs to be killed. Receiving mail works fine.
>
> [snip]
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/alpine/Makefile,v
retrieving revision 1.63
diff -u -p -u -p -r1.63 Makefile
--- Makefile 28 Jan 2025 20:09:20 -0000 1.63
+++ Makefile 29 Apr 2025 01:00:09 -0000
@@ -99,7 +99,8 @@ post-install:
${WRKSRC}/doc/mailcap.unx \
${WRKSRC}/doc/mime.types \
${PREFIX}/share/doc/alpine
- ${WRKBUILD}/alpine/alpine -conf > \
+ ${WRKBUILD}/alpine/alpine -conf | sed \
+ 's/smtp-server=/smtp-server=localhost/' > \
${PREFIX}/share/examples/alpine/pine.conf
# c-client
# the relevant os_*.h is copied to osdep.h in build; others not needed
[PATCH] mail/alpine: unable to send mail in default install