Commit graph

326 commits

Author SHA1 Message Date
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
martti
de7ecba364 Updated postfix to 2.0.19
- When mail is submitted at a high rate with the Postfix sendmail
  command, the pickup daemon is keps busy long enough that it it
  terminated by the watchdog timer (a feature that prevents Postfix
  from locking up permanently).

- Malformed addresses in SMTP commands could result in table looks
  with zero-length search strings, causing trouble with NIS lookups.
2004-03-14 07:30:14 +00:00
grant
701f7297b8 add CONFLICT on sendmail, which also installs bin/mailq and
bin/newaliases.
2004-03-07 10:16:05 +00:00
grant
5bab0492f1 install rc.subr-style script on all platforms but NetBSD-1.5 and above
(which already has a suitable /etc/rc.d/postfix).
2004-03-07 10:13:46 +00:00
grant
9229549e40 move BUILD_DEFS outside of their respective conditionals, so the
not defined/value output is shown at the start of the build.
2004-03-06 06:52:43 +00:00
grant
af2e0d711c ressurect external patch checksums lost in last commit. 2004-03-06 06:47:41 +00:00
grant
467251f192 move NetBSD specific MESSAGE to its own file. 2004-03-06 06:28:22 +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
grant
3cc9066938 run postfix's post-install with "command_directory=prefix/sbin"
argument so it can find postconf.

bump PKGREVISION.
2004-03-05 13:54:32 +00:00
martti
5074fe7691 Added optional postgresql support 2004-02-16 09:31:06 +00:00
martti
902e4125ae New IPv6 patch 2004-01-28 16:03:02 +00:00
martti
2acac9de34 Make this work on Linux. 2004-01-23 12:03:44 +00:00
martti
a6224cc309 Updated postfix to 2.0.18
- A change in the line reading routines caused unexpected results
  with lines ending in EOF. This change is undone.

- A portability problem with the test command ("test -e" is not
  supported on older systems, while "test -f" does the job).
2004-01-23 06:25:25 +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
jlam
acdcbd2b1e bl3ify 2004-01-11 07:40:13 +00:00
grant
b601f7801b no need for PLIST_SUBST+=PKG_SYSCONFDIR 2003-12-18 03:37:17 +00:00
jlam
b75487d7a2 Only install smtpd.conf if we're using SASL. Fixes bulk build breakage
from Al's 20031124 results.
2003-11-26 06:03:41 +00:00
jlam
6afd00acfc A few more whitespace nits. 2003-11-21 16:07:13 +00:00
jlam
e06c112bc5 Whitespace fixes and rearrange a few lines to group related stuff together. 2003-11-21 15:54:40 +00:00
jlam
fefb138ad3 * With SASL2, the correct pwcheck_method to use the /etc/sasldb2 is
"auxprop".

* Modify the package so that the smtpd.conf file is initially stored
  with the other example files and copied over to its true location
  via CONF_FILES.  This allows modifying the postfix installation to
  use some other SASL authenticaion method, e.g. PLAIN with saslauthd
  through TLS.

* Only allow using one SASL library or the other, and prefer SASL2 to
  SASL1.
2003-11-21 15:33:41 +00:00
kleink
9b2f09a0b8 Sync with cyrus-sasl2's buildlink2.mk reality. 2003-11-10 16:27:37 +00:00
martti
14aae230e2 Be the MAINTAINER for this package. 2003-11-01 13:34:10 +00:00
christos
ee4ca78e56 enable use of sasl2 2003-10-03 15:04:52 +00:00
martti
b123113b9b Updated postfix to 2.0.16
* bug fixes
* new IPv6 patch
2003-10-02 10:39:12 +00:00
martti
a73841c129 Updated postfix to 2.0.14
* Produce a warning when host:port specifies a badly formatted numerical port.
* New IPv6 patch.
2003-09-01 10:42:32 +00:00
grant
0155927c43 s/netbsd.org/NetBSD.org/ 2003-07-17 21:41:05 +00:00
martti
639b4d1cda Updated postfix to 2.0.13
- After "postfix reload", the master daemon now warns when the
  inet_interfaces parameter setting has changed, and ignores the
  change, instead of passing incorrect information to the smtp
  server.

