Commit graph

88 commits

Author SHA1 Message Date
taca
4563015770 Add patch to fix closefrom() problem on FreeBSD. 2010-04-16 15:32:58 +00:00
martti
44c7f4afef Updated mail/postfix to 2.7.0
Postfix stable release 2.7.0 is available. For the past several
releases, the focus has moved towards improving the code and
documentation, and updating the system for changing environments.

- Improved before-queue content filter performance. With
  "smtpd_proxy_options = speed_adjust", the Postfix SMTP server
  receives the entire message before it connects to a before-queue
  content filter. Typically, this allows Postfix to handle the same
  mail load with fewer content filter processes.

- Improved address verification performance. The verify database
  is now persistent by default, and it is automatically cleaned
  periodically, Under overload conditions, the Postfix SMTP server
  no longer waits up to 6 seconds for an address probe to complete.

- Support for reputation management based on the local SMTP client
  IP address. This is typically implemented with "FILTER transportname:"
  actions in access maps or header/body checks, and mail delivery
  transports in master.cf with unique smtp_bind_address values.

- The postscreen daemon (a zombie-blocker in front of Postfix) is
  still too rough for a stable release, and will be made "mature"
  in the Postfix 2.8 development cycle (however you can use Postfix
  2.7 with the Postfix 2.8 postscreen and dnsblog executables and
  master.cf configuration; this code has already proven itself).

No functionality has been removed, but it is a good idea to review
the RELEASE_NOTES file for the usual minor incompatibilities or
limitations.

You can find Postfix version 2.7.0 at the mirrors listed at
http://www.postfix.org/

The same code is also available as Postfix snapshot 2.8-20100213.
Updated versions of Postfix version 2.6, 2.5 and perhaps earlier
will be released with the same fixes that were already included
with Postfix versions 2.7 and 2.8.
2010-02-25 13:01:22 +00:00
martti
1c34d90772 Updated mail/postfix to 2.6.0
- Multi-instance support introduces a new postmulti(1) command to
  create/add/remove/etc. additional Postfix instances. The familiar
  "postfix start" etc.  commands now automatically start multiple
  Postfix instances.  The good news: nothing changes when you use
  only one Postfix instance. See MULTI_INSTANCE_README for details.

- Multi-instance support required that some files be moved from
  the non-shared $config_directory to the shared $daemon_directory.
  The affected files are postfix-script, postfix-files and post-install.

- TLS (SSL) support was updated for elliptic curve encryption. This
  requires OpenSSL version 0.9.9 or later. The SMTP client no longer
  uses the SSLv2 protocol by default. See TLS_README for details.

- The Milter client now supports all Sendmail 8.14 Milter requests,
  including requests for rejected recipient addresses, and requests
  to replace the envelope sender address. See MILTER_README for
  details.

- Postfix no longer adds (Resent-) From:, Date:, Message-ID: or To:
  headers to email messages with "remote" origins (these are origins
  that don't match $local_header_rewrite_clients). Adding such
  headers breaks DKIM signatures that explicitly cover non-present
  headers.  For compatibility with existing logfile processing
  software, Postfix will log ``message-id=<>'' for email messages
  that have no Message-Id header.

- Stress-adaptive behavior is now enabled by default. This allows
  the Postfix SMTP server to temporarily reduce time limits and
  error-count limits under conditions of overload, such as a malware
  attack or backscatter flood. See STRESS_README for details.

No functionality has been removed, but it is a good idea to review
the RELEASE_NOTES file for the usual minor incompatibilities or
limitations.
2009-05-13 10:33:23 +00:00
taca
a8051eb291 Make it build on NetBSD current (and NetBSD 5.x). 2008-11-03 00:47:17 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
kim
74cabb143e Make this compile on 2.x as well (as NETBSD1). 2004-04-11 02:23:46 +00:00
grant
f57aa1008b don't patch the same file twice, don't patch multiple files in a
single patch.
2004-03-05 22:59:32 +00:00
martti
2acac9de34 Make this work on Linux. 2004-01-23 12:03:44 +00:00
martti
4bc98c82df Updated postfix to 2.0.17
- Portability to MacOSX: Bind8 compatibility, core dumps in mailq
  and postdrop, and changes in netinfo support.

- Elimination of some DNS lookup problems in third-party library
  routines (typically resulting in localhost not being found).

- More agressive delivery to sites that defer a lot of mail.

- Correction of a few obscure error messages.

- Several small documentation fixes.

- Minor fixes for robustness problems that no-one has experienced.
2004-01-21 06:56:48 +00:00
martin
b5f4678b8a Apply the SASL2 cure to smtp and lmtp to. This makes outgoing authenticated
mail work.
2004-01-20 19:37:45 +00:00
christos
ee4ca78e56 enable use of sasl2 2003-10-03 15:04:52 +00:00
jmmv
83877c7a60 - Move all "share" files to share/examples/postfix; all of them are used
as samples, either by the user or by bsd.pkg.install.mk.
- Correctly handle configuration files, that is, avoid touching the conf
  directory directly.
- Use OWN_DIRS to handle the spool directory.
- Run post-install through an INSTALL script.
- Sort PLIST after all these changes.
- Bump PKGREVISION to 1.
2003-05-01 14:07:56 +00:00
martti
7678c0b026 Updated postfix to 2.0.8
- Postfix processes now abort when given a net/mask pattern with
  a non-zero host portion (for example, 168.100.189.2/28), instead
  of risking to become an open mail relay.

- Workaround for file system clock drift that caused Postfix to
  ignore new mail (this could happen with queue file systems mounted
  from a server).
2003-04-17 06:22:18 +00:00
christos
68bc79e152 - upgrade to 2.0.7
- add kim's recipient canonicalization patch.
NOTE: TLS was disabled and is still disabled in this version.
2003-03-20 22:23:21 +00:00