Commit graph

19 commits

Author SHA1 Message Date
jperkin
cd0afef72d Add compatibility define for SOL_TCP. 2017-05-15 13:06:48 +00:00
joerg
8781c48b4e Don't depend on namespace pollution to find resetiosflags. Add missing
<functional> include.
2013-04-29 21:22:17 +00:00
joerg
c843396692 Fix C++ syntax. 2012-10-26 20:25:18 +00:00
adam
2e85bc7502 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.
2012-06-09 11:45:38 +00:00
joerg
4ca917506a Fix build with modern GCC 2011-11-26 17:14:42 +00:00
adam
b0817c7860 Changes 0.65.2:
This is a bug-fix release.
2010-11-10 10:40:15 +00:00
pettai
a7746ca9b5 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.
2010-06-15 23:01:23 +00:00
heinz
5268c6643b Fixed installation by _really_ disabling building of ldapaliasd. Bug
reported upstream (typo in courier/configure.in prevented option
"--without-ldapaliasd" from working).
2010-01-09 22:16:20 +00:00
jlam
9da73ea84e 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.
2008-02-19 18:45:23 +00:00
jlam
b6df15d726 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.
2007-10-17 13:50:30 +00:00
jlam
f6b00a9e48 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.
2007-10-15 15:37:13 +00:00
jlam
ed1597fb03 Don't hardcode the use of "99" as a file descriptor because it may
not be available.  Instead, use (OPEN_MAX - 1) which uses the same
"pick a high number" strategy as choosing "99", but is more likely to
be available.  This allows users with a soft limit of 64 open files
to run courierfilter and courierldapaliasd.

Bump the following PKGREVISIONs:

	mail/courier-mta	--> 11
	meta-pkgs/courier	--> 7
	net/couriertcpd		--> 3
2007-09-23 11:42:43 +00:00
jlam
2f710b31e7 Include a patch taken from the main Courier CVS repository that adds
a new TLS_PROTOCOL selection "SSL23" that allows for trying to negotiate
initially with SSLv3 but falling back to SSLv2:

	courier/tcpd/libcouriertls.c:1.21

This allows Courier to interoperate with older mail servers and clients
that are still using SSLv2 when advertising or attempting to use
advertised STARTTLS capabilities.

This change modifies the following packages and bumps their PKGREVISIONs:

	mail/courier-imap	to 1.
	mail/courier-mta	to 6.
	meta-pkgs/courier	to 2.
	net/couriertcpd		to 1.
2007-09-17 15:28:03 +00:00
jlam
7461413f6b Allow this code to compile with an older version of GCC and on an older
version of FreeBSD.
2007-09-06 04:05:39 +00:00
jlam
47c35aa402 We need locale.h for LC_ALL. 2007-09-05 19:21:03 +00:00
joerg
2705a6eb11 Fix build on DragonFly. 2007-09-04 20:55:01 +00:00
jlam
a11468cf4c 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
2007-08-10 17:57:03 +00:00
jlam
3d7c9445c0 Update mail/courier-mta to 0.53.2. Changes from version 0.53.1 include:
* [SECURITY] Fix bug in encoding of usernames that contain '='.  This
     fixes the security advisories noted here:

	http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2659
	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368834
	http://secunia.com/advisories/20519/

   * Implemented "Purge" option for mail filters.

   * Invoke Courier filters in alphabetical order, and uses 050 exit code
     to accept a message without running the remaining filters, which gets
     converted to a 250 ESMTP code.

   * Fix improper parsing of ident/pfix tokens in SPF.

   * New command line tool "aliaslookup" to look up mail aliases.

   * Added support for the koi8-u character set.
2006-06-09 22:12:18 +00:00
jlam
5f60d5c020 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 <yds@CoolRat.org> whose Courier port for FreeBSD
was an invaluable reference.
2006-04-28 18:10:21 +00:00