When qmailsend runs in procmail delivery mode it invokes "|preline procmail" however as procmail is a port, it resides in /usr/local/bin which is neither added to the path, nor explicitly invoked. Secondly, the quoting in the command invocation is incorrect, with too many levels of quoting to allow command_args to run as a pipeline. Mail will bounce with an error such as: <'|preline procmail'@mail.example.com>: Sorry, no mailbox here by that name. (#5.1.1) I've been patching /var/qmail/boot/qmailsend with: - exec env - PATH="/var/qmail/bin:$PATH" ${command} \'"${command_args}"\' splogger qmail& + exec env - PATH="/var/qmail/bin:/usr/local/bin:$PATH" ${command} "${command_args}" splogger qmail&
Funny, this happened to me exactly at this moment. Will fix this and bundle a new port. Thanks erdgeist
Created attachment 221355 [details] Fix qmail rc script: Add LOCALBASE and correct quotes
A commit references this bug: Author: amdmi3 Date: Tue Feb 16 01:00:58 UTC 2021 New revision: 565379 URL: https://svnweb.freebsd.org/changeset/ports/565379 Log: Fix qmail's qmailsend wrapper script by using correct PATH and removing bad quoting PR: 252457, 252293 Submitted by: erdgeist@erdgeist.org (maintainer) Reported by: callumgibson@optusnet.com.au MFH: 2021Q1 Changes: head/mail/qmail/Makefile head/mail/qmail/files/qmailsend.in head/mail/qmail-mysql/Makefile head/mail/qmail-spamcontrol/Makefile head/mail/qmail-tls/Makefile
A commit references this bug: Author: amdmi3 Date: Thu Feb 18 21:19:14 UTC 2021 New revision: 565989 URL: https://svnweb.freebsd.org/changeset/ports/565989 Log: MFH: r565379 Fix qmail's qmailsend wrapper script by using correct PATH and removing bad quoting PR: 252457, 252293 Submitted by: erdgeist@erdgeist.org (maintainer) Reported by: callumgibson@optusnet.com.au Changes: _U branches/2021Q1/ branches/2021Q1/mail/qmail/Makefile branches/2021Q1/mail/qmail/files/qmailsend.in branches/2021Q1/mail/qmail-mysql/Makefile branches/2021Q1/mail/qmail-spamcontrol/Makefile branches/2021Q1/mail/qmail-tls/Makefile