- After the postdrop command change with Postfix 2.0.11, the postcat
  command no longer recognized "maildrop" queue files as valid.

- Mail could bounce when two messages were delivered simultaneously
  to a non-existent mailbox file. The safe_open() code that prevents
  race condition exploits will now try a little harder when it
  actually encounters a race condition.

- Updated the IPv6 patch.
2003-07-02 16:42:08 +00:00
martti
49e5da662f Updated postfix to 2.0.12
- Stricter smtpd input checks rejected invalid addresses starting with @.

- Stricter postdrop input checks broke "sendmail -bs".

- New "postcat -q" (search the queue for the named file) support
  from snapshot release because I can no longer see people suffer.

- Allow <@site,@site:address> route addresses in SMTP commands.
  This address form was deprecated years ago.

- "sendmail -q<time>" without -bd option now exits immediately,
  instead of waiting for input and screwing up system boot sequences.

- The Postfix LMTP client used the wrong service name, causing
  trouble with SASL 2.1.13.

- Turned off non-blocking write to pipe because too many systems
  gave an unexpected write() result, causing partial delivery of
  messages to commands like procmail.
2003-06-16 08:29:22 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
taca
d9eb5e3fed Remove commented out PKGREVISION line. 2003-05-25 05:33:55 +00:00
taca
3cc4108bdc Update postfix to 2.0.10.
- Ugly but harmless warnings from nqmgr after "postsuper -r" to
  requeue files that already had some recipients delivered.

- The proxy_read_maps parameter did not recognize "," as separator.

- The local delibery agent now defers delivery after .forward etc.
  file read error.

- The message_size_limit was applied when running "newaliases",
  so that the result alias database could be truncated on systems
  with very small message size limits.

The official release changes for bugfixes and portability issues only.
2003-05-25 05:31:09 +00:00
martti
327b109c4a Updated the IPv6 patch. IPv6 support is activated by setting
POSTFIX_USE_INET6=YES in /etc/mk.conf before building this package.
2003-05-21 09:24:00 +00:00
wiz
7166660e08 Dependency bumps, needed because of devel/pth's major bump, and related
dependency bumps.
2003-05-02 11:53:34 +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
14646b69f3 Updated postfix to 2.0.9
- The SMTP client did not deliver a partial last line when someone
  submitted 8BITMIME mail not ending in newline via /usr/sbin/sendmail
  while MIME input processing was turned off, and MIME 8bit->7bit
  conversion was requested upon delivery.
2003-04-21 06:25:50 +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
taca
ebbfaa639c required_files should honor PKG_SYSCONFDIR. 2003-04-06 16:26:01 +00:00
taca
5d5f742c3c Update ipv6+tls patch in comment (and distinfo). 2003-03-21 05:21:23 +00:00
wiz
6f9fdaa0c8 Undo PKGREVISION bump (not necessary since the whole package was updated
to 2.0.7).
2003-03-20 22:47:04 +00:00
christos
3adea874d7 Add PKGREVISION=1 [wiz told me so] 2003-03-20 22:37:07 +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
christos
3acb24b2bf Add kim's recipient canocalization patch 2003-03-20 22:04:47 +00:00
jlam
3ef633718c (1) Publicly export the value of _OPSYS_RPATH_NAME as RPATH_FLAG;
Makefiles simply need to use this value often, for better or for
    worse.

(2) Create a new variable FIX_RPATH that lists variables that should
    be cleansed of -R or -rpath values if ${_USE_RPATH} is "no".  By
    default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and
    additional variables may be appended from package Makefiles.
