Commit graph

405 commits

Author SHA1 Message Date
martti
1c623b18f0 Added support for SQLite (pkg/39745 by Sébastien BOCAHU.
No existing binary packages are affected so I didn't bump the revision...
2008-10-16 09:40:20 +00:00
joerg
68af3a0e92 Support newer DragonFly versions. From PR 39148. 2008-09-17 13:21:19 +00:00
martti
40312ffafe Updated mail/postfix to 2.5.5
Postfix 2.4 and later, on Linux kernel 2.6, is vulnerable to a
denial of service attack by a local user. There is no breach of
data confidentiality or data integrity. This problem was found by
the Postfix author during routine source code maintenance.

An on-line version of this announcement is available at
http://www.postfix.org/announcements/20080902.html
2008-09-04 08:25:19 +00:00
ghen
c56bc05132 Add some (http) mirrors. 2008-08-22 20:29:55 +00:00
martti
fa6ce58588 Updated mail/postfix to 2.5.4
20080804

	Bugfix: dangling pointer in vstring_sprintf_prepend().
	File: util/vstring.c.

20080814

	Security: some systems have changed their link() semantics,
	and will hardlink a symlink, contrary to POSIX and XPG4.
	Sebastian Krahmer, SuSE. File: util/safe_open.c.

	The solution introduces the following incompatible change:
	when the target of mail delivery is a symlink, the parent
	directory of that symlink must now be writable by root only
	(in addition to the already existing requirement that the
	symlink itself is owned by root).  This change will break
	legitimate configurations that deliver mail to a symbolic
	link in a directory with less restrictive permissions.
2008-08-18 07:13:41 +00:00
martti
0c18ad0066 Updated mail/postfix to 2.5.3
When a mailbox file is not owned by its recipient, the local and
virtual delivery agents now log a warning and defer delivery.
Specify "strict_mailbox_ownership = no" to ignore such ownership
discrepancies.

[HISTORY]
20080509

	Bugfix: null-terminate CN comment string after sanitization.
	File: smtpd/smtpd.c.

20080603

	Workaround: avoid "bad address pattern" errors with non-address
	patterns in namadr_list_match() calls. File: util/match_ops.c.

20080620

	Bugfix (introduced 20080207): "cleanup -v" panic because
	the new "SMTP reply" request flag did not have a printable
	name. File: global/cleanup_strflags.c.

	Cleanup: using "Before-queue content filter", RFC3848
	information was not added to the headers. Carlos Velasco.
	File smtpd/smtpd.c.

20080717

	Cleanup: a poorly-implemented integer overflow check for
	TCP MSS calculation had the unexpected effect that people
	broke Postfix on LP64 systems while attempting to silence
	a compiler warning.  File: util/vstream_tweak.c.

20080725

	Paranoia: defer delivery when a mailbox file is not owned
	by the recipient. Requested by Sebastian Krahmer, SuSE.
	Specify "strict_mailbox_ownership=no" to ignore ownership
	discrepancies.  Files: local/mailbox.c, virtual/mailbox.c.
2008-07-29 05:14:15 +00:00
ghen
20c45abd40 Add optional support for the "cdb" mapfile (constant database). This format
is read-only but is faster than Berkeley DB and uses less memory.  Use the
TinyCDB implementation which is in the public domain and a bit faster than
DJB's original CDB.
2008-06-03 10:30:51 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
taca
079cec5eab Set data_directory's default to "/var/db/postfix" and create it properly
install stage.

It should be fix some problem; running tls and find command's error
on start.

Bump PKGREVISION.
2008-03-14 01:13:36 +00:00
ghen
9a6dd16f5d Update Postfix to version 2.5.1 (ok martti). Major changes over 2.4.x are:
- TLS (SSL) support was streamlined further, and provides a new security level
  based on certificate fingerprints instead of CA signatures. See TLS_README
  for details.

- Milter support was updated from the Sendmail 8.13 feature set and now
  includes most of the features that were introduced with Sendmail 8.14. See
  MILTER_README for details.

- Stress-adaptive configuration was introduced. This allows the Postfix SMTP
  server to temporarily adjust its rules under conditions of overload, such as
  a malware attack or backscatter flood. See STRESS_README for details.
  [pkgsrc: this obsoletes the "postfix-stress" option which provided the same
  functionality via a distribution patch]

- The queue manager scheduler was refined. It now provides per-transport
  scheduling controls and allows for adjustment of the sensitivity to mail
  delivery (non-)errors. See SCHEDULER_README.

- Security was improved by introducing a Postfix-owned data_directory for
  storage of randomness, caches and other non-queue data. This change avoids
  future security loopholes due to untrusted data sitting in root-owned files
  or in root-owned directories. Writes to legacy files in root-owned
  directories are automatically redirected to files in the new data_directory.

No functionality has been removed, but it is a good idea to review the
RELEASE_NOTES file for the usual minor incompatibilities or limitations.
2008-02-18 17:45:34 +00:00
ghen
9385d343d3 Move SASL conditionals to options.mk. 2008-01-25 09:42:54 +00:00
tnn
ad6ceadd25 Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@
2008-01-18 05:06:18 +00:00
martti
5b9c5781da s/Dovcot/Dovecot/ 2008-01-17 13:47:01 +00:00
ghen
42408282f4 Drop the "dovecot-sasl" option and instead enable dovecot SASL support by
default (this doesn't actually depend on Dovecot for building, the code is
shipped with Postfix).
Set the default value for smtpd_sasl_type to "dovecot" unless cyrus SASL is
enabled, too.  This ensures backwards compatibility for most cases.

Ok with martti, joerg.
2008-01-16 14:21:39 +00:00
ghen
3123485e39 Add the postfix stress-adaptive behaviour patch via an option "postfix-stress"
(disabled by default).  This functionality will be included in Postfix 2.5 but
has been proven very succesful on the mailing lists so Wietse provided a patch
for Postfix 2.3 and 2.4.

See http://www.postfix.org/STRESS_README.html#adapt for configuration details.
2008-01-14 13:29:24 +00:00
gdt
c4b652896c Don't add smtpd.conf as a conf file in the dovecot-sasl case,
because it doesn't exist unless sasl is defined, causing building with
options dovecot-sasl and not sasl to fail.
2007-12-02 02:17:24 +00:00
martti
9fc7653761 Based on some feedback, comment out the newly added LICENSE=xxx for now.
I'll re-activate this later when the global license stuff is activated.
2007-10-30 19:31:38 +00:00
martti
64d63fec50 Added LICENSE=postfix-license 2007-10-30 13:27:32 +00:00
martti
137a0dbe03 Updated mail/postfix to 2.4.6
- A remote SMTP client TLS certificate with an unparsable canonical
  name triggered a panic error in the Postfix SMTP server (attempt
  to allocate zero-length memory) while sending a request to an
  SMTPD policy server.

- On backup MX servers where the queue file system is mounted with
  "atime" (file read/execute access time) updates disabled, the
  flush daemon would trigger mail delivery attempts once every 1000
  seconds, thus rendering the maximal_backoff_time setting useless
  for backup MX service.
2007-10-22 06:15:19 +00:00
jlam
c99efd902a Honor PKGMANDIR. 2007-09-23 11:20:48 +00:00
martti
01f10b2b4f Updated mail/postfix to 2.4.5
MILTER bugfix:
    When a milter replied with ACCEPT at or before the first RCPT
    command, the cleanup server would apply the non_smtpd_milters
    setting as if the message was a local submission. Problem
    reported by Jukka Salmi.

MILTER bugfix:
    Problem with header updates after body updates.  Reported by
    Jose-Marcio Martins da Cruz.

MILTER robustness:
    Assorted cleanups to harden error handling in the Postfix Milter
    client.

SASL workaround for Postfix SMTP client:
    Some non-Cyrus SASL SMTP servers require SASL login without
    authzid (authoriZation ID), i.e. the client must send only the
    authcid (authentiCation ID) + the authcid's password.  This is
    now the default Postfix SMTP client behavior.

Loopback TCP performance workaround:
    Some systems exhibited poor SMTP and Milter performance with
    loopback (127.0.0.1) connections. Problem reported by Mark
    Martinec.

MILTER bugfix:
    When a milter replied with ACCEPT at or before the first RCPT
    command, the cleanup server would apply the non_smtpd_milters
    setting as if the message was a local submission. Problem
    reported by Jukka Salmi.

MILTER bugfix:
    Problem with header updates after body updates.  Reported by
    Jose-Marcio Martins da Cruz.

MILTER robustness:
    Assorted cleanups to harden error handling in the Postfix Milter
    client.

SASL workaround for Postfix SMTP client:
    Some non-Cyrus SASL SMTP servers require SASL login without
    authzid (authoriZation ID), i.e. the client must send only the
2007-08-13 07:05:37 +00:00
martti
9d36d64929 Add note about /etc/rc.conf.d/postfix. 2007-07-11 12:25:53 +00:00
martti
55b45d8ae2 Updated mail/postfix to 2.4.3
20070425

	Bugfix: don't falsely report "lost connection from
	localhost[127.0.0.1]" when Postfix is being portscanned.
	Files: smtpd/smtpd_peer.c, qmqpd/qmqpd_peer.c.

20070430

	Robustness: recommend a "0" process limit for policy servers
	to avoid "connection refused" problems when the smtpd
	process limit exceeds the default process limit.  File:
	proto/SMTPD_POLICY_README.html.

20070501

	Safety: when IPv6 (or IPv4) is turned off, don't treat an
	IPv6 (or IPv4) connection from e.g. inetd as if it comes
	from localhost[127.0.0.1].  Files: smtpd/smtpd_peer.c,
	qmqpd/qmqpd_peer.c.

20070508

	Bugfix: Content-Transfer-Encoding: attribute values are
	case insensitive. File: src/cleanup/cleanup_message.c.

20070514

	Bugfix: mailbox_transport(_maps) and fallback_transport(_maps)
	were broken when used with the error(8) or discard(8)
	transports. Cause: insufficient documentation.  Files:
	error/error.c, discard/discard.c.

20070520

	Bugfix (problem introduced Postfix 2.3): when DSN support
	was introduced it broke "agressive" recipient duplicate
	elimination with "enable_original_recipient = no".  File:
	cleanup/cleanup_out_recipient.c.

20070529

	Bugfix (introduced Postfix 2.3): the sendmail/postdrop
	commands would hang when trying to submit a message larger
	than the per-message size limit. File: postdrop/postdrop.c.

20070530

	Sabotage the saboteur who insists on breaking Postfix by
	adding gethostbyname() calls that cause maildir delivery
	to fail when the machine name is not found in /etc/hosts,
	or that cause Postfix processes to hang when the network
	is down.

20070531

	Portability: Victor helpfully pointed out that change
	20070425 broke on non-IPv6 systems. Files: smtpd/smtpd_peer.c,
	qmqpd/qmqpd_peer.c.
2007-06-01 03:34:06 +00:00
martti
f26ef52ceb Use INSTALL_MAN instead of INSTALL_SCRIPT to install qshape.1 2007-05-30 07:56:27 +00:00
martti
755f5c7ecc Updated mail/postfix to 2.4.1
20070331

	Bugfix (introduced Postfix 2.3): segfault with HOLD action
	in access/header_checks/body_checks on 64-bit platforms.
	File: cleanup/cleanup_api.c.

20070402

	Portability (introduced 20070325): the fix for hardlinks
	and symlinks in postfix-install forgot to work around shells
	where "IFS=/ command" makes the IFS setting permanent.  This
	is allowed by some broken standard, and affects Solaris.
	File: postfix-install.

	Portability (introduced 20070212): the workaround for
	non-existent library bugs with descriptors >= FD_SETSIZE
	broke with "fcntl F_DUPFD: Invalid argument" on 64-bit
	Solaris.  Files: master/multi_server.c, *qmgr/qmgr_transport.c.

20070421

	Cleanup: on (Linux) platforms that cripple signal handlers
	with deadlock, "postfix stop" now forcefully stops all the
	processes in the master's process group, not just the master
	process alone.  File: conf/postfix-script.
2007-05-02 05:02:48 +00:00
tron
7ff2feb001 Enable TLS support by default. Approved by Martti Kuparinen. 2007-04-29 19:27:35 +00:00
ghen
7a73d03486 Install qshape(1) manpage. Bump PKGREVISION. 2007-04-25 13:09:35 +00:00
martti
070085b7ea Updated mail/postfix to 2.4.0
The footprint of new features with Postfix 2.4.0 is significantly
smaller than with earlier releases. And that is the whole point of
approaching completeness: fewer visible changes.

Below is a brief summary of what has changed.  See the RELEASE_NOTES
file for more, including compatibility issues that may affect your
site. The HISTORY file gives a blow-by-blow account of what happened
over the past year.

	Wietse

- Postfix can now manage thousands of connections without needing
special main.cf, master.cf, or compile-time tweaks, on systems with
BSD kqueue, Solaris /dev/poll, or Linux epoll support.

- Milter support for message body replacement. The resulting queue
files are backwards compatible with Postfix 2.3. The existing Milter
support for message header manipulations was revised and is now
implemented by much simpler code.

- Minor improvements in TLS session cache management and in the
implementation of certificate fingerprint based authentication.  A
more extensive revision of TLS internals will appear first in Postfix
2.5 snapshots.

- Improvements in queue manager performance when deferring large
amounts of mail, or when delivering mail with lots of recipients.

- Workarounds for SMTP servers that reply and hang up prematurely,
for file system clocks that are out of sync, and for broken kernel
lock management in POP servers.
2007-04-03 07:27:50 +00:00
martti
4026840958 Some pkglint fixes. 2007-04-03 07:18:59 +00:00
joerg
eb5c88ba26 Add an option to use dovecot for SASL. 2007-02-20 16:49:29 +00:00
martti
0297aa6344 Updated mail/postfix to 2.3.7
- postmap support for NIS maps was broken with Postfix 2.3.

- Workaround to avoid breaking digital signatures for malformed
  MIME attachments.

- Incorrect handling of ![address] forms in match lists. such as
  mynetworks, inet_interfaces etc.
2007-02-15 06:24:04 +00:00
martti
ab02ad23d8 Updated mail/postfix to 2.3.5
- On Redhat Linux, a Postfix daemon could lock up while logging a
  warning from a signal handler before exiting. This is remedied
  by a low-cost re-entrancy guard for signal handlers that never
  return.

- Message headers longer than 65535 broke the Milter protocol.  To
  make matters worse the cleanup server could then dereference a
  null pointer.  When Milter support is enabled, the length of each
  message header is now limited to 60000.

- Several fixes to improve worst-case behavior of the (new) queue
  manager with multi-recipient mail. The queue manager now reads
  new recipients earlier from the queue file, instead of becoming
  starved while waiting for the slowest in-memory recipients to
  complete; and it now reads recipients in smaller chunks to avoid
  spending too much time not talking to delivery agents.

- With remote SMTP server tarpit delays larger than the Postfix
  SMTP client's smtp_rset_timeout (default: 20s), the client would
  get out of sync with the server while reusing a connection.  The
  symptoms were "recipient rejected .. in reply to DATA".

- On FreeBSD 6.2, some Postfix daemon processes would complain once
  with "Error 0" after "postfix reload" and then recover. This
  warning is now logged only when the problem persists.
2006-12-13 06:16:55 +00:00
rillig
1f61f23e04 Added CHECK_HEADERS_SKIP to make the package pass the test. The postfix
configuration variables look exactly like the ones produced by the
configure scripts.

Added POSTFIX_QUEUE_DIR to BUILD_DEFS to make it visible why VARBASE can
be configured.
2006-11-10 08:08:55 +00:00
martti
1541f80482 Updated mail/postfix to 2.3.4
Postfix 2.3 Patch 04 fixes minor problems as detailed in the change
history below. The patch as well as complete source code tarballs
were uploaded last week to the mirrors listed at http://www.postfix.org/

20060831

	Bugfix (introduced with initial implementation): missing
	"dict_errno = 0" caused mis-leading error messages after
	non-error lookup failure.  Victor Duchovni.  File:
	util/dict_cidr.c.

	Robustness: the default TLS cipher lists were changed from
	!foo:ALL into ALL:!foo. Victor Duchovni.  Files:
	global/mail_params.h and documentation.

20060902

	Bugfix (introduced Postfix 2.3): the LMTP client stripped
	"inet": from the next-hop destination, but still used the
	complete next-hop from the delivery request. File:
	smtp/smtp_connect.c.

20060903

	Cleanup: record loop detection.  File: global/record.c.

20060929

	Workaround: AIX 5.[1-3] getaddrinfo() creates socket address
	structures with a non-zero port value. This breaks the
	smtp_bind_address etc. features, and breaks inet_interfaces
	settings with only one IP address.  Problem reported by
	Hamish Marson.  Files: util/sock_addr.[hc], util/myaddrinfo.c.

	Bugfix (introduced with the Postfix TLS patch): memory leak
	in verify_extract_peer(). The OpenSSL documentation provides
	no information on how subjectAltNames are managed.  Sam
	Rushing, ironport.  File: tls/tls_client.c.

	Bugfix (introduced with Postfix 2.2): smtp_generic_maps
	turned on MIME conversion. File: smtp/smtp_proto.c.

	Workaround: don't send SIZE information in the MAIL FROM
	command when message content will be subject to 8bit ->
	quoted-printable conversion.  File: smtp/smtp_proto.c.

20061002

	Compatibility: Sendmail now invokes the Milter connect
	action with the verified hostname instead of the name
	obtained with PTR lookup. File: smtpd/smtpd.c.

20061004

	Cleanup: force space between mailq queueid+status and file
	size items. File: showq/showq.c.

20061015

	Cleanup: convert the Milter {mail_addr} and {rcpt_addr}
	macro values to external form. File: smtpd/smtpd_milter.c.

	Cleanup: the Milter {mail_addr} and {rcpt_addr} macros are
	now available with non-SMTP mail. File: cleanup/cleanup_milter.c.

	Cleanup: convert addresses in Milter recipient add/delete
	requests to internal form.  File: cleanup/cleanup_milter.c.

	Cleanup: with non-SMTP mail, convert addresses in simulated
	MAIL FROM and RCPT TO events to external form.  File:
	cleanup/cleanup_milter.c.

20061017

	Cleanup: removed spurious warning when the cleanup server
	attempts to bounce mail with soft_bounce=yes. Problem
	reported by Ralf Hildebrandt. File: cleanup/cleanup_bounce.c.

	Bugfix: null pointer bug when receiving a non-protocol
	response on a cached SMTP/LMTP connection.  Report by Brian
	Kantor.  Fix by Victor Duchovni.  File: smtp/smtp_reuse.c.
2006-11-07 07:08:25 +00:00
martti
4b1da963df More pkglint -Wall fixes. 2006-10-19 06:37:04 +00:00
martti
bd88861f5c Remove patch-ab and "rm -f auxiliary/MacOSX/Postfix.StartupItem/Postfix"
in post-extract.

I exchanges few mails with Wietse and he refused to fix the "==" lines and
instructed me to simply remove the offending file. Instead of having a patch
for a file which is not used by pkgsrc I think it makes sense to remove it.
2006-10-18 09:26:53 +00:00
martti
51fda70284 Fix for test ... == ... 2006-10-18 05:50:42 +00:00
martti
2c44d89d2b Substitute _file_ with i to make pkglint happy. 2006-10-16 11:03:07 +00:00
martti
5e66a4c3e0 Split SUBST_SED.postfix 2006-10-16 10:58:24 +00:00
martti
ec1133bf1d Fixed few pkglint warnings. 2006-10-16 10:43:32 +00:00
martti
ad284b76f7 Fixed few pkglint warnings. 2006-10-16 10:04:01 +00:00
martti
3b4d16f733 Fixed few pkglint warnings. 2006-10-16 09:54:49 +00:00
hira
1447455984 Add missing RCS Id. 2006-09-16 15:29:35 +00:00
martti
7920b8c87e Updated mail/postfix-2.3.3
- File corruption while executing a Milter "header insert" action
  with headers-only mail (found with dk-filter).  Delivery agents
  would go into an infinite loop because some queue file update
  had been done in the wrong order.  As a precaution, delivery
  agents now detect such loops, and the queue manager now saves
  such mail to the "corrupt" directory.

- Segmentation fault in the SMTP client while saving a cached
  connection with unsent data. Postfix indexed some table with -1,
  because some I/O cleanup had been done in the wrong order. The
  same problem should exist in Postfix 2.2.

- Postfix no longer announces its name in delivery status notifications.
  All other details of the default bounce text remain unchanged.
  The reason for this change is that too many people believe that
  Wietse provides a free helpdesk service that solves all their
  email problems.
2006-08-31 18:44:50 +00:00
taca
dc13661258 Accept NetBSD 4.* as NETBSD4 to compile on NetBSD current.
Bump PKGREVISION.
2006-08-11 12:34:24 +00:00
martti
0229e84894 Updated mail/postfix to 2.3.2
- Corrupted queue file after a request to modify a short message
  header, when that header was the last one in the message.

- Panic after spurious Milter request when a client was rejected
  with "smtpd_delay_reject = no".

- The Milter client is now more tolerant for redundant "data cleanup"
  requests. This avoids panic() calls for harmless conditions.
2006-07-31 04:57:45 +00:00
adrianp
8d83654955 Add -DUSE_CYRUS_SASL to CCARGS to get postfix working with Cyrus-SASL auth.
Ok'ed martti@
2006-07-30 10:59:24 +00:00
martti
8e9689e73a Updated mail/postfix to 2.3.1
Main changes in TLS support:

- The Postfix SMTP client enforced mandatory TLS only when talking
  to an ESMTP server; enforcement did not happen if Postfix could
  somehow be forced to send HELO instead of EHLO. This problem also
  exists in Postfix 2.2, where it is is fixed with Postfix 2.2
  patch 11.  This is minor compared to the DNS spoofing issues that
  were fixed with Postfix 2.2.10.

- Workaround for an interoperability problem introduced with Postfix
  2.3.  Some buggy TLS client implementations were unable to deliver
  mail because the Postfix SMTP server didn't send a TLS session
  ID. To disable the workaround specify "smtpd_tls_always_issue_session_ids
  = no"; this allows non-buggy TLS clients to save some space.

Main changes in Milter support:

- Safety measure. After "postsuper -r", mail is no longer inspected
  by the Milters specified with the non_smtpd_milters parameter.
  This measure prevents a bad interaction with external content
  filters: Milters would receive incorrect SMTP client information,
  and could be tricked into signing or allowing untrusted messages.
  This change does not affect Milter applications that run behind
  an after-queue content filter. The behavior is detailed in the
  postsuper(1) manual page.
2006-07-25 05:04:29 +00:00
martti
456e7a218c Updated mail/postfix to 2.3.0
This is the first version in the 2.3.x series, please see the release notes
for full list of changes since 2.2.x before upgrading your current
installation.
2006-07-13 09:57:51 +00:00
jlam
8c04897fcb Fix default value of smtp_sasl_tls_security_options to use
$smtp_sasl_security_options (as documented in postconf(5)) instead of
$var_smtp_sasl_opts, which is never defined.  This is a bug that exists
in the Postfix-2.2.x series but has been fixed in the (current)
Postfix-2.3.x series.  This fixes PR pkg/29631 by Christoph Badura.
Bump the PKGREVISION to 1.
2006-06-27 04:40:49 +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
6d3e25ffb4 Conflict with courier-mta. 2006-05-01 02:57:03 +00:00
jlam
802ce74fcb Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
2006-04-23 00:12:35 +00:00
wiz
0719006c41 Update path from cyrus-sasl2 to cyrus-sasl. 2006-04-13 21:45:12 +00:00
martti
50211f42c4 Updated mail/postfix to 2.2.10
- "sendmail -t" did not remove the CR from lines ending in CRLF.

- Workaround for fatal errors in PCRE maps when an expression in
  () matches empty text (the PCRE library returns an inappropriate
  error code).

- Fixes for non-security bugs that Coverity found in code that
  handles impossible error conditions.
2006-04-07 09:08:29 +00:00
martti
41b1e9d5cb Added USE_TOOLS+=perl 2006-02-27 13:22:55 +00:00
martti
ca455c76f0 Fix pkg/32498
- install PREFIX/sbin/qshape

Updated postfix to 2.2.9

Most of this patch hardens the TLS implementation against DNS-based
attacks, and eliminates some anomalies from the TLS per-site policy
engine. See the TLS_README document for tips on how to avoid
DNS-based attacks that can change the server hostname that Postfix
uses for logging, for TLS per-site policies, and for server
certificate verification.

The patch also adds a workaround that prevents Postfix from repeatedly
trying to deliver mail to domains with a malformed MX record (for
example, with a null MX hostname). Postfix 2.2.9 bounces such mail
immediately.
2006-02-27 07:10:59 +00:00
joerg
89eaa0081e Use SUBST framework for mailer.conf as well. 2006-01-10 20:31:00 +00:00
martti
c7d5049995 Updated postfix to 2.2.8
Postfix 2.2.8 backs out a workaround for broken servers/firewalls
that created more problems than it solved.

- The Postfix 2.2.6 paranoia about malformed remote server replies
  caused "multiple delivery" problems or "no delivery" problems with
  broken servers/firewalls. Postfix still logs a warning but no longer
  defers delivery.
2006-01-10 06:38:14 +00:00
xtraeme
eadc9131c8 Bump PKGREVISION due to mysql.buildlink3.mk changes (default mysql
pkg has been changed to 5.x). Reminded by wiz... thanks.
2006-01-08 18:35:08 +00:00
martti
a5e1258797 Add ${POSTFIX_QUEUE_DIR}/etc to OWN_DIRS. Suggested by Jeremy C. Reed. 2005-12-31 15:16:18 +00:00
martti
ee0069539e Make sure ${spooletcdir} exists. Bump PKGREVISION as this affects
the binary package.
2005-12-30 06:29:41 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
martti
438b4c5d98 Updated mail/postfix to 2.2.6
Postfix 2.2 patch 06 catches up with minor fixes that were fielded
earlier in the experimental Postfix 2.3 snapshots.
2005-12-01 06:46:40 +00:00
martti
a5e5c62cae Removed patch-ac as it was no longer needed (and in fact should not
be used) according to Wietse Venema.

PKGREVISION++
2005-11-16 06:53:13 +00:00
martti
ca9cde4793 Regenerate the patches not to add NetBSD stuff inside Mac OS X section. 2005-11-13 10:37:09 +00:00
martti
245bbdc03d Make this compile on NetBSD 2.1. Does not affect other versions so no
version bump. Fixes pkg/31952.
2005-11-12 05:19:24 +00:00
joerg
f5247896f5 Treat DragonFly as FreeBSD 4 to let Postfix build. 2005-10-13 13:06:38 +00:00
abs
ee9906d198 Fix NetBSD statvfs check to be >= 299000900 not >= 200040000
No pkgrevision bumps needed.
2005-09-06 08:10:57 +00:00
rillig
7a95adad42 The real user name in PKG_USERS does not need to be escaped with double
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
2005-08-23 11:48:47 +00:00
grant
826708f73d use ${LDFLAGS} in AUXLIBS so the chosen libdb can be found at runtime.
fixes build on Solaris.
2005-07-31 03:46:05 +00:00
martti
be52346279 Updated postfix to 2.2.5
Postfix 2.2.5 addresses some portability problems with LP64 platforms
that broke SMTP connection caching, and makes SMTP connection
caching more failure tolerant. These fixes are back-ported from
the experimental (2.3) release series.

The connection caching protocol has changed, so you will need to
"postfix reload" after upgrading.
2005-07-22 06:12:44 +00:00
martti
ad898c866b Updated postfix to 2.2.4
20050517

        Bugfix: in a DSN report, the original recipient should not
        be xtext encoded. File: bounce/bounce_notify_util.c.

20050523

        Bugfix: mymalloc() panic with mistyped server host list.
        File: global/dict_pgsql.c.

20040530

        Bugfix: TLS MUST_NOPEERMATCH didn't work (inherited from
        TLS patch), and a dangling pointer in the corresponding
        error handling. File: smtp/smtp_proto.c.

20050615

        Cleanup: the SMTP client now sends QUIT when the initial
        HELO handshake fails. it still doesn't send QUIT when the
        server greets with a [45]XX code, as that is handled in the
        connection management code before a session context exists.
        File: smtp/smtp_connect.c.

20050616

        Bugfix: missing or mis-placed va_end() macros, found in
        Postfix 2.3 code review. Files: util/netstring.c,
        util/myaddrinfo.c, util/attr_clnt.c, util/vstream.c.

20050621

        Portability: file descriptor passing is available for Tru64
        UNIX, but AIX4 and IRIX6 will have to do without. This means
        no SMTP connection caching for those platforms.  Albert
        Chin.  File: util/sys_defs.h.
2005-06-23 07:58:48 +00:00
martti
fb4fbcddee Removed POSTFIX_EXAMPLE_FILES loop as it's no longer used. Noted by
Yannick Gravel in a private mail.
2005-06-09 17:06:47 +00:00
martti
9ac91d90e6 Updated postfix to 2.2.3
- SASL inter-operability problem causing Sendmail servers to hang up on Postfix.

- Panic when a fall-back relay could not be used for a variety of reasons.
2005-05-04 05:20:40 +00:00
reed
ee8be9d0c1 RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.
And always is defined as share/examples/rc.d
which was the default before.

This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.

This was discussed on tech-pkg in late January and late April.

Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-05-02 20:33:57 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
martti
14befbbdbc Updated postfix to 2.2.2
- A more usable REPLACE action in header/body_checks. The old
  version produced unexpected results.

- Portability to HP-UX.

- Two harmless defects in the SMTP and LMTP clients that go back
  to before the first Postfix release, and that were found while
  doing code maintenance on the experimental release.
2005-04-04 18:13:32 +00:00
jlam
e8b16d2e6e Remove security/cyrus-sasl and security/cy-login. These packages
tracked the Cyrus SASL 1.5.x releases, which are no longer maintained.
Adjust packages to use security/cyrus-sasl2 instead for SASL support.
This closes PR pkg/28218 and PR pkg/29736.
2005-03-28 09:39:56 +00:00
jlam
a1f833280a Fix up PLISTs and remove unused files left over from the incomplete
package update in the previous commit.
2005-03-28 08:53:07 +00:00
jlam
9db949578e STARTTLS support is now part of Postfix's standard distribution. 2005-03-28 07:07:49 +00:00
xtraeme
cdb0e00742 NetBSD-3.x support. 2005-03-22 18:09:33 +00:00
cjs
e4caf9e8fc Postfix 2.2.1 import.
New features since 2.1.x:
  - built-in IPv6 and TLS (we no longer use patches--beware config changes!)
  - more sophisticated LDAP/MySQL/PostgreSQL support, with freeform queries
  - SMTP client-side connection reuse
  - by default, no longer rewrite message headers in mail from remote clients
  - can use your ISP account name for mail destined outside your machine
  - can selectively turn off ESMTP features in client or server
  - remote SMTP client resource control (the anvil server)
  - support for CDB, SDBM and NIS+ databases is now built into Postfix
  - new SMTP access control features
  - and more
Caution:
  - You MUST stop 2.1.x and earlier versions before upgrading.
  - Use the postfix upgrade program to upgrade your main.cf/master.cf.
2005-03-22 10:43:50 +00:00
bad
54d16e4557 Be more explicit about what to configure for SASL authentication in
server and client roles.
2005-03-08 18:35:04 +00:00
bad
02a4166135 Be specific about what the master.cf example is for. 2005-03-08 18:33:39 +00:00
agc
8758983939 Add RMD160 digests. 2005-02-24 09:59:20 +00:00
martti
f4a2c7bec3 Updated postfix to 2.1.5nb5
* New IPv6 patch
2005-02-09 06:55:10 +00:00
kim
86519c59a5 Apply NI_WITHSCOPEID patch only if the inet6 option is enabled.
Closes PR pkg/28756
2004-12-28 16:13:28 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
kim
fbb3fd6d93 Fix "postfix/smtp killed by signal 11" problem. 2004-12-23 13:51:27 +00:00
kim
2c7c9b104c Make this compile on -current without NI_WITHSCOPEID
Closes PR pkg/28686
2004-12-17 19:36:01 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
jlam
0fec2dc732 Fix thinko with previous commit -- the builtin db1 is okay to use.
Bump the PKGREVISION to note the change in the default.
2004-12-02 14:39:56 +00:00
jlam
7089c11f47 Use bdb.buildlink3.mk to get the DB library to use for the "hash" map
type.  All platforms now support the "hash" map type as a result.
Remove the explicit dependencies on db4 and db2 on non-Linux and Linux,
respectively.  Bump the PKGREVISION.
2004-11-30 20:54:38 +00:00
xtraeme
e051604bd5 Remove -g from compilation flags. 2004-11-25 04:02:35 +00:00
xtraeme
f18a762d3f Remove obsolete variables POSTFIX_*, use PKG_OPTIONS.postfix. ok'ed jlam@ 2004-11-17 19:34:31 +00:00
xtraeme
c5b686aff3 Use mk/mysql.buildlink3.mk instead of databases/mysql-client/buildlink3.mk,
so that we'd not force dependance on specific MySQL version, and instead pick
the currently installed mysql*-client (or install the default if there
is no mysql-client package installed yet)

