Re: pre-announce: acceptutils patch

"Amitai Schleier" <[email protected]> 25 Oct 2018 11:39:21 -0400
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
On 24 Oct 2018, at 7:47, J. Lewis Muir wrote:

> * The before-and-after diagram is excellent, but it's not immediately
>   clear to me what the colored-border-with-white-background ovals 
> mean.

By filling the tcpserver/qmail-pop3d/ofmipd nodes (and making the labels 
bold), I was hoping to draw attention to the beginning and end (or not) 
of the command chain, at the cost of maybe also focusing attention on 
whether filled-vs.-not-filled means something. It doesn't, so now 
they're all unfilled.

> * It would be helpful to have documentation on the config file format.

fixsmtpio(8) describes it in detail. I intend to include browsable 
manual pages on the site (once I've taught ikiwiki to render them).

> * I'd love something
>   like, "here's a nice setup for a small office," or "here's a nice
>   setup for running your own mail server" that shows your patches put
>   together into a sensible and secure setup.
> [...]
> * It would also be really nice if I knew an easy way to get all your
>   patches.

I started writing a document like that long ago. There's still a draft 
lying around somewhere. But I decided if I'm making some sort of effort, 
I'd rather invest it in not needing to write much. Over the years it's 
gotten gradually simpler and simpler to do sensible things from pkgsrc 
with the defaults.

It got a bunch simpler yesterday, in pkgsrc-current. When 2018Q4 binary 
packages become available in a couple months, my basic 
one-size-fits-most answer will be:

     $ pkgin -y install qmail-run

Until then, it's "get pkgsrc and run this command":

     $ cd mail/qmail-run && make install

This gets you nearly everything listed on https://schmonz.com/qmail:

- qmail-run brings in acceptutils, rejectutils, qmail-qfilter, and qmail
- acceptutils brings in mess822 with the QMAILQUEUE patch
- qmail-qfilter has the grandparent patch applied
- qmail brings in ucspi-tcp with the destdir patch, unconditionally 
includes the destdir, qbiffutmpx, remote, and rcptcheck patches, and has 
the "eai" option (among others) on by default

With no special options set in my pkgsrc build, here are all the patches 
that got included in my production qmail:

     $ pkg_info -Q QMAILPATCHES qmail | tr ' ' '\n' | sort
     bigdns:qmail-103.patch
     customerror:qmail-queue-custom-error-v2.netqmail-1.05.patch
     destdir:netqmail-1.06-destdir-20170716.patch
     eai:netqmail-1.06-tls-20160918-smtputf8-20181024.patch
     maildiruniq:qmail-1.03-maildir-uniq.patch
     netqmail:netqmail-1.06.tar.gz
     outgoingip:outgoingip.patch
     qbiffutmpx:netqmail-1.06-qbiffutmpx-20170820.patch
     rcptcheck:netqmail-1.06-tls-20160918-rcptcheck-20181022.patch
     remote:netqmail-1.06-qmailremote-20170716.patch
     srs:qmail-srs-0.8.patch
     syncdir:syncdir-1.0.tar.gz
     tls:netqmail-1.06-tls-20160918.patch

(If you need more, or less, set PKG_OPTIONS.qmail for your build.)

That leaves only pymsgauth-filter3 and queue-repair-symlink3 unaccounted 
for. If you install pymsgauth or queue-repair from pkgsrc, those patches 
are included.

If it turns out there's something more you need to know, then there's 
something more I need to do. :-)

Thanks for the very useful feedback!

- Amitai