Commit graph

38 commits

Author SHA1 Message Date
jlam
2e3f8a1cf7 Get rid of the "gnutls" and "ssl" options and replace with a
"courier-gnutls" option/toggle that allows using GNU TLS instead of
defaulting to OpenSSL.

Bump the PKGREVISION of couriertcpd, courier-imap, and courier-mta to 1.
2008-02-21 15:50:29 +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
de737429da Comment out LICENSE=gnu-gpl-v3 for now as part of transition to switching
pkgsrc to using license.mk.  This will eventually be turned back on.
2007-10-31 14:22:55 +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
e95187554b Add some missing files to the PLIST (why didn't CHECK_FILES catch these?)
for courier-mta.  Bump the following PKGREVISIONS:

	mail/courier-mta	--> 10
	meta-pkgs/courier	--> 6
2007-09-23 01:24:55 +00:00
jlam
bfaeed6696 Also stop the webmlm rc.d script from creating the webmlm directory.
Ride previous PKGREVISION bump of courier-mta.
2007-09-22 05:07:49 +00:00
jlam
0023b20e9f Change the default directory for the various pid files to be
${COURIER_STATEDIR}/tmp, which defaults to /var/courier/tmp.  This
allows some of the servers which drop root privileges too soon to still
write the pid file into a courier-owned directory instead of the
root-owned /var/run.

In mail/courier-mta, de-list ${COURIER_STATEDIR}/webmlm from the list
of owned directories.  In fact, webmlmd expects that path to be a
socket file, and breaks horribly if the "webmlm" directory is present
instead.

Bump PKGREVISIONs for the following packages:

	mail/courier-imap	--> 2
	mail/courier-mta	--> 9
	mail/sqwebmail		--> 4
	meta-pkgs/courier	--> 5
2007-09-22 04:42:03 +00:00
jlam
d38bf18637 Fix the permissions on some binaries and directories to match the
generated permissions.dat file used to create RPMs by the author.

Bump the PKGREVISIONs:

	meta-pkg/courier	--> 4
	mail/courier-mta	--> 8
	mail/sqwebmail		--> 3
2007-09-21 22:42:00 +00:00
jlam
5950600b9c Allow "inet6" as a package option for net/couriertcpd and
mail/courier-mta.  Modify mail/courier-imap to build regardless of
the platforms IPv6 support and update meta-pkg/courier to the latest
versions of the Courier mail server suite.  Bump the PKGREVISIONs
of the following packages:

	mail/courier-mta	--> 7
	meta-pkgs/courier	--> 3
	net/couriertcpd		--> 2

This fixes PR pkg/37013 by Aleksej Saushev.
2007-09-21 14:12:19 +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
0871b6262c Fix location of directories used by the webadmin CGI binary. Bump the
PKGREVISION to 5.
2007-09-11 02:35:04 +00:00
jlam
1c4f5f50da Teach the webmlm rc.d script to check that the LISTS variable is non-empty
before attempting to start webmlmd.  Fix the way that webmlmd is called
(it expects an extra argument).

Bump the PKGREVSION to 4.
2007-09-10 17:00:38 +00:00
jlam
b97e915ecd Fix PLIST. 2007-09-10 16:32:47 +00:00
jlam
1d6217ef3e Actually install the webmlm rc.d script and config files.
Bump the PKGREVISON to 3.
2007-09-10 16:06:27 +00:00
jlam
5140639bfb Fix improperly quoted string in courieresmpts rc.d script. Bump
PKGREVISION to 2.
2007-09-07 14:18:11 +00:00
jlam
4ec0595b67 Fix name of a required configuration directory for the ESMTP module.
Bump the PKGREVISION to 1.
2007-09-07 14:11:20 +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
c05d170d22 Fix botched migration of PKG_OPTIONS from courier-mta/Makefile.common
into the Makefiles of the packages that include it:

(1) PKGNAME and PKG_SUPPORTED_OPTIONS clearly no longer need to be
    defined since the only code that used it in Makefile.common was
    removed.

(2) Package Makefiles need to properly define PKG_OPTIONS_VAR and
    PKG_SUPPORTED_OPTIONS prior to including bsd.options.mk.  Set
    them to the appropriate values to match the orginal names from
    before the botched migration.
2007-08-02 22:07:32 +00:00
joerg
c29f6d985e Fix path to Perl. Bump revision. 2007-07-28 01:37:23 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-07-04 20:54:31 +00:00
jlam
1a6fb589c8 Move common definitions of UUCP_{GROUP,USER} from mail/courier-mta and
net/uucp to mk/defaults/mk.conf.
2007-06-19 21:29:09 +00:00
jlam
6294b0e317 Use UUCP_USER instead of hardcoding "uucp". This makes courier-mta
use the same UUCP_{USER,GROUP} variables as net/uucp.
2007-06-15 21:59:23 +00:00
jlam
b48a6ed022 Use REAL_ROOT_{USER,GROUP} in INSTALL scripts. 2007-06-15 18:29:06 +00:00
schmonz
c0a6b738a9 Move handling of the "fam" option directly into the Courier packages
which use it. This fixes the build of courier-maildir (which includes
courier-mta/Makefile.common) since -r1.60 of mk/bsd.options.mk.
2007-06-07 07:50:57 +00:00
jlam
229f11418e Install couriertcpd into sbin, which is the location expected by stock
courier-mta and courier-imap.  Bump the PKGREVISION on all three
packages.
2006-06-26 05:21:17 +00:00
jlam
8c2458894d Fix substitution error... "user" instead of "owner". 2006-06-17 19:38:43 +00:00
jlam
fd154a9588 Modify the Courier services rc.d scripts so that:
(1) they are more likely to do the right thing if the user sets
       rc_fast_and_loose; and

   (2) they pre-create any necessary directories prior to start the
       respective services.

Also, fix the path to the courierwebadmin binary in SPECIAL_PERMS for the
courier-mta package.

Bump the PKGREVISION.
2006-06-17 19:26:48 +00:00
jlam
b17fa2e470 Add a buildlink dependency on openssl to couriertcpd, which needs the
SSL libraries to build couriertls, which encapsulates the logic for
handling SSL connections for Courier services.  Drop the dependency
on openssl from both courier-imap and courier-mta, which only need
the "openssl" tool instead.  Bump the PKGREVISIONs for all three
packages due to the changed dependencies.  Problem noted by Ondrej
Tuma in private email.
2006-06-14 17:01:08 +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
ghen
2eca3d9f2c The databases/openldap package has been split in -client and -server component
packages.  Convert LDAP-based applications to depend on openldap-client, and
bump PKGREVISION for those that depend on it by default.
2006-05-31 18:22:23 +00:00
jlam
5de9b9424b Note conflicts with postfix, qmail, and sendmail. 2006-05-01 02:57:58 +00:00
joerg
09d4511fcc Add filterctl.8. Bump revision. 2006-04-30 18:20:59 +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