===========================================================================
$NetBSD: MESSAGE,v 1.5 2017/05/31 07:08:04 schmonz Exp $

Please read ${PREFIX}/share/doc/qmail-run/README.pkgsrc.

NOTE: qmail-qfilter-queue is deprecated and will be removed in 2017Q3.
Please migrate to qmail-qfilter-{ofmipd,smtpd}-queue.

To enable qmail for...

Local and outgoing deliveries:
- Check the configuration files in ${PKG_SYSCONFDIR}.
- Modify /etc/mailer.conf (see share/examples/qmail-run/mailer.conf).
- Set qmailsend=YES in /etc/rc.conf.

Incoming SMTP deliveries:
- Set qmailsmtpd=YES in /etc/rc.conf.

Outgoing submissions with SMTP AUTH over TLS:
- Set qmailofmipd=YES in /etc/rc.conf, and also qmailofmipd_preofmipd to
  ${PREFIX}/bin/spamdyke --config-file ${PKG_SYSCONFBASE}/spamdyke-ofmipd.conf
- Copy share/examples/qmail-run/spamdyke-ofmipd.conf to ${PKG_SYSCONFBASE}.
- Consider that your checkpassword binary may need to be setuid root.
- Set stunnel=YES in /etc/rc.conf.
- Incorporate share/examples/qmail-run/stunnel.conf into your stunnel.conf.

POP3 (only for Maildirs):
- Set qmailpop3d=YES in /etc/rc.conf.

Local non-root users to see the queue:
- Set qmailqread=YES in /etc/rc.conf.
- Change the mailq entry in /etc/mailer.conf to qmail-qread-client.

Filtering incoming messages arriving via SMTP:
- Set QMAILQUEUE="${PREFIX}/bin/qmail-qfilter-smtpd-queue" in tcp.smtp.
- Reload the cdb: /etc/rc.d/qmailsmtpd cdb
- Consult qmail-qfilter(1) and see share/examples/qmail-qfilter.
- Place executable filters named 'smtpd-*' in ${PKG_SYSCONFDIR}/filters.

Filtering outgoing messages submitted via OFMIP:
- Set QMAILQUEUE="${PREFIX}/bin/qmail-qfilter-ofmipd-queue" in tcp.ofmip.
- Reload the cdb: /etc/rc.d/qmailofmipd cdb
- Consult qmail-qfilter(1) and see share/examples/qmail-qfilter.
- Place executable filters named 'ofmipd-*' in ${PKG_SYSCONFDIR}/filters.

===========================================================================
