head 1.5; access; symbols pkgsrc-2026Q3:1.5.0.116 pkgsrc-2026Q3-base:1.5 pkgsrc-2026Q2:1.5.0.114 pkgsrc-2026Q2-base:1.5 pkgsrc-2026Q1:1.5.0.112 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.110 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.108 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.106 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.104 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.102 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.100 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.98 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.96 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.94 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.92 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.90 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.88 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.86 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.84 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.82 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.80 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.78 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.76 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.74 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.72 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.70 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.68 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.64 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.44 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.66 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.62 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.60 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.58 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.56 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.54 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.52 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.50 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.48 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.46 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.42 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.40 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.38 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.36 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.34 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.32 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.30 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.28 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.26 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.24 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.22 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.20 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.18 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.16 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.14 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.12 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.10 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.8 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.6 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.4 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.2 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.4.0.38 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.36 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.34 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.32 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.30 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.28 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.26 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.24 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.22 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.20 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.18 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.16 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.14 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.12 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.10 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.8 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.6 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.4 pkgsrc-2008Q1:1.4.0.2 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.3.0.2 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.1.1.1.0.12 pkgsrc-2007Q3-base:1.1.1.1 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.5 date 2012.06.09.11.45.38; author adam; state Exp; branches; next 1.4; 1.4 date 2008.02.19.18.45.24; author jlam; state Exp; branches; next 1.3; 1.3 date 2007.10.17.13.50.30; author jlam; state Exp; branches; next 1.2; 1.2 date 2007.10.15.15.37.14; 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.5 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-ai,v 1.4 2008/02/19 18:45:24 jlam Exp $ --- courier/module.local/local.c.orig 2007-10-16 22:04:01.000000000 -0400 +++ courier/module.local/local.c @@@@ -746,6 +746,8 @@@@ const char *quota; strlen(argv[7])), "SENDER="), argv[7])); + putenv(strcpy(courier_malloc(sizeof("COURIER_MTA=")), + "COURIER_MTA=")); putenv(strcat(strcpy(courier_malloc(sizeof("HOME=")+ strlen(homedir)), "HOME="), homedir)); putenv(strcat(strcpy(courier_malloc(sizeof("DEFAULT=")+ @ 1.4 log @Update mail/courier-mta to version 0.58.0. Changes from version 0.57.1 include: + Add full DESTDIR support. + Don't create empty, unused directories under ${PREFIX}/share/examples/courier. + Teach mkesmtpdcert generate certificates and keys using the either GNUTLS or OpenSSL tools. * Fix a memory stomp in local delivery agent. * Get rid of the hard 30 minute timeout in sendmail(8). * Rewrite input processing for submit(8) process to use non-blocking I/O to read standard input. When the message source is local (or dsn), get rid of the hard 30 minute timeout, and poll stdin with a 5 minute poll() timeout, at which point the timestamps on all open control and data files are pinged, to keep courierd from purging them based on their old timestamp. Continue to use a hard timeout for all non-local mail. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 @@@@ -747,6 +747,8 @@@@ const char *quota; @ 1.3 log @Add patch taken from Courier CVS repository that fixes a memory-stomping bug when reporting unknown local recipients. Bump PKGREVISIONs of courier and courier-mta. @ text @d3 1 a3 1 --- courier/module.local/local.c.orig Sun Oct 7 16:37:52 2007 d5 1 a5 28 @@@@ -391,8 +391,6 @@@@ toalias: } not_found: - if (hostdomain) free(hostdomain); - /* ** When submit is being called by the sendmail command line, ** don't reject unknown addresses, instead accept them (and bounce @@@@ -407,6 +405,8 @@@@ not_found: { free(addr); (*delfunc)(rwi, rwi->ptr, rwi->ptr); + if (hostdomain) free(hostdomain); + return; } @@@@ -420,6 +420,8 @@@@ not_found: snprintf(buf, 255, "User <%s> unknown", orig_addr ? orig_addr:""); free(addr); + if (hostdomain) free(hostdomain); + if (orig_addr) free(orig_addr); (*rwi->err_func)(550, buf, rwi); @@@@ -745,6 +747,8 @@@@ const char *quota; @ 1.2 log @Update mail/courier-mta to 0.57.1. Changes from version 0.56.0 include: * Major code cleanup. * "User unknown" reports complete local address, including extensions. * Only run courierfilters after all control files are closed. * "opt BOFHHEADERLIMIT" replaces hardcoded limit of 100,000 bytes of headers per message. * Reject <@@domain.com> for a recipient's address. * Tolerate newline-less responses from the filter. * Document that sysexit 100 from .courier is a permanent failure. * "courier show all" and "courier clear all" commands for managing backscatter suppression list. @ text @d5 28 a32 1 @@@@ -745,6 +745,8 @@@@ const char *quota; @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- courier/module.local/local.c.orig 2004-10-23 22:02:38.000000000 -0400 d5 1 a5 1 @@@@ -731,6 +731,8 @@@@ const char *quota; @ 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 @@