head 1.11; access; symbols pkgsrc-2023Q4:1.11.0.42 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.40 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.11.0.38 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.11.0.36 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.11.0.34 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.32 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.11.0.30 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.11.0.28 pkgsrc-2022Q1-base:1.11 pkgsrc-2021Q4:1.11.0.26 pkgsrc-2021Q4-base:1.11 pkgsrc-2021Q3:1.11.0.24 pkgsrc-2021Q3-base:1.11 pkgsrc-2021Q2:1.11.0.22 pkgsrc-2021Q2-base:1.11 pkgsrc-2021Q1:1.11.0.20 pkgsrc-2021Q1-base:1.11 pkgsrc-2020Q4:1.11.0.18 pkgsrc-2020Q4-base:1.11 pkgsrc-2020Q3:1.11.0.16 pkgsrc-2020Q3-base:1.11 pkgsrc-2020Q2:1.11.0.14 pkgsrc-2020Q2-base:1.11 pkgsrc-2020Q1:1.11.0.10 pkgsrc-2020Q1-base:1.11 pkgsrc-2019Q4:1.11.0.12 pkgsrc-2019Q4-base:1.11 pkgsrc-2019Q3:1.11.0.8 pkgsrc-2019Q3-base:1.11 pkgsrc-2019Q2:1.11.0.6 pkgsrc-2019Q2-base:1.11 pkgsrc-2019Q1:1.11.0.4 pkgsrc-2019Q1-base:1.11 pkgsrc-2018Q4:1.11.0.2 pkgsrc-2018Q4-base:1.11 pkgsrc-2018Q3:1.5.0.16 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.14 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.12 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.10 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.8 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.4 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.2 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.4.0.10 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.8 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.6 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.4 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.2 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.3.0.8 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.6 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.4 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.2 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.2.0.86 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.84 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.82 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.80 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.78 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.76 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.74 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.72 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.70 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.68 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.66 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.64 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.62 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.60 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.58 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.56 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.54 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.52 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.50 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.48 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.46 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.44 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.42 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.40 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.38 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.36 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.34 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.32 pkgsrc-2008Q1:1.2.0.30 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.28 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.26 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.24 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.22 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.20 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.18 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.16 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.14 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.12 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.10 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.8 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.6 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.11 date 2018.12.14.06.49.30; author schmonz; state Exp; branches; next 1.10; commitid F28Hd8C6neKqzJ3B; 1.10 date 2018.12.11.17.49.40; author schmonz; state Exp; branches; next 1.9; commitid 8GHwlSznKkaTjp3B; 1.9 date 2018.12.04.17.00.59; author schmonz; state Exp; branches; next 1.8; commitid 8iik2Ybtkzi8hv2B; 1.8 date 2018.11.14.16.46.58; author schmonz; state Exp; branches; next 1.7; commitid 8CO7kB1bLmmbQVZA; 1.7 date 2018.10.27.19.16.16; author schmonz; state Exp; branches; next 1.6; commitid JdbWlRLncjYgfDXA; 1.6 date 2018.10.24.15.46.54; author schmonz; state Exp; branches; next 1.5; commitid kJ6ZpLcHW0rqbeXA; 1.5 date 2017.01.09.04.58.09; author schmonz; state Exp; branches; next 1.4; commitid GlgLZBf2ZQJdAfBz; 1.4 date 2015.11.25.12.51.30; author jperkin; state Exp; branches; next 1.3; commitid Lt5y5sdzkSDFptKy; 1.3 date 2014.12.06.22.14.27; author schmonz; state Exp; branches; next 1.2; commitid 2D20sn91YrujU11y; 1.2 date 2004.08.23.03.47.48; author schmonz; state Exp; branches; next 1.1; 1.1 date 2004.08.02.03.59.21; author schmonz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.08.02.03.59.21; author schmonz; state Exp; branches; next ; desc @@ 1.11 log @Extract most of MESSAGE to README.pkgsrc. (MESSAGE was getting too long.) Comment out qmail-qfilter-viruscan in control/smtpfilters. It's not a very precise tool, so the cost (false positives) probably outweighs the benefit (blocked malware attachments) for many users. Also not a sensible default: rejecting incoming mail on SPF explicit-fail. This needs to be an admin decision because, among other reasons, it would also reject messages forwarded through servers that haven't configured SRS. Document SPF setup, including how to reject (with this caveat) and how to greylist SPF explicit-pass (which would otherwise be exempted from greylisting). Rename greylisting-spp-with-exemptions to greylisting-spp-wrapper. Add a feature: to effectively omit IP from the (IP,sender,recipient) tuple, add GL_WRAPPER_TCPREMOTEIP="127.127.127.127" to control/tcprules/smtp. rc.d scripts: - Location of tcprules file is configurable - By default, CDB is auto-rebuilt as needed on service start - CDB auto-rebuilding can be configured off Bump version. @ text @# $NetBSD: INSTALL,v 1.10 2018/12/11 17:49:40 schmonz Exp $ case "${STAGE}" in PRE-INSTALL) cd ${PKG_SYSCONFDIR} for i in ofmip pop3 smtp; do s="tcp.${i}" [ -f "${s}" ] && ${MV} -f "${s}" "control/tcprules/${i}" [ -f "${s}.cdb" ] && ${RM} -f "${s}.cdb" done ;; esac @ 1.10 log @Add SPF checks via qmail-spp-spf (new dependency): - On "fail", reject - On "pass", skip any greylisting - Else, accept mail as we otherwise would. qmail-spp-spf adds a `Received-SPF:` header to all incoming messages. Migrate ${PKG_SYSCONFDIR}/tcp.* to ${PKG_SYSCONFDIR}/control/tcprules. Bump version. @ text @d1 1 a1 1 # $NetBSD$ a14 9 POST-INSTALL) cd ${PKG_SYSCONFDIR}/control/tcprules for i in ofmip pop3 smtp; do ${CHMOD} 644 ${i} ${PREFIX}/bin/tcprules ${i}.cdb ${i}.tmp < ${i} ${CHMOD} 644 ${i}.cdb done ;; @ 1.9 log @qmail will not start (under qmail-run or otherwise) without a few basic config files. Removing them on uninstall if they haven't been changed is already mail/qmail's job; creating them on install was being done here, and this combination was probably responsible for `pkgin full-upgrade` removing some config files and qmail no longer running. Thanks to Nathan Arthur for the bug report. Instead of running config-fast-pkgsrc here, rely on mail/qmail to do it. For similar reasons, also expect mail/qmail to handle the three basic aliases (root, mailer-daemon, postmaster) and QUEUE_EXTRA. While here, set QMAILREMOTE in qmailsend_postenv in preparation for a future update. Bump version. @ text @d1 13 a13 1 case ${STAGE} in d16 1 a16 1 cd ${PKG_SYSCONFDIR} d18 3 a20 3 ${CHMOD} 644 tcp.${i} ${PREFIX}/bin/tcprules tcp.${i}.cdb tcp.${i}.tmp < tcp.${i} ${CHMOD} 644 tcp.${i}.cdb @ 1.8 log @On second thought, greylisting isn't a sensible default. Comment it out in control/smtpplugins. Extract a "Greylisting" stanza in MESSAGE. Merge "Local non-root users to see the queue" into previous section (and provide qmail-qread-client in example mailer.conf to begin with). Mention port numbers where applicable. Enable defaults that are sensible: realrcptto in control/rcptchecks and viruscan in control/smtpfilters. Add fixsmtpio rules to make greylisting-spp's tempfails look more like qmail's other messages. Bump dependency on qmail for config-fast-pkgsrc, which is like config-fast but lets us simulate CONF_FILES-like behavior. As before, we install these minimal config files, and won't deinstall them. (But the updated qmail package will.) Bump version. @ text @a0 5 QMAIL_QUEUE_EXTRA=@@QMAIL_QUEUE_EXTRA@@ psmsg='# # This file was auto-generated by pkgsrc.' a3 23 cd ${PREFIX}/share/qmail/setup && ./config-fast-pkgsrc `./hostname` cd ${PKG_SYSCONFDIR}/.pkgsrc-defaults-do-not-edit for i in locals rcpthosts; do ${SORT} -u ${i} > ${i}.tmp && ${MV} ${i}.tmp ${i} done cd ${PKG_SYSCONFDIR} for i in defaultdomain locals me plusdomain rcpthosts; do [ -f control/${i} ] \ || ${CP} .pkgsrc-defaults-do-not-edit/${i} control done cd ${PKG_SYSCONFDIR}/alias for i in postmaster mailer-daemon root; do ${TOUCH} .qmail-${i} ${CHMOD} 644 .qmail-${i} done if ! [ -z ${QMAIL_QUEUE_EXTRA} ]; then ${ECHO} "$psmsg" >> .qmail-${QMAIL_QUEUE_EXTRA} ${CHMOD} 644 .qmail-${QMAIL_QUEUE_EXTRA} fi @ 1.7 log @Update to 20181027. Changes: - Bump qmail-acceptutils for integrated privsep TLS using ucspi-ssl. - Switch qmailofmipd rc.d script to sslserver, listening on the network. - Install control/{pop3,smtp}capabilities, as newly required by authup. - Organize INSTALL a bit better. - Remove all vestiges of stunnel, including further shortening MESSAGE. @ text @d9 1 a9 1 cd ${PREFIX}/share/qmail/setup && ./config-fast `./hostname` d11 1 a11 1 cd ${PKG_SYSCONFDIR}/control d13 7 a19 1 ${SORT} -u ${i} > ${i}.tmp && mv ${i}.tmp ${i} @ 1.6 log @Remove dependency on mess822, the "sasl" and "tls" options, and their respective dependencies on spamdyke and stunnel. Depend instead on qmail-acceptutils, which provides SMTP AUTH (and new filtering functionality) and brings its own unconditional mess822 and stunnel dependencies. Update rc.d scripts to match. Use CONF_FILES instead of a bunch of open-coded INSTALL cleverness. Clean up even better with a little DEINSTALL cleverness to remove CDB files if their source CONF_FILES are gone. Install sensible fixsmtpio rules and viruscan signatures. Tighten MESSAGE. The basics have gotten pretty easy. Bump version. @ text @d11 4 a14 1 cd ${PKG_SYSCONFDIR}/alias && ${TOUCH} .qmail-postmaster .qmail-mailer-daemon .qmail-root d16 4 a19 4 for i in ofmip pop3 smtp; do ${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i} ${PREFIX}/bin/tcprules ${PKG_SYSCONFDIR}/tcp.${i}.cdb ${PKG_SYSCONFDIR}/tcp.${i}.tmp < ${PKG_SYSCONFDIR}/tcp.${i} ${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i}.cdb a20 1 d22 2 a23 2 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA} ${CHMOD} 644 ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA} d26 7 @ 1.5 log @Update to 20170109. pkgsrc changes: - Add qmailofmipd service for outgoing submissions. - Add dependencies on mess822, spamdyke, and stunnel. - Add sample spamdyke and stunnel configs for SMTP AUTH over TLS. - Control ofmipd from the main qmail script. - Fix broken link to "12 Steps to qmail List Bliss". @ text @a12 26 if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencyofmip ]; then ${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencyofmip ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencyofmip ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencyofmip fi if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencypop3 ]; then ${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencypop3 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencypop3 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencypop3 fi if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencyincoming ]; then ${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencyincoming ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencyincoming ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencyincoming fi if ! [ -s ${PKG_SYSCONFDIR}/control/defaultdelivery ]; then ${ECHO} ./Mailbox > ${PKG_SYSCONFDIR}/control/defaultdelivery ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/defaultdelivery ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/defaultdelivery fi pop3rule=':allow' smtprule='127.:allow,RELAYCLIENT=""' a13 4 if ! [ -s ${PKG_SYSCONFDIR}/tcp.${i} ]; then ${ECHO} "$psmsg" > ${PKG_SYSCONFDIR}/tcp.${i} eval ${ECHO} \"\$${i}rule\" > ${PKG_SYSCONFDIR}/tcp.${i} fi a24 1 @ 1.4 log @Remove mk/find-prefix.mk usage from the mail category. The find-prefix infrastructure was required in a pkgviews world where packages installed from pkgsrc could have different installation prefixes, and this was a way for a dependency prefix to be determined. Now that pkgviews has been removed there is no longer any need for the overhead of this infrastructure. Instead we use BUILDLINK_PREFIX.pkg for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the dependency is coming from pkgsrc. Provides a reasonable performance win due to the reduction of `pkg_info -qp` calls, some of which were redundant anyway as they were duplicating the same information provided by BUILDLINK_PREFIX.pkg. @ text @d13 6 d39 1 a39 1 for i in pop3 smtp; do @ 1.3 log @Placate pkglint by abolishing LOCALBASE (no functional change intended) and adding LICENSE and NO_CHECKSUM. Bump version. @ text @a1 2 QMAIL_PREFIX=@@QMAIL_PREFIX@@ UCSPI_TCP_PREFIX=@@UCSPI_TCP_PREFIX@@ d9 1 a9 1 cd ${QMAIL_PREFIX}/share/qmail/setup && ./config-fast `./hostname` d39 1 a39 1 ${UCSPI_TCP_PREFIX}/bin/tcprules ${PKG_SYSCONFDIR}/tcp.${i}.cdb ${PKG_SYSCONFDIR}/tcp.${i}.tmp < ${PKG_SYSCONFDIR}/tcp.${i} @ 1.2 log @Replace dependency on "qmail or netqmail" with dependency on qmail. Remove dependency on mailwrapper. If you're on a Linux with /etc/alternatives, for instance, you don't need it. For platforms where mailwrapper builds and provides functionality not otherwise available, it's still a good idea. Remove dependency on rc.subr. Teach the rc.d scripts to start services even in the absence of rc.subr. For full rc.d-style functionality, rc.subr is still required. Create control/concurrencypop3 at install time, and use it in the qmailpop3d rc.d script. From Dave Sill's book. Add comments to the qmail rc.d script to satisfy Linux's chkconfig utility. From the qmailctl script in "Life with qmail". Add qmail-procmail wrapper script to map procmail's exit codes to qmail's. To use procmail, install it and call this script. From Dave Sill's book. Add qmail-qfilter-queue wrapper script. Previously part of the qmail-qfilter package, it's moving here for the same reasons that all my other custom scripts moved here. Insert a blank comment line in pkgsrc-generated config files. Bump version. @ text @d2 2 d11 1 a11 1 cd ${LOCALBASE}/share/qmail/setup && ./config-fast `./hostname` d41 1 a41 1 ${LOCALBASE}/bin/tcprules ${PKG_SYSCONFDIR}/tcp.${i}.cdb ${PKG_SYSCONFDIR}/tcp.${i}.tmp < ${PKG_SYSCONFDIR}/tcp.${i} @ 1.1 log @Initial revision @ text @d3 2 a4 1 psmsg='# This file was auto-generated by pkgsrc.' d13 6 d21 1 a21 1 ${ECHO} $psmsg >> ${PKG_SYSCONFDIR}/control/concurrencyincoming d27 1 a27 1 ${ECHO} $psmsg >> ${PKG_SYSCONFDIR}/control/defaultdelivery d35 1 a35 1 ${ECHO} $psmsg > ${PKG_SYSCONFDIR}/tcp.${i} d44 1 a44 1 ${ECHO} $psmsg >> ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA} @ 1.1.1.1 log @This package creates all the needed basic config files to run qmail, and provides NetBSD-style rc.d scripts and an example mailer.conf. The rc.d scripts used to belong directly to the qmail package. Changes made during the move here: * Rename qmailfoo_softlimit to the more accurate qmailfoo_datalimit. * Parameterize logging as qmailfoo_logcmd (default: splogger). * Run all sploggers (not just qmail-send's) as user qmaill, rather than root. * Replace "@@CAT@@" with "@@HEAD@@ -1" for files expected to contain one line. @ text @@