diff options
author | schmonz <schmonz@pkgsrc.org> | 2004-04-10 05:30:06 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2004-04-10 05:30:06 +0000 |
commit | fa7fdb69b2297f2ea46af51e7dc9ff5a134ba52c (patch) | |
tree | a8ef553fd6a3c69535ee6c696866180a84bf812c /mail/qmail/patches/patch-an | |
parent | 00eb9f5e8fcea0df00ff1ca1e955f892fc0bbe37 (diff) | |
download | pkgsrc-fa7fdb69b2297f2ea46af51e7dc9ff5a134ba52c.tar.gz |
Russ Nelson, Charles Cazabon, Dave Sill, Peter Samuel, and Henning
Brauer have prepared a distribution of qmail, called "netqmail":
"We have done this because in our opinion, too many new users
are confused by the out-of-date INSTALL file, and too much time
is spent arguing on the mailing list over bugs. We have tried
to stick to the barest minimum number of changes. We have
fixed only those things which are out-and-out wrong, or which
have been approved by djb (specifically QMAILQUEUE)."
This package already includes the QMAILQUEUE patch. Add netqmail
1.05's other patches, with the exception that patches to documentation
files which are not installed have been lovingly omitted.
This package also already includes a patch to handle oversized DNS
packets. It's still here, too.
pkgsrc changes:
* Add qmail-smtpd rc.d script (and ensuing dependency on net/ucspi-tcp).
* Update qmail rc.d script: respect $qmail_flags, treating it as the
default delivery instruction.
* Remove non-working MASTER_SITES.
From the netqmail changelog:
20040121 code: qmail-smtpd is protected from exceedingly long (eg 2GB)
header lines
20040121 code: qmail_lspawn, qmail-newmrh, qmail-newu, and qmail-rspawn
are protected from misbehaving on hosts where the size of an
integer is not the same as the size of a character pointer
(eg 64 bit hosts with 32 bit ints)
20031027 doc: qmail.7 identifies installation as netqmail and points to
http://qmail.org/
20031027 doc: qmail-queue.8 adds explanation of $QMAILQUEUE
20031027 doc: qmail-log.5 adds reference to errors from $QMAILQUEUE script
20031027 code: qmail-smtpd identifies itself as netqmail
20031027 code: if $QMAILQUEUE is set, it's invoked instead of qmail-queue
20031024 code: changed errno from int to #include.
20031024 code: fixed .qmail parsing bug.
20031024 code: recognize 0.0.0.0 as a local address.
20031024 code: sendmail's -f flag now overrides environment variables.
And for all this, bump PKGREVISION.
Pre-flight checks by snj@.
Diffstat (limited to 'mail/qmail/patches/patch-an')
-rw-r--r-- | mail/qmail/patches/patch-an | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mail/qmail/patches/patch-an b/mail/qmail/patches/patch-an new file mode 100644 index 00000000000..7f0797b1b6e --- /dev/null +++ b/mail/qmail/patches/patch-an @@ -0,0 +1,63 @@ +$NetBSD: patch-an,v 1.1 2004/04/10 05:30:06 schmonz Exp $ + +--- qmail-smtpd.c.orig 1998-06-15 06:53:16.000000000 -0400 ++++ qmail-smtpd.c +@@ -51,12 +51,12 @@ void straynewline() { out("451 See http: + + void err_bmf() { out("553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)\r\n"); } + void err_nogateway() { out("553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)\r\n"); } +-void err_unimpl() { out("502 unimplemented (#5.5.1)\r\n"); } ++void err_unimpl(arg) char *arg; { out("502 unimplemented (#5.5.1)\r\n"); } + void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); } + void err_wantmail() { out("503 MAIL first (#5.5.1)\r\n"); } + void err_wantrcpt() { out("503 RCPT first (#5.5.1)\r\n"); } +-void err_noop() { out("250 ok\r\n"); } +-void err_vrfy() { out("252 send some mail, i'll try my best\r\n"); } ++void err_noop(arg) char *arg; { out("250 ok\r\n"); } ++void err_vrfy(arg) char *arg; { out("252 send some mail, i'll try my best\r\n"); } + void err_qqt() { out("451 qqt failure (#4.3.0)\r\n"); } + + +@@ -67,11 +67,11 @@ void smtp_greet(code) char *code; + substdio_puts(&ssout,code); + substdio_put(&ssout,greeting.s,greeting.len); + } +-void smtp_help() ++void smtp_help(arg) char *arg; + { +- out("214 qmail home page: http://pobox.com/~djb/qmail.html\r\n"); ++ out("214 netqmail home page: http://qmail.org/netqmail\r\n"); + } +-void smtp_quit() ++void smtp_quit(arg) char *arg; + { + smtp_greet("221 "); out("\r\n"); flush(); _exit(0); + } +@@ -232,7 +232,7 @@ void smtp_ehlo(arg) char *arg; + smtp_greet("250-"); out("\r\n250-PIPELINING\r\n250 8BITMIME\r\n"); + seenmail = 0; dohelo(arg); + } +-void smtp_rset() ++void smtp_rset(arg) char *arg; + { + seenmail = 0; + out("250 flushed\r\n"); +@@ -316,8 +316,8 @@ int *hops; + if (flagmaybex) if (pos == 7) ++*hops; + if (pos < 2) if (ch != "\r\n"[pos]) flagmaybey = 0; + if (flagmaybey) if (pos == 1) flaginheader = 0; ++ ++pos; + } +- ++pos; + if (ch == '\n') { pos = 0; flagmaybex = flagmaybey = flagmaybez = 1; } + } + switch(state) { +@@ -365,7 +365,7 @@ void acceptmessage(qp) unsigned long qp; + out("\r\n"); + } + +-void smtp_data() { ++void smtp_data(arg) char *arg; { + int hops; + unsigned long qp; + char *qqx; |