this makes package buildable with arbitrary MySQL version, such as 3.23.x,
4.0.x or 4.1.x
2004-10-29 07:07:44 +00:00
martti
1faa536f93 Updated postfix to 2.1.5
- The code to eliminate the local MTA from an MX address list did
  not handle the case that the local MTA could appear with different
  MX preferences in both inet_interfaces and proxy_interfaces.

- The SMTP server's kiss-of-death message "421 Timeout exceeded"
  wasn't guarded by setjmp().

- The SMTP server didn't update the per-session error counter when
  a client was denied access with smtpd_delay_reject=no.

- The Postfix sendmail command leaked file descriptors when it was
  unable to execute the postdrop mail submission command.

- The bounce daemon sent the wrong type of bounce message when a

- Plus some portability, safety and documentation fixes.
2004-09-23 16:10:07 +00:00
jlam
ca70938428 Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG,
which are the full option names used to set rpath directives for the
linker and the compiler, respectively.  In places were we are invoking
the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is
inserted in case the flag is a word, e.g. -rpath.  The default values
of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the
compiler that you use.  They may be overridden on a ${OPSYS}-specific
basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG,
respectively.  Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
2004-08-27 06:29:06 +00:00
jlam
9d5426ff76 Change the way that legacy USE_* and FOO_USE_* options are converted
into the bsd.options.mk framework.  Instead of appending to
${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS.  This causes
the default options to be the union of PKG_DEFAULT_OPTIONS and any
old USE_* and FOO_USE_* settings.

This fixes PR pkg/26590.
2004-08-22 19:32:51 +00:00
jlam
4ae27a12a1 This patch can only apply cleanly if "inet6" is a build option. Move it
to a file that's applied at post-patch time only if "inet6" is specified.
This fixes building postfix on systems that don't support IPv6.
2004-08-11 06:51:31 +00:00
schmonz
b6c39ecb23 Define RESOLVE_H_NEEDS_NAMESER8_COMPAT_H for Mac OS X, and include
<nameser8_compat.h> before <resolv.h> if it's defined.

Along with Johnny's recent buildlink3 fixes, this fixes the build
for me on Mac OS X Server 10.3.4. Should address pkg/26584.
2004-08-10 16:49:47 +00:00
jlam
c89b170168 Document the "tls" option. 2004-08-07 17:05:00 +00:00
jlam
16d9d09251 whitespace nit. 2004-08-07 17:02:57 +00:00
jlam
5c7aad1d9f Support building STARTTLS support into Postfix without IPv6. 2004-08-07 16:56:53 +00:00
jlam
0c0e5e112b Reduce the number of patches needed by Postfix by using the subst
framework and also by explicitly specifying more default values for
Postfix parameters.  Also pass -I/usr/pkg/include/sasl to the compiler
when building using Cyrus SASLv2, which allows me to remove the patches
that added an unnecessary USE_SASL2_AUTH check.
2004-08-07 07:58:32 +00:00
jlam
b32800e3ff Rename Makefile.options to options.mk in the packages that I maintain.
This follows the example of the mail/dovecot package, as suggested by
<schmonz>.
2004-08-05 03:04:33 +00:00
jlam
9d4e8059bc Use the TLS+IPv6 patch that corresponds to Postfix-2.1.4. 2004-08-04 20:49:43 +00:00
jlam
4300b19448 Sort. 2004-07-31 05:39:17 +00:00
jlam
440f54314c Remove unnecessary line in DESCR... IPv6 is a well-received patch in the
Postfix community nowadays.
2004-07-31 05:23:59 +00:00
jlam
12c86522bd Replace a few instances of ${PKGBASE} with "postfix". This has no effect
in this package, but simplifies maintaining the postfix-current package by
minimizing diffs between the two.
2004-07-31 05:22:16 +00:00
jlam
07f3723f78 Remove trailing whitespace. 2004-07-31 05:07:19 +00:00
jlam
c3bb963235 PostgreSQL table support is a standard (if compiled) feature of Postfix.
A patch is no longer need to add the support.
2004-07-30 21:44:43 +00:00
jlam
db6a4b68f3 VERP support is a standard feature in Postfix. 2004-07-30 21:38:07 +00:00
jlam
b460ce1ab5 Convert to use bsd.options.mk. The relevant options variable to set
for each package can be determined by invoking:

	make show-var VARNAME=PKG_OPTIONS_VAR

The old options are still supported unless the variable named in
PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
2004-07-30 21:05:41 +00:00
martti
4ee1ab216f Updated postfix to 2.1.4
* Bug fixes
2004-07-29 10:15:38 +00:00
recht
8dc45652d4 Use the new mk/pgsql.buildlink3.mk to select the correct PostgreSQL
version.
2004-07-24 22:45:14 +00:00
jlam
cf58a9142c Missing mailer.conf from PLIST. 2004-07-23 23:39:00 +00:00
jlam
f655335e50 Add POSTFIX_OPTIONS to the +BUILD_INFO file. 2004-07-23 15:00:29 +00:00
schmonz
4622234cb7 Add CONFLICTS with the upcoming mail/fastforward update. 2004-07-21 23:30:16 +00:00
jlam
34aeba7d09 Teach the MESSAGE files about DOCDIR. 2004-07-19 22:10:52 +00:00
jlam
f47062b79e Install more of the example configuration files into installed examples
directory.  Back out modification to postfix-install that was ignoring our
setting for config_directory.
2004-07-19 22:04:40 +00:00
jlam
956fcc1fb4 Fix the install message to note that "upgrade-configuration" is all that
you need.
2004-07-19 22:03:13 +00:00
jlam
0572483cd9 Don't hardcode directories... instead, use postconf to dig them out of the
postfix configuration.  Also make required_{dirs,files} work in the
installed rc.d script.
2004-07-19 22:02:15 +00:00
jlam
35fae82b17 If neither USE_SASL or USE_SASL2 are defined and POSTFIX_OPTIONS includes
"sasl", then use SASLv2 by default.
2004-07-19 20:34:50 +00:00
jlam
44703d4594 Stop the proliferation of <PKG>_USE_<FOO> yes/no variables in the
mail/postfix package -- create a new option "POSTFIX_OPTIONS" that is a
list of optional add-ons that will be built into Postfix.  Currently,
it accepts any of "inet6 ldap mysql mysql4 prce sasl tls".  Move the
existing POSTFIX_USE_* variables into bsd.pkg.obsolete.mk.

Also split out the optional add-ons into a separate Makefile.options
so that the main Makefile workflow is a bit easier to understand.

Lastly, collapse the pre-install target into the do-install target we run
custom code for the whole install process anyway.

Approved by martti.
2004-07-19 19:59:16 +00:00
jlam
f00a3a98df The sample-*.cf files aren't installed, so refer the user to the
SASL_README file for more info.
2004-07-19 05:28:07 +00:00
jlam
5ff84b195b Rename POSTFIX_SPOOL to POSTFIX_QUEUE_DIR to more closely match the
Postfix terminology.
2004-07-19 04:51:52 +00:00
jlam
1683eac382 Compute the value of spooletcdir at run-time rather than hardcoding it. 2004-07-19 04:51:07 +00:00
jlam
fb55cfbc3c Don't blindly run the post-install script; instead, tell the user to do
so in the MESSAGE file.  This makes upgrading existing Postfix
installations less annoying.
2004-07-19 03:25:11 +00:00
jlam
2bbbb174c9 Make the messages for using both SASL and TLS more helpful. 2004-07-19 02:48:42 +00:00
jlam
24c8be8261 The sample-*.cf files are no longer installed as of Postfix 2.1. 2004-07-19 02:46:30 +00:00
jlam
434eb20f68 Rename SHAREDIR to EXAMPLEDIR to more accurately reflect the contents and
location of that directory.
2004-07-19 02:33:31 +00:00
jlam
338b9a9d3b /var/spool/postfix is stored in the Makefile variable POSTFIX_SPOOL. Be
pedantic and substitute for it so that if we ever have a way to change it,
postfix.sh will still be correct.
2004-07-18 23:42:48 +00:00
jlam
dcfd518826 Use FILES_SUBST_SED instead of local make targets to do the same thing.
FILES_SUBST_SED substitutes for @FOO@, so use that format for things to
be replaced.
2004-07-18 19:16:31 +00:00
martti
35c2f1a294 New IPv6 patch
* Bugfix: Misplaced myfree() caused a small memory leak.

* Removed the colon (:) from the characters XFORWARD replaces by
  a question mark (IPv6 addresses looked like 2001?610?1108?5010?1
  in logging).
2004-06-22 05:12:43 +00:00
martti
2a33bd4fd6 Updated postfix to 2.1.3
This is the new 2.1.x series, please see www.postfix.org for
complete list of changes since 2.0.20.
2004-06-21 16:13:23 +00:00
grant
70f0a8dfb5 correct checksum for postfix-pg.postfix-2.0.0.2.patch 2004-06-06 01:12:52 +00:00
martti
9c41ec80a9 Use the latest IPv6 patch 2004-05-21 08:10:41 +00:00
martti
74500b5861 Updated postfix to 2.0.20
- The postdrop mail submission command could die with SIGHUP and
  abort mail submission.  This was observed with mail from cron jobs.

- The MySQL client aborted with complaints about multiple attempts
  to register the same lookup table. This was observed in the proxymap
  daemon.

- As a workaround for agressive SMTP command pipelining clients,
  the Postfix SMTP server now allows SMTP clients to overshoot the
  SMTP server recipient limit without triggering the server hard
  error limit, as long as the number of excess recipients stays within
  a hard-coded overshoot limit of 1000. If you have such clients then
  you also need to specify "smtpd_error_sleep_time = 0" or else
  performance will be poor.

- The LMTP client attempted to reuse a connection after timeout,
  causing protocol synchronization errors.

- The trivial-rewrite server could core dump after temporary table
  lookup failure.  This was not observed in Postfix 2.0.
2004-05-05 06:55:28 +00:00
minskim
7964bdeff3 statvfs fix for postfix and postfix-current on NetBSD-current>=2.0D.
Patch provided by John R. Shannon in PR pkg/25430.
2004-05-04 19:59:06 +00:00
cube
e1aaa019a4 Drop localized *_USE_LDAP definitions and consistently use USE_OPENLDAP
instead.  As announced on tech-pkg.

Most notably affected are Postfix, sendmail, Samba and cyrus-saslauthd.  Be
sure to update your mk.conf accordingly.
2004-04-21 21:09:31 +00:00
grant
794f88655c indent a couple of blocks, minor whitespace tweak 2004-04-14 17:51:37 +00:00
minskim
313577df89 Remove hardcoded "-ldb" from makedefs, because pkgsrc provides a
correct option.

This fixes PR pkg/25176.
2004-04-14 12:55:20 +00:00
minskim
9b499361bc Correct variable names for BUILDLINK_PREFIX.db*; BUILDLINK_PREFIX.db
is only valid with buildlink2, but not with buildlink3.

This fixes PR pkg/25175.
2004-04-14 04:28:38 +00:00
martti
59b96beb0e db4 is needed in Linux when POSTFIX_USE_LDAP=YES (pkg/25120 by Jukka Salmi) 2004-04-13 06:29:43 +00:00
kim
74cabb143e Make this compile on 2.x as well (as NETBSD1). 2004-04-11 02:23:46 +00:00
martti
68cf6ad80b New IPv6 patch 2004-03-25 12:58:37 +00:00
martti
1999228d2f New IPv6 patch. 2004-03-17 19:29:29 +00:00