head 1.4; access; symbols pkgsrc-2026Q3:1.4.0.116 pkgsrc-2026Q3-base:1.4 pkgsrc-2026Q2:1.4.0.114 pkgsrc-2026Q2-base:1.4 pkgsrc-2026Q1:1.4.0.112 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.110 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.108 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.106 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.104 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.102 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.100 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.98 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.96 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.94 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.92 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.90 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.88 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.86 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.84 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.82 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.80 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.78 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.76 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.74 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.72 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.70 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.68 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.64 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.44 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.66 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.62 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.60 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.58 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.56 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.54 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.52 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.50 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.48 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.46 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.42 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.40 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.38 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.36 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.34 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.32 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.30 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.28 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.26 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.24 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.22 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.20 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.18 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.16 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.14 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.12 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.10 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.8 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.6 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.4 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.2 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.3.0.16 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.14 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.12 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.10 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.8 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.6 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.4 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.2 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.2.0.26 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.24 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.22 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.20 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.18 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.16 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.14 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.12 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.10 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.8 pkgsrc-2008Q1:1.2.0.6 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.4 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.2 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.1.1.1.0.10 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-2007Q1:1.1.1.1.0.8 pkgsrc-2007Q1-base:1.1.1.1 pkgsrc-2006Q4:1.1.1.1.0.6 pkgsrc-2006Q4-base:1.1.1.1 pkgsrc-2006Q3:1.1.1.1.0.4 pkgsrc-2006Q3-base:1.1.1.1 pkgsrc-2006Q2:1.1.1.1.0.2 pkgsrc-2006Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2012.06.09.11.45.38; author adam; state Exp; branches; next 1.3; 1.3 date 2010.06.15.23.01.23; author pettai; state Exp; branches; next 1.2; 1.2 date 2007.08.10.17.57.05; author jlam; state Exp; branches; next 1.1; 1.1 date 2006.04.28.18.10.21; author jlam; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.04.28.18.10.21; author jlam; state Exp; branches; next ; desc @@ 1.4 log @Changes 0.68.1: * rfc2045mkboundary.c was broken in 0.68 Changes 0.68: * rfc2045/rfc2045mkboundary.c (rfc2045_mk_boundary): truncate the hostname portion of the boundary to 30 chars. * courier/doc/courier.sgml: Remove descriptions of some configuration files that were moved to the courier-authlib package a while ago. They don't belong here any more. * courier/submit.C: Use the authenticated address, instead of the return address, for domain-based virtual configuration. * courier/libs/cfilename.c (config_has_vhost): Checks whether vhost.[ip] exists. * courier/module.esmtp/courieresmtpd.c (main): Only set a message's virtual host if vhost.[ip] exists. * courier/module.esmtp/esmtpclient.c (get_sourceaddr): Make sure the input buffer is null-terminated. * courier/submit.C (getrcpts): If there's no vhost setting from the sender's IP address (this includes local mail!) if vhost.domain exists, use [domain] as the virtual host. * Remove config_search(), which simply called config_localfilename(). Change all current callers to call config_localfilename(). * courier/libs/cfilename.c (config_set_local_vhost): saves a string that gets appended as a suffix, by config_localfilename(), and if that filename exists, that's returned as the filename, otherwise it's the original string without the suffix. config_get_local_vhost() returns the suffix string. to config_set_local_vhost(). * courier/libs/comsubmitclient.c (submit_fork): If config_get_local_vhost(), add a -vhost parameter to submit(). * courier/submit.C (cppmain): -vhost sets config_set_local_vhost(). * courier/submit2.C (closectl): New COMCTLFILE_VHOST parameter in the config file, taken from the vhost setting. * courier/libs/comctlfile.c (ctlfile_setvhost): If COMCTLFILE_VHOST is set, call ctlfile_setvhost(), return an indication if the vhost has changed. Absence of a COMCTLFILE_VHOST treated as a discrete "(null)" setting. * courier/module.esmtp/esmtpclient.c (esmtpchild): If ctlfile_setvhost() then disconnect the current socket, if one is open. * courier/module.esmtp/esmtpclient.c (get_sourceaddr): The IP address specified in ipout or ip6out overrides SOURCE_ADDRESS and SOURCE_ADDRESS_IPV6 environment variable. * courier/module.local/localmail.c (main): Call ctlfile_setvhost(). * courier/module.uucp/uucp.c (uux): Call ctlfile_setvhost(). * courier/module.dsn/dsn.c (main): Call ctlfile_setvhost(). * liblock/mail.c (dotlock_exists): Quell a compiler warning. * courier/courierd.dist.in SOURCE_ADDRESS: Add a note that this setting is deprecated. @ text @$NetBSD: patch-ah,v 1.3 2010/06/15 23:01:23 pettai Exp $ --- courier/module.local/deliver.c.orig 2006-05-28 11:29:52.000000000 -0400 +++ courier/module.local/deliver.c @@@@ -648,7 +648,7 @@@@ static int docommand(const char *extensi const char *defaultmail, int recursion_level) { -char *envs[19]; +char *envs[20]; const char *p; const char *hostp; pid_t pid; @@@@ -740,7 +740,9 @@@@ const char *shell=getenv("SHELL"); envs[17]=courier_malloc(strlen(shell) +sizeof("SHELL=")); strcat(strcpy(envs[17], "SHELL="), shell); - envs[18]=0; + envs[18]=courier_malloc(sizeof("COURIER_MTA=")); + strcpy(envs[18], "COURIER_MTA="); + envs[19]=0; if (*command == '|') { @ 1.3 log @courier-0.65.0 et al: * gpglib/list.c: Handle GnuPG 2 --with-colons output format changes. * gpglib/mimegpgfork.c: GnuPG 2 wants --batch when specifying passphrase-fd. * tcpd/configure.in: Check if explicit linking with libgpg-error is required. * tcpd/libcouriergnutls.c (tls_connect): Fix bad call to gnutls_server_name_set(). Affects Courier compiled with GnuTLS support. * maildrop/mailbot.c (main): Set close-on-exec bit on opened files. * courier/doc/courier.sgml: Move the SPF section to a separate refsect2 to work around misformatting by the manpage stylesheet. * rfc2045/rfc2045reply.c (mkreply): Fix sender's name in the reply salutation. * html/en-us/newmsg.html: Ditto. * rfc2045/reformime.sgml: Document the -c option to reformime. * imapd.c (main): Fix typo in alert message. * Big quota patch (with some changes). (See the Changelog(s) for previous releases) Based on patch(es) from PR pkg/42989 by Brian Candler. @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.2 2007/08/10 17:57:05 jlam Exp $ d5 1 a5 1 @@@@ -649,7 +649,7 @@@@ static int docommand(const char *extensi d14 1 a14 1 @@@@ -741,7 +741,9 @@@@ const char *shell=getenv("SHELL"); @ 1.2 log @Update mail/courier-mta to 0.56.0. Changes from version 0.53.2 include: + Drop the uucp module from the default option set. + Patch the webmlm sources to not use "stdin" and "stdout" as function or member names as they can be macros according to the C standards. * webadmin: Remove check that prevents multiple virtual domains to be aliased to the same account. * webmlmd: new CGI module that can manage a Courier mailing list created with couriermlm. * Rewrite and code cleanup of couriermlm. * Use domain name, not MX hostname, for looking up authenticated SMTP passwords in esmtpauthclient @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 @@@@ -635,7 +635,7 @@@@ static int docommand(const char *extensi d14 1 a14 1 @@@@ -727,7 +727,9 @@@@ const char *shell=getenv("SHELL"); @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- courier/module.local/deliver.c.orig 2005-02-03 21:44:59.000000000 -0500 d5 1 a5 1 @@@@ -633,7 +633,7 @@@@ static int docommand(const char *extensi d14 1 a14 1 @@@@ -725,7 +725,9 @@@@ const char *shell=getenv("SHELL"); @ 1.1.1.1 log @First cut at packaging the MTA and mailing list components of courier-0.53.1 as mail/courier-mta. The Courier mail transfer agent (MTA) is a modular multiprotocol mail server that's designed to strike a balance between reasonable performance, flexibility and features. This package differs from traditional courier-mta packages in that the webmail, imap/pop3, and maildrop components are not included because they are supplied by the mail/sqwebmail, mail/courier-imap, and mail/maildrop packages, respectively. When Courier-MTA is installed together with Courier-IMAP and SqWebMail, they form an integrated mail/groupware server suite that provides ESMTP, IMAP, POP3, webmail, and mailing list services within a single, consistent, framework. A web-based administration and configuration tool is included for comprehensive configuration of the entire Courier software suite. Many thanks to Yarema whose Courier port for FreeBSD was an invaluable reference. @ text @@