Skip to content

Remove qsmhook, long since replaced by preline. - #87

Merged
schmonz merged 1 commit into
masterfrom
bletcherous-qsmhook
May 23, 2020
Merged

schmonz merged 1 commit into
masterfrom
bletcherous-qsmhook

Conversation

@schmonz

@schmonz schmonz commented Aug 26, 2019

Copy link
Copy Markdown
Member

THOUGHTS says qsmhook is "too bletcherous to be documented. (The official replacement for qsmhook is preline, together with the qmail-command environment variables.)"

I've never used qsmhook, only preline. Guessing nobody has any reason to still need qsmhook.

@schmonz schmonz added this to the 1.08 milestone Aug 26, 2019
@alanpost

alanpost commented Aug 26, 2019 •

Copy link
Copy Markdown
Contributor

Context on qsmhook, from: http://qmail.org/qmail-manual-html/misc/INSTALL.qsmhook.html

You can set up qmail to use the same local delivery agent as sendmail,
through a mechanism called qsmhook. This file says how.

Before you do this, may I ask why? If you simply don't want the hassle
of moving user mailboxes from /usr/spool/mail to ~, please reconsider---
/usr/spool/mail has always been a big security problem. See, for
example, CERT advisory 95:02.

If you're trying to preserve /etc/aliases and ~user/.forward, you're
looking the wrong way---those are handled by sendmail internally, not by
the local delivery agent. You can use your old /etc/aliases with qmail
by installing the qmsmac package.

Perhaps you've set up an advanced agent like procmail. But most people
use procmail for nothing more than sorting mail into several mailboxes;
and that's much easier with qmail's local forwarding mechanism, which
gives each user control over user-anything. If you have a few users who
really do need procmail, they can easily run procmail from their own
.qmail files.

Do you still want to set up qsmhook? Send me some e-mail and let me know
why. Perhaps I can provide something for you in a future qmail release.

Here's what to do. First, tack ``:alias'' onto the end of each address
in /var/qmail/control/locals, and put the results into
/var/qmail/control/virtualdomains. For example, if control/locals has

   localhost
   silverton.berkeley.edu

then control/virtualdomains should now have (without extra spaces)

   localhost:alias
   silverton.berkeley.edu:alias

Second, cp /dev/null control/locals.

Third, put a line into ~alias/.qmail-default, based on sendmail's Mlocal
line. For example, if sendmail.cf has

   Mlocal, P=/bin/mail, F=lsDFMPrmn, S=10, R=20, A=mail -d $u

then ~alias/.qmail-default should have

   |qsmhook -x alias- -lsDFMPmn /bin/mail -r %g -d %u

As another example, if sendmail.cf has

   Mlocal, P=/usr/lib/mail.local, F=flsSDFMmnP, S=10, R=20, A=mail.local -d $u

then ~alias/.qmail-default should have

   |qsmhook -x alias- -lsDFMmnP /usr/lib/mail.local -f %g -d %u

@alanpost

Copy link
Copy Markdown
Contributor

You left a line in TODO referring to qsmhook. That should go too, unless PR #68 gets in first.

@schmonz

schmonz commented Aug 26, 2019

Copy link
Copy Markdown
Member Author

I'll approve #68 as soon as we have issues or PRs filed for the few items from TODO we do still care about. This one's filed, and is indeed assuming that #68 will go first.

@schmonz
schmonz force-pushed the bletcherous-qsmhook branch from d554db5 to 0a3483d Compare August 27, 2019 04:32
@schmonz schmonz mentioned this pull request Aug 27, 2019
@schmonz schmonz modified the milestones: 1.08, 1.9 Sep 2, 2019
@DerDakon DerDakon modified the milestones: 1.90, 1.09 May 23, 2020
@schmonz
schmonz force-pushed the bletcherous-qsmhook branch from 0a3483d to a29a90f Compare May 23, 2020 13:17
@schmonz

schmonz commented May 23, 2020

Copy link
Copy Markdown
Member Author

We announced our intent to remove in 1.08, so we're free to do it for 1.09.

@schmonz
schmonz force-pushed the bletcherous-qsmhook branch from 9cf990b to 164c3a2 Compare May 23, 2020 14:02
@schmonz
schmonz force-pushed the bletcherous-qsmhook branch from 164c3a2 to c175631 Compare May 23, 2020 20:57
@schmonz
schmonz merged commit 626e9a5 into master May 23, 2020
@schmonz
schmonz deleted the bletcherous-qsmhook branch May 23, 2020 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants