qmtpd-badmailfrom-1.1.patch

Taken from https://github.com/bruceg/qmail-patches/blob/master/qmtpd-badmailfrom-1.1.patch

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
qmail-badmailfrom-wildcard patch

If badmailfrom contains ".example.com" then reject mail from
"anything@any.thing.example.com"

Original patch:
  http://tomclegg.net/qmail/qmail-badmailfrom-wildcard.patch

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
ext_todo-20020524

EXTTODO by Claudio Jeker <jeker@n-r-g.com> and
Andre Oppermann <opi@nrg4u.com>
(c) 1998,1999,2000,2001,2002 Internet Business Solutions Ltd.

The EXTTODO patch is a part of the qmail-ldap patch.
This patches for qmail come with NO WARRANTY.

These patches are under the BSD license.

RELEASE: current ($Date: 2002/04/22 10:03:16 $)

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
ext_todo-20020524-add-big-todo

This patch makes the ext_todo patch work with Russell Nelson's
big-todo patch. Apply big-todo, then ext_todo, then this patch.

Please report any comments or bugs in this patch to
Andreas Aardal Hanssen <andreas@hanssen.name> (protected by tmda).

Updated 2002-07-12 17:17:00 CET: Removed last section in patch,
  which caused message sizes to not get calculated.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Fix big-todo

======================================================================
Note to readers: After you apply this patch, your queue will no longer
be readable in its current state.  So, either install this into
/var/qmail2 and run both qmails until the queue is emptied on the old
one, or else accept that your current queue will have to be destroyed
and ``rm -rf /var/qmail/queue; make setup''.

From: Bruce Guenter <bruceg@em.ca>
To: Russell Nelson <nelson@crynwr.com>
Subject: Missing piece of your big-todo patch
Date: Tue, 3 Aug 1999 08:12:11 -0600

Greetings.

While testing the performance of a big todo directory, I observed that
qmail-qstat miscounted the number of messages in the todo directory.
I've appended the necessary patch to yours.
--
Bruce Guenter <bruceg@em.ca>                       http://em.ca/~bruceg/
======================================================================

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
qmail-1.03-install-path-big-todo

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
qmail-1.03-autouidgid

Bruce Guenter has a patch which causes qmail programs to get their userids,
not compiled in via auto_uids.c, but instead by looking at files in
/var/qmail/owners.

Source: http://untroubled.org/qmail+patches/sources/qmail-1.03-autouidgid.patch
See http://untroubled.org/qmail/ for more information.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
syncdir fix for qmail

Bruce Guenter's syncdir gives qmail bsd fsync semantics on a Linux filesystem.
More details can be read at http://untroubled.org/syncdir/
Source syncdir.c is needed and already in this modified patch.
See http://untroubled.org/qmail/ for more information.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
qmail-pop3d fix

See http://www.gossamer-threads.com/lists/qmail/users/18668 for more
information.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
qmail-queue patch to look for environment variable QMAILQUEUE

Bruce Guenter has written a patch which causes any program that would run
qmail-queue to look for an environment variable QMAILQUEUE. If it is present,
it is used in place of the string "bin/qmail-queue" when running qmail-queue.
This could be used, for example, to add a program into the
qmail-smtpd->qmail-queue pipeline that could do filtering, rewrite broken
headers, etc.
See http://untroubled.org/qmail/ for more information.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
big-concurrency patch

See http://qmail.org/big-concurrency.patch for more information.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
DomainKeys support aka qmail-dk

Russ Nelson wrote qmail-dk, which is a qmail-queue replacement that signs and
verifies DomainKeys signatures. Building on Gentoo.

http://qmail.org/qmail-1.03-dk-0.54.patch

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Make qmail-dk to work with clients that auth.

A simple patch to Russell Nelson's qmail-dk that makes it easier to
work with clients that auth.

qmail-dk-0.54-auth.patch - 2006050201

This patch is from Jeremy Kister at http://jeremy.kister.net/

http://jeremy.kister.net/code/qmail-dk-0.54-auth.patch

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Add qmail-tap mail archiving support

See http://www.inter7.com/?page=qmailtap

This patch is modified so that it can be apply cleanly on top of other
patches.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Add Tarpitting with qmail-smtpd

See http://www.palomine.net/qmail/tarpit.html

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Allow DNS in qmail to safely receive responses to DNS queries exceeding 512 bytes

Christopher K. Davis has a patch to accept oversize DNS packets which works
on both qmail's dns.c and tcpserver's dns.c. If you don't want to patch qmail,
you can ameliorate the problem somewhat using djbdns, which returns only the
records you ask for, making for a smaller ANSWER section.
Original: http://www.ckdhr.com/ckd/qmail-103.patch

More information http://thedjbway.b0llix.net/qmail/patches.html

This patch is by Christopher K. Davis.  It is commonly referred to in other
qmail "howto" instructions around the 'net, and incorporated with qmail port
builds on some platforms.

It patches the dns.c file in qmail, allowing it to safely receive responses to
DNS queries exceeding 512 bytes.

Of course, this patch is necessary only if using a DNS resolver such as
(ahem) BIND.

Otherwise this patch is never needed for qmail servers built "the djb way",
with DNS services provided by the dnscache resolver from the djbdns package.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Generate date stamps in the local timezone instead of GMT

From qmail.org:

John Saunders has a patch to date822fmt.c which causes it to emit dates in the
local timezone.

http://www.jms1.net/qmail/qmail-date-localtime.patch

However, if you see the patch above you will noticed he is not the original
author.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Increase memory buffer from 256 to 8k

Read at http://www.mail-archive.com/qmail@id.wustl.edu/msg20935.html
This patch increases the size of the memory buffer that qmail uses when
querying the system for a list of all local IP addresses. This mailing list
message describes the problem and includes the patch file.

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Fix qmail-remote to handle multiple MX records correctly as in rfc2821

This patch fixes a problem with how qmail handles deliveries to domains which
have multiple MX records. Normally qmail tries to connect to the various MX
servers, but the first server it successfully connects to ends up being the
only one it ever tries.

I've modified the patch so that both 4xx and 5xx messages result in the next
MX record being tried.

http://www-dt.e-technik.uni-dortmund.de/~ma/qmail/patch-qmail-1.03-rfc2821.diff

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Remove qmail-remote workaround that Dan Bernstein added on 1996-10-03 to work around a bug in BIND versions earlier than version 4.9.4

You can save yourself a lot of trouble, and you can optimize qmail by trimming
its DNS requests to only the information it really needs.

Jonathan de Boyne Pollard wrote this one-liner.

See http://homepage.ntlworld.com/jonathan.deboynepollard/Softwares/qmail/

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>