summaryrefslogtreecommitdiff
path: root/mail/postfix/patches
AgeCommit message (Collapse)AuthorFilesLines
2004-09-23Updated postfix to 2.1.5martti1-8/+4
- 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-08-11This patch can only apply cleanly if "inet6" is a build option. Move itjlam1-14/+0
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-10Define RESOLVE_H_NEEDS_NAMESER8_COMPAT_H for Mac OS X, and includeschmonz3-4/+34
<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-07Reduce the number of patches needed by Postfix by using the substjlam5-158/+0
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-07-19Install more of the example configuration files into installed examplesjlam1-13/+5
directory. Back out modification to postfix-install that was ignoring our setting for config_directory.
2004-07-18Use FILES_SUBST_SED instead of local make targets to do the same thing.jlam2-12/+12
FILES_SUBST_SED substitutes for @FOO@, so use that format for things to be replaced.
2004-06-21Updated postfix to 2.1.3martti10-171/+35
This is the new 2.1.x series, please see www.postfix.org for complete list of changes since 2.0.20.
2004-05-04statvfs fix for postfix and postfix-current on NetBSD-current>=2.0D.minskim1-0/+18
Patch provided by John R. Shannon in PR pkg/25430.
2004-04-14Remove hardcoded "-ldb" from makedefs, because pkgsrc provides aminskim1-5/+13
correct option. This fixes PR pkg/25176.
2004-04-11Make this compile on 2.x as well (as NETBSD1).kim1-3/+12
2004-03-05don't patch the same file twice, don't patch multiple files in agrant6-79/+115
single patch.
2004-01-23Make this work on Linux.martti1-0/+27
2004-01-21Updated postfix to 2.0.17martti3-57/+25
- 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-20Apply the SASL2 cure to smtp and lmtp to. This makes outgoing authenticatedmartin2-0/+46
mail work.
2003-10-03enable use of sasl2christos1-0/+23
2003-05-01- Move all "share" files to share/examples/postfix; all of them are usedjmmv2-7/+21
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-04-17Updated postfix to 2.0.8martti3-22/+22
- 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-03-20- upgrade to 2.0.7christos1-27/+27
- add kim's recipient canonicalization patch. NOTE: TLS was disabled and is still disabled in this version.
2003-03-20Add kim's recipient canocalization patchchristos1-0/+106
2003-02-21Updated postfix to 2.0.4martti1-4/+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-01Remove 0-byte patch file.schmonz1-0/+0
2003-01-31+ Use PKG_SYSCONFDIR (/usr/pkg/etc/postfix) instead of /etc/postfix forlukem2-23/+2
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-25Updated postfix to 2.0.3martti1-4/+4
- 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-15Updated postfix to 2.0.2martti3-21/+8
- 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-06Updated postfix to 2.0.0.2martti6-118/+34
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.
2002-07-17parse T_AAAA responses. patch sent to wietse.itojun1-0/+31
2002-06-27accept emails with domains with AAAA only.itojun1-0/+40
the patch was sent to wietse already.
2002-05-14Updated postfix to 1.1.9martti1-7/+1
* 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-03-27Use maildrop as the default gid. PR#16034martti1-3/+12
2002-03-27Updated postfix to 1.1.6martti1-6/+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-16* Install main.cf and master.cf to /etc/postfix if they don't existmartti2-0/+39
* Fixed some hardcoded paths (should fix pkg/13987)
2002-03-13Updated postfix to 1.1.5martti1-6/+6
- With patch 04, automatic change detection of DBM files was slightly broken (incremental updates would no longer be detected). The fix is to use separate file handles for locking and for change detection. - The trivial-rewrite server could dereference a dangling pointer after stripping a source route (@domain,domain:) from an address while append_at_myorigin=no. Although this setting is unsupported, Postfix should not SIGSEGV anyway. - The SMTP server replied with 552 (too much mail) when rejecting mail content. The SMTP standard defines no reply code for this situation, but one could argue that 550 is more appropriate. And so it shall be.
2002-03-06Updated postfix to 1.1.4martti4-256/+86
Major changes with release-20010228 =================================== Postfix produces DSN formatted bounced/delayed mail notifications. The human-readable text still exists, so that users will not have to be unnecessarily confused by all the ugliness of RFC 1894. Full DSN support will be later. This release introduces full content filtering through an external process. This involves an incompatible change in queue file format. Mail is delivered to content filtering software via an existing mail delivery agent, and is re-injected into Postfix via an existing mail submission agent. See examples in the FILTER_README file. Depending on how the filter is implemented, you can expect to lose a factor of 2 to 4 in delivery performance of SMTP transit mail, more if the content filtering software needs lots of CPU or memory. Specify "body_checks = regexp:/etc/postfix/body_checks" for a quick and dirty emergency content filter that looks at non-header lines one line at a time (including MIME headers inside the message body). Details in conf/sample-filter.cf. The header_checks and body_checks features can be used to strip out unwanted data. Specify IGNORE on the right-hand side and the data will disappear from the mail. Support for SASL (RFC 2554) authentication in the SMTP server and in the SMTP and LMTP clients. See the SASL_README file for more details. This file still needs better examples. Postfix now ships with an LMTP delivery agent that can deliver over local/remote TCP sockets and over local UNIX-domain sockets. The LMTP_README file gives example, but still needs to be revised. Fast "ETRN" and "sendmail -qR". Postfix maintains per-destination logfiles with information about what mail is queued for selected destinations. See the file ETRN_README for details. The mailbox locking style is now fully configurable at runtime. The new configuration parameter is called "mailbox_delivery_lock". Depending on the operating system type, mailboxes can be locked with one or more of "flock", "fcntl" or "dotlock". The command "postconf -l" shows the available locking styles. The default mailbox locking style is system dependent. This change affects all mailbox and all "/file/name" deliveries by the Postfix local delivery agent.
2001-06-07upgrade to postfix-20010228-pl03.itojun1-26/+30
changes since pl02: 20010501 Bugfix: The SMTP server's 550 in reply to DATA should be a 554 response. And it wasn't Sendmail. Claus Assman. Bugfix: the INSTALL.sh test for non-interactive upgrade broke rooted installations that specify settings via the environment. Simon Mudd. Bugfix: mailq output is now really flushed one message at a time. File: sendmail/sendmail.c. 20010507 Bugfix: with soft_bounce=yes, the SMTP server would log 5xx replies even though it would send 4xx replies to the client (Phil Howard, ipal.net). File: smtpd/smtpd_check.c. 20010523 Bugfix: postsuper's temporary file detection logic needed fixing. Bugfix: memory leak in the LDAP client module. Alain Thivillon, France Teaser - Groupe Firstream. 20010525 Bugfix: the SMTP and LMTP clients claimed that a queue file needed to be delivered again (even when all recipients were erased from the queue file) when no QUIT or RSET reply was received (by default, this does not happen with SMTP mail because the SMTP client does not wait for QUIT replies and does not send RSET to deliver mail). As a result of the same bug the LMTP client followed a dangling pointer when sending QUIT after process idle timeout while the LMTP server had disconnected. Files: smtp/smtp_proto.c, lmtp/lmtp_proto.c.
2001-05-03use postfix 20010228-pl02 from wietse.itojun1-11/+28
20010403 Workaround: the mysql library can return null pointers rather than zero-length strings. 20010404 Ergonomics: log additional information about the reason why "mail for XXX loops back to myself", when the local machine is the best MX host. File: smtp/smtp_addr.c. 20010406 Changed some noisy LDAP client warnings into optional logging. LaMont Jones, util/dict_ldap.c. 20010411 Bugfix: the SMTP server now replies with 550 instead of 503 when it receives the DATA command without having received a valid recipient address. This is needed for the Sendmail client-side pipelining implementation. Problem reported by Lutz Jaenicke. File: smtpd/smtpd.c. Cleanup: shut up if chattr fails on Reiserfs and other file systems that do not support the respective attributes. Files: conf/postfix-script-{no,}sgid. 20010413 Ergonomics: Postfix applications now warn when a DB or DBM file is out of date, and recommend to rebuild the table. Files: util/dict_db.c, util/dict_dbm.c. 20010414 Bugfix: with a non-default inet_interfaces setting, the master ignored host information in master.cf host:port settings. Fix by Jun-ichiro itojun Hagino @ iijlab.net. Files: master/master.h, master/master_ent.c. 20010426 Bugfix: the SMTP server did not parse invalid MAIL FROM or RCPT TO addresses such as <first last <user@domain>> the way it was supposed to do. I thought this was taken care of years ago. File: smtpd/smtpd.c. 20010427 Bugfix: smtpd would reject mail instead of replying with a 4xx temporary error code when, for example, an LDAP or mysql server was unavailable. Remotely based on a fix by Robert Kiessling @ de.easynet.net. File: smtpd/smtpd_check.c.
2001-04-02upgrade to 20010228-pl01.itojun1-23/+0
20010313 Bugfix: the RFC 822 untokenizer quoted newlines inside comments. File: global/tok822_parse.c. 20010316 Cleanup: removed an extraneous warning when a queue file write error happened. 20010321 Workaround: LMTP connection caching never worked for destinations starting with unix: or inet:. File: lmtp/lmtp_connect.c. 20010322 Portability: Solaris <2.6 does not have srandom() and random() in libc. File: util/rand_sleep.c. It does not have to be cryptographically strong. Bugfix: the fast ETRN flush server could not handle [ipaddr] or domain names with one-character hostname part. This fix changes the destination to logfile name mapping, so that you need to populate the new files with "sendmail -q". The old files go away automatically. File: flush/flush.c. 20010327 Speed up mailq (sendmail -bp) display by flushing output after each file. File: showq/showq.c. Portability: missing string.h includes, %p wants (void *), Lamont Jones, HP. 20010328 Bugfix: swapped logic caused cleanup to stall when the queue file size exceeded the file size limit by less than one the VSTREAM buffer size, so that the "file too big" was detected after flushing the last queue file record. File: cleanup/cleanup.c. 20010329 Portability: workaround for missing prototype problem in dict_ldap.c. This module should move to the global directory, because it depends on Postfix main.cf parameter information.
2001-03-20resurrect, after nuking the right files in the wrong dir.hubertf3-0/+319
2001-03-20replaced by postfix pkghubertf3-319/+0
2001-03-20Move files from postfix-current to postfix, as that's actually thehubertf44-906/+272
latest release (it's also in the base src). Adresses PR 12426 by Martti Kuparinen <martti.kuparinen@iki.fi>
2000-12-10upgrade to patchlevel 12.itojun1-3/+3
patchlevel 11 -> 12 While processing massive amounts of one-recipient mail, the Postfix queue manager could deadlock for 10 seconds while sending a bounce message. In order to remedy this, all queue manager bounce send requests are now executed asynchronously. This problem was reported by El Bunzo (webpower.nl) and by Tiger Technologies (tigertech.com).
2000-04-27Add optional support for Perl Compatible Regular Expressions (POSTFIX_PCRE)kim23-115/+115
and Variable Envelope Return Paths (POSTFIX_VERP). Handle MANINSTALL using separate PLIST.{catinstall,maninstall} files. Record the setting of all 3.
2000-04-10Some more changes besides the update to which Simon beat me:bad8-37/+50
Create the /var/spool/postfix on install so that "postfix check" can create the directories below it. Create /etc/postfix/postfix-scrip on "make install". Make the library Makefiles DTRT on systems that don't understand MKXXX=no. Remover owner write permission from "maildrop" binary. Adjust offsets in a couple of patches.
2000-04-09Update Postfix to 19991231-pl06.simonb6-62/+33
Addresses PR pkg/9844 from Oleg Polyanski.
2000-01-16Avoid misaligned loads on alpha in util/inet_addr_local.c: copy *ifr insommerfeld1-0/+22
such a way that gcc doesn't make unwarranted assumptions about the alignment of *ifr. Simply casting to (char *) wasn't sufficient.
1999-11-18Re-do patch-bk to remove fuzz.agc1-4/+4
1999-09-14Oops, forgot about error's manpage.simonb1-3/+3
1999-09-14Add "error" transport program - fixes PR pkg/8403 from Andreas Wrede.simonb2-3/+20
Also sort PLIST and add the man manpages (only the cat pages were there).
1999-09-12Update to postfix 19990906-pl02. From the release notes:simonb4-45/+37
Incompatible changes with postfix-19990906 ========================================== - On systems that use user.lock files to protect system mailboxes against simultaneous updates, Postfix now uses /file/name.lock files while delivering to files specified in aliases/forward/include files. This is a no-op when the recipient lacks directory write permission. - The LDAP client code no longer looks up a name containing "*" because it could be abused. See the LDAP_README file for how to restore previous behavior. - The Postfix to PCRE interface now expects PCRE version 2.08. Postfix is no longer compatible with PCRE versions prior to 2.06. Major changes with postfix-19990906 =================================== Several bugfixes, none related to security. See the HISTORY file for a complete list of changes. - Postfix is now distributed under IBM Public License Version 1.0 which does not carry the controversial termination clause. The new license does have a requirement that contributors make source code available. - INSTALL.sh install/upgrade procedure that replaces existing programs and shell scripts instead of overwriting them, and that leaves existing queue files and configuration files alone. - The ugly Delivered-To: header can now be turned off selectively. The default setting is: "prepend_delivered_header = command, file, forward". Turning off the Delivered-To: header when forwarding mail is not recommended. - mysql client support by Scott Cotton and Joshua Marcus, Internet Consultants Group, Inc. See the file MYSQL_README for instructions. - reject_unauth_destination SMTP recipient restriction that rejects destinations not in $relay_domains. Unlike the check_relay_domains restriction, reject_unauth_destination ignores the client hostname. By Lamont Jones of Hewlett-Packard. - reject_unauth_pipelining SMTP *anything* restriction to stop mail from spammers that improperly use SMTP command pipelining to speed up their deliveries. - Postfix "sendmail" now issues a warning and drops privileges if installed set-uid root. - No more duplicate delivery when "postfix reload" is immediately followed by "sendmail -q". - No more "invalid argument" errors when a Postfix daemon opens a DB/DBM file while some other process is changing the file. - Portability to the Mac OS X Server, Reliant Unix, AIX 3.2.5 and Ultrix 4.3.
1999-08-26actually make POSTFIX_NOSETGID work.mrg2-15/+14
1999-08-18Make this build (and work!) on LP64 systems.thorpej6-0/+131
I know I sent these to Weitse the first time I built on an Alpha, but they apparently never made it into the distribution. Oh well.