2003-03-14 19:37:30 +00:00
taca
e95f0c5d8b Update tls+ipv6 patch in comment.
Is it still need commented out?  (Though I can't test completely either...)
2003-03-07 03:08:33 +00:00
martti
f1ed699393 Updated postfix to 2.0.6
Postfix 2.0 patchlevel 6 intends to protect vulnerable Sendmail
systems against exploitation of a remote buffer overflow problem
that is described in CERT advisory CA-2003-07.

- Postfix now truncates non-address information in message address
  headers (comments, etc.) to 250 characters per address. This should
  rarely present a problem.  Reportedly, junk mail from poorly written
  software can trigger the protection, but that is no great loss.

- Some little fixes to documentation.
2003-03-06 06:24:58 +00:00
martti
a01ffa5d4c Updated postfix to 2.0.5
- The SMTP server's hard and soft error limits were off by one.
  With "smtpd_hard_error_limit = 1", Postfix will now disconnect
  after the first error, instead of the second one.

- The proxymap server could deadlock when the mydestination parameter
  setting included a proxymapped lookup table.

- Some little fixes to documentation.
2003-03-04 07:11:41 +00:00
taca
fc106dff90 Use correct tls+ipv6 patch (still in comment). Previous was for different
postfix snapshot.
2003-02-23 13:18:26 +00:00
taca
d45a0972ec Make tls+ipv6 patch up to date. NOT tested at all and still commented out. 2003-02-23 04:31:26 +00:00
martti
b34abed20c Updated postfix to 2.0.4
- The format of maildir filenames is synchronized with the present
  version of the maildir definition document. This format was already
  adopted by the 20030126 snapshot release.

- The time limit on delivery to external commands was not enforced.
  This was broken probably some time before the first public Postfix release.

- Duplicate elimination after virtual alias expansion works again.
  This was broken with the introduction of the original recipient attribute.

- The local pickup daemon dropped incomplete records from local
  submissions. This was broken somewhere in the middle of 2002.
2003-02-21 11:49:55 +00:00
schmonz
42df8deedf Remove 0-byte patch file. 2003-02-01 23:19:46 +00:00
lukem
383904a80b + Use PKG_SYSCONFDIR (/usr/pkg/etc/postfix) instead of /etc/postfix for
configuration.
+ Document how to use /etc/rc.conf.d/postfix on NetBSD 1.5 and newer
  to start /usr/pkg/sbin/postfix instead of /usr/sbin/postfix
+ Ensure that the postfix user and the postfix & maildrop groups exist.

Adds Darwin support, and prevents a working NetBSD postfix setup from being
broken on a "make install" of this package because the package used to
change /etc/postfix/{post-install,postfix-files,postfix-script}.

These changes are mostly from Amitai Schlair <schmonz@netbsd.org>,
with some tweaks by me.  (Thanks Amitai!)
2003-01-31 23:53:04 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
taca
3d8571e919 - Use the latest IPv6+TLS patch (tls+ipv6-1.12-pf-2.0.3), and include it
in distinfo.  (still commented out.)
- Comment out POSTFIX_USE_TLS part in Makefile since the patch is out of
  date now.
2003-01-26 13:20:08 +00:00
martti
75a6046224 Updated postfix to 2.0.3
- Postfix 2.0 broke relocated table lookup results with mail not
  rejected at the SMTP port, causing "User has moved to" text to be deleted.

- A widely used maildir filename generating algorithm was broken.
  This affects all Postfix versions with maildir support. Instead of
  TIME.PID_COUNT.HOST Postfix now uses TIME.DEVICE_INODE.HOST.

- Postfix 2.0 gave incorrect FILTER_README instructions for sites
  that wish to disable virtual alias mapping before the content filter.
2003-01-25 07:22:19 +00:00
martti
e0c4dafe6f Use the latest IPv6+TLS patch (it's still commented-out). 2003-01-23 06:50:21 +00:00
martti
304834e844 Updated postfix to 2.0.2
- Added MAILER-DAEMON to the list of always recognized local
  addresses, since it is generated by Postfix bounces.

- Bugfix: transport_errno was not reset upon successful
  transport map wildcard lookup after an earlier failure.

- Cleanup: unnecessary warnings from the proxymap client
  after proxymap server disconnect.

- Cleanup: Patrik Rak found a few more chattr invocations
  that were missed 20021209. Files: postfix-install,
  conf/post-install.

- Cleanup: the pcre-config command can produce null outputs.

- Bugfix: the virtual(8) Makefile included $(AUXLIBS) in the
  dependencies.

- Bugfix: fixed in the snapshots 20030105 but missed in the
  stable release. "sendmail -bs" tried to access the proxymap
  service.  It should not try to open any user/domain/uce
  related tables at all.
2003-01-15 17:15:04 +00:00
martti
95a87dffd5 Re-organized the IPv6 patch stuff. The IPv6 support is still commented-out
even though it seems to work now.

Why commented-out? This patch also includes a TLS patch and I don't know
if it's better/more stable/whatever compared to the existing TLS patch.

What I'd like to have is a separate patch for IPv6 and TLS. According to
the author this is available in the near future.
2003-01-14 13:05:14 +00:00
martti
e07be818f5 Updated postfix to 2.0.0.2
IMPORTANT: read the documents in /usr/pkg/share/doc/postfix/ before
upgrading from Postfix 1.1.

Hightlights:

- MIME support (including 8bit->7bit conversion and more
  accurate matching of MIME headers in message bodies)
- completely rewritten RBL client code
- smarter handling of DNS lookup errors in UCE restrictions
- virtual delivery agent without transport map for every domain
- a long list of other things that are meant to improve performance
  or functionality without compromising what already existed.
2003-01-06 09:15:49 +00:00
martti
2977a09255 - Added support for LDAP (provided by Ron Roskens in PR#19173, minor path
fixes by me)
- Sorted POSTFIX_USE_xxx options
2002-11-26 07:20:06 +00:00
martti
64d621dd0a Updated postfix to 1.1.12
- The garbage in "user@garbage"@domain address forms may cause the
  SMTP or LMTP client to terminate with a fatal error exit because
  garbage/tcp is not an existing service.  This cannot be abused
  to cause the SMTP or LMTP client to send data into unauthorized
  ports.
2002-11-24 16:37:56 +00:00
wiz
6c16e68949 Convert to buildlink2. 2002-10-25 12:04:07 +00:00
taca
3de0ba1c05 Depends on cyrus-sasl with its version.
(Postfix's document claims it works with cyrus-sasl 1.5.5 at least.)
2002-09-11 15:50:58 +00:00
martti
4afdc0d176 Added support for TLS. To use this, set POSTFIX_USE_TLS=YES
in /etc/mk.conf. To verify the TLS support, type

# /usr/pkg/sbin/postconf | grep tls

Submitted by Dawid Szymanski in pkg/17570.
2002-07-22 10:39:26 +00:00
itojun
45e69da140 parse T_AAAA responses. patch sent to wietse. 2002-07-17 22:34:45 +00:00
hubertf
578ea8aab6 Make fils recognize compile options (POSTFIX_USE_MYSQL, ...)
Fixes PR 17465 by Dawid Szymanski <dawszy@tgr.lubin.edu.pl>
2002-07-03 11:11:12 +00:00
itojun
f9f8952717 accept emails with domains with AAAA only.
the patch was sent to wietse already.
2002-06-27 04:47:54 +00:00
seb
db84442a67 Substitute a couple of mkdir' by ${MKDIR}'.
Remove `-p' from mkdir arguments, it is already part of ${MKDIR}.
While here substitute a couple of ${PREFIX} by `%D' in
`@exec ${MKDIR} ...' lines and add a couple of missing `%D' in such lines too!
2002-06-26 10:29:33 +00:00
tron
c04594fb0b Honor "${CC}" and "${CFLAGS}" during build. This fixes PR pkg/17052
by Mipam.
2002-06-17 19:42:08 +00:00
martti
3c131edb26 Updated postfix to 1.1.11
* Cleanup: Mailbox-Line: message header labels should be X-Mailbox-Line: labels
* The SMTP server now disallows RCPT TO:<"">, just like it disallows RCPT TO:<>
* Replace domain.name by domain.tld in the example config files
* The Postfix sendmail command did not export the MAIL_CONFIG environment
  setting to the postdrop command
2002-06-06 13:48:32 +00:00
martti
4357c2d59a Updated postfix to 1.1.10 (released 2002-05-14)
- Bugfix: the new code for header address quoting sometimes did
  not null terminate strings so that arbitrary garbage could appear
  at the end of message headers.

- Safety: user@domain@domain is no longer accepted by the
  permit_mx_backup UCE restriction (unless Postfix is configured
  with "resolve_dequoted_address = no").
2002-05-15 07:09:23 +00:00
martti
73ac093dba Updated postfix to 1.1.9
* add a MESSAGE file to describe how to activate postfix (pkg/13335)

Changes:
* Close user@domain@postfix-style.virtual.domain source routing relaying
  loophole involving postfix-style virtual domains with @virtual.domain
  catch-all patterns
* mail_addr_map() used the "wrong" @ character in addresses with multiple @.
* For address localpart quoting, now quote @ as a special character
  everywhere, except when resolving addresses. Previously, the @ was nowhere
  quoted as a special character, not even in SMTP commands.
* Don't allow an OK access rule lookup result for
  user@domain@postfix-style.virtual.domain.
* Quote unquoted address localparts that need quoting.
* The SMTP client logged and bounced the CNAME expanded recipient address,
  and thereby complicated trouble shooting.
* The SMTP and LMTP clients bounced the quoted recipient address, resulting
  in too much quoting in bounce reports.
* The LDAP client used the "wrong" @ character in addresses with multiple @.
* Forwards "postqueue -r" compatibility with the additional queue file
  records that are stored by snapshot 20050512.
* Specify "resolve_dequoted_address = no" to prevent Postfix from looking
  inside quotes for extra @ etc. characters when resolving an address.
  This behavior is technically more correct, but it opens a mail relay
  loophole with "user @domain"@domain when relaying mail to a Sendmail system.
2002-05-14 06:57:23 +00:00
martti
03aec83642 Updated postfix to 1.1.8
- Postfix no longer attempts to build with GDBM support
- The Postfix SMTP client forgot to quote whitespace etc. in a
  sender or recipient address when DNS lookup was turned off
- Better error reporting in the postqueue command
2002-05-05 14:46:27 +00:00
martti
3d2834ee0a Updated postfix to 1.1.7
- Violation of the defer_transports setting: the flush server could
  trigger mail delivery (as if ETRN was sent) while doing some internal
  housekeeping of per-destination logfiles.

- Virtual mapping was broken for addresses with embedded whitespace
  in the recipient local part.

- When the super-user runs "mailq" or "postqueue -p" (list mail
  queue) while the mail system is down, the postqueue command runs
  the showq command directly.  However, postqueue did not pass on
  non-default configuration directory settings to the showq command,
  so that showq would report the default mail queue instead.
2002-04-02 09:34:40 +00:00
martti
8f6f9401cb Use maildrop as the default gid. PR#16034 2002-03-27 13:10:18 +00:00
martti
9c7d8f8a77 Updated postfix to 1.1.6
- The new code avoids problems with SMTP servers that will not
  receive mail with lines longer than the 1000 characters that are
  allowed by the SMTP standard.

- The new code is more graceful in the handling of abnormally long
  message headers. It will no longer switch from "message header"
  to "message body" mode in the middle of an abnormally long message
  header line.
2002-03-27 07:17:09 +00:00
deberg
9e7d558594 solaris install can only create one directory at a time 2002-03-24 22:17:22 +00:00
martti
c84a306e21 Added optional support for MySQL. To use this, set POSTFIX_USE_MYSQL=YES
in /etc/mk.conf. To verify the MySQL support, type

# /usr/pkg/sbin/postconf -m
mysql

Submitted by Dawid Szymañski in a private mail.
2002-03-22 09:01:10 +00:00
martti
e3eb9491e5 Fixed path to the postfix's sendmail program. Noted by mipam in
a private mail.
2002-03-19 08:24:01 +00:00
martti
1fee5de5ba * Install main.cf and master.cf to /etc/postfix if they don't exist
* Fixed some hardcoded paths (should fix pkg/13987)
2002-03-16 18:06:39 +00:00