diff options
author | Sergei Kolobov <sergei@FreeBSD.org> | 2005-04-18 15:24:39 +0000 |
---|---|---|
committer | Sergei Kolobov <sergei@FreeBSD.org> | 2005-04-18 15:24:39 +0000 |
commit | 897511dbd42bb2e9c83dd448b39fecccefa0f332 (patch) | |
tree | 04cb3de07a4af463f05f2e27ccc88ec75c105f75 /mail | |
parent | fb9484107c23892f0180df03dfbe9b2719510b80 (diff) | |
download | ports-897511dbd42bb2e9c83dd448b39fecccefa0f332.tar.gz ports-897511dbd42bb2e9c83dd448b39fecccefa0f332.zip |
Notes
Diffstat (limited to 'mail')
-rw-r--r-- | mail/qmail-spamcontrol/Makefile | 2 | ||||
-rw-r--r-- | mail/qmail-spamcontrol/distinfo | 4 | ||||
-rw-r--r-- | mail/qmail-spamcontrol/files/patch-qmail-smtpd.c.patch | 164 |
3 files changed, 84 insertions, 86 deletions
diff --git a/mail/qmail-spamcontrol/Makefile b/mail/qmail-spamcontrol/Makefile index 13e3a213712a..80949b73bcc6 100644 --- a/mail/qmail-spamcontrol/Makefile +++ b/mail/qmail-spamcontrol/Makefile @@ -19,7 +19,7 @@ COMMENT= Qmail MTA with SpamControl patches # Distfiles QMAIL_DIST= ${PORTNAME}-${QMAIL_VERSION}${EXTRACT_SUFX} SPAMCONTROL_DIST= spamcontrol-${SPAMCONTROL_VERSION}_tgz.bin -SPAMCONTROL_VERSION= 2312 +SPAMCONTROL_VERSION= 2313 PREFIX?= ${QMAIL_PORT_PREFIX} LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} diff --git a/mail/qmail-spamcontrol/distinfo b/mail/qmail-spamcontrol/distinfo index c1524ff6985a..309efaab60b5 100644 --- a/mail/qmail-spamcontrol/distinfo +++ b/mail/qmail-spamcontrol/distinfo @@ -1,4 +1,4 @@ MD5 (qmail-1.03.tar.gz) = 622f65f982e380dbe86e6574f3abcb7c SIZE (qmail-1.03.tar.gz) = 220668 -MD5 (spamcontrol-2312_tgz.bin) = 02266b33a6d3e16130e912205b0da6b5 -SIZE (spamcontrol-2312_tgz.bin) = 116806 +MD5 (spamcontrol-2313_tgz.bin) = a8ad350699dfd6110c3e8a8784f55ad4 +SIZE (spamcontrol-2313_tgz.bin) = 116888 diff --git a/mail/qmail-spamcontrol/files/patch-qmail-smtpd.c.patch b/mail/qmail-spamcontrol/files/patch-qmail-smtpd.c.patch index 30bbb4c00dbd..249df059ec4f 100644 --- a/mail/qmail-spamcontrol/files/patch-qmail-smtpd.c.patch +++ b/mail/qmail-spamcontrol/files/patch-qmail-smtpd.c.patch @@ -1,14 +1,13 @@ -diff -ruN ./qmail-smtpd.c.patch ../galle/qmail-smtpd.c.patch ---- ./qmail-smtpd.c.patch Sun Jan 30 08:27:34 2005 -+++ ../galle/qmail-smtpd.c.patch Tue Feb 1 08:10:38 2005 +--- orig/qmail-smtpd.c.patch Sun Apr 3 15:51:55 2005 ++++ ./galle/qmail-smtpd.c.patch Mon Apr 4 08:06:31 2005 @@ -1,8 +1,6 @@ ---- qmail-smtpd.c.orig 1998-06-15 --+++ qmail-smtpd.c 2005-01-31 +-+++ qmail-smtpd.c 2005-04-03 ---- .././qmail-1.03/qmail-smtpd.c Mon Jun 15 12:53:16 1998 --+++ ../qmail-1.03.2312/qmail-smtpd.c Sun Jan 30 11:24:25 2005 +-+++ ../qmail-1.03.2313/qmail-smtpd.c Sun Apr 3 20:49:22 2005 -@@ -20,14 +20,51 @@ -+--- qmail-smtpd.c.orig Tue Feb 1 07:47:52 2005 -++++ qmail-smtpd.c Tue Feb 1 08:08:28 2005 ++--- qmail-smtpd.c.orig Mon Apr 4 08:00:20 2005 +++++ qmail-smtpd.c Mon Apr 4 08:05:18 2005 +@@ -20,14 +20,52 @@ #include "now.h" #include "exit.h" @@ -62,98 +61,69 @@ diff -ruN ./qmail-smtpd.c.patch ../galle/qmail-smtpd.c.patch int liphostok = 0; -@@ -97,6 +260,39 @@ -+@@ -97,6 +261,41 @@ ++@@ -97,6 +261,40 @@ stralloc bmf = {0}; struct constmap mapbmf; -@@ -248,6 +247,8 @@ +@@ -248,6 +247,7 @@ +char *localmfcheck; +char *mfdnscheck; +char *reqauth; -++char *reqbrackets; ++char *localmf_reqauth; + +int maxrcptcount = 0; +int flaglocal = -1; -@@ -260,7 +261,7 @@ +@@ -260,7 +260,7 @@ void setup() { char *x; -@@ -111,17 +307,24 @@ -+@@ -111,17 +310,24 @@ ++@@ -111,17 +309,24 @@ if (timeout <= 0) timeout = 1; if (rcpthosts_init() == -1) die_control(); -@@ -286,7 +287,7 @@ +@@ -286,7 +286,7 @@ remoteip = env_get("TCPREMOTEIP"); if (!remoteip) remoteip = "unknown"; local = env_get("TCPLOCALHOST"); -@@ -131,11 +334,70 @@ -+@@ -131,11 +337,82 @@ ++@@ -131,11 +336,76 @@ if (!remotehost) remotehost = "unknown"; remoteinfo = env_get("TCPREMOTEINFO"); relayclient = env_get("RELAYCLIENT"); -@@ -338,6 +339,18 @@ +@@ -338,6 +338,12 @@ + qhpsi = env_get("QHPSI"); + if (!qhpsi) qhpsi = "unknown"; + -++ #ifdef LOCALMFREQAUTH -++ localmf_reqauth = env_get("LOCALMFREQAUTH"); -++ #else -++ localmf_reqauth = 0; -++ #endif -++ -++ #ifdef REQBRACKETS -++ reqbrackets = env_get("REQBRACKETS"); -++ #else -++ reqbrackets = 0; -++ #endif +++#ifdef LOCALMFREQAUTH +++ localmf_reqauth = env_get("LOCALMFREQAUTH"); +++#else +++ localmf_reqauth = 0; +++#endif ++ +#ifdef RELAYMAILFROM + if (!relayclient) { + relaymailfromok = control_readfile(&relaymailfrom,"control/relaymailfrom",0); -@@ -358,35 +371,21 @@ +@@ -358,7 +364,7 @@ int addrparse(arg) char *arg; -@@ -151,12 +413,17 @@ -+@@ -151,6 +428,8 @@ ++@@ -151,12 +421,17 @@ i = str_chr(arg,'<'); if (arg[i]) arg += i + 1; --+#ifdef REQBRACKETS --+ else -++ else if (reqbrackets) - + return 0; --+#else - else { /* partner should go read rfc 821 */ - terminator = ' '; - arg += str_chr(arg,':'); -- if (*arg == ':') ++arg; -- while (*arg == ' ') ++arg; -- } --+#endif -- -- /* strip source route */ -- if (*arg == '@') while (*arg) if (*arg++ == ':') break; +@@ -376,7 +382,7 @@ + + /* strip source route */ + if (*arg == '@') while (*arg) if (*arg++ == ':') break; -@@ -199,12 +466,106 @@ -+@@ -199,12 +478,106 @@ ++@@ -199,12 +474,106 @@ int bmfcheck() { - + int i; -- int j; --- if (!bmfok) return 0; --- if (constmap(&mapbmf,addr.s,addr.len - 1)) return 1; --- j = byte_rchr(addr.s,addr.len,'@'); --- if (j < addr.len) --- if (constmap(&mapbmf,addr.s + j,addr.len - j - 1)) return 1; -++ int j; - + int k = 0; - + char subvalue; - + -@@ -436,7 +435,12 @@ - +int bhelocheck() +@@ -406,7 +412,12 @@ + +int brtcheck() +{ + int i; -+ int j; @@ -165,17 +135,31 @@ diff -ruN ./qmail-smtpd.c.patch ../galle/qmail-smtpd.c.patch +- if (constmap(&mapbmf,addr.s + j,addr.len - j - 1)) return 1; + int k = 0; + char subvalue; + + +@@ -431,12 +442,7 @@ + +int bhelocheck() + +{ + + int i; +- int j; +-- if (!bmfok) return 0; +-- if (constmap(&mapbmf,addr.s,addr.len - 1)) return 1; +-- j = byte_rchr(addr.s,addr.len,'@'); +-- if (j < addr.len) +-- if (constmap(&mapbmf,addr.s + j,addr.len - j - 1)) return 1; +++ int j; + + int k = 0; + + char subvalue; + -@@ -488,7 +492,7 @@ +@@ -488,7 +494,7 @@ return 0; } --@@ -216,21 +577,126 @@ -+@@ -216,21 +589,136 @@ +-@@ -216,52 +577,203 @@ ++@@ -216,52 +585,214 @@ return r; } -@@ -583,6 +587,16 @@ +@@ -583,6 +589,16 @@ + } +} + @@ -192,16 +176,7 @@ diff -ruN ./qmail-smtpd.c.patch ../galle/qmail-smtpd.c.patch +#ifdef RELAYMAILFROM +int rmfcheck() +{ -@@ -618,7 +632,7 @@ - } - void smtp_rset() - { --@@ -240,28 +706,73 @@ -+@@ -240,28 +728,74 @@ - void smtp_mail(arg) char *arg; - { - if (!addrparse(arg)) { err_syntax(); return; } -@@ -671,6 +685,7 @@ +@@ -675,6 +691,7 @@ + flagrcpt = rcptallowed(); + if (!flagrcpt) { err_recipient("Reject::RCPT::Failed_Rcptto:",remoteip,remotehost,helohost.s,mailfrom.s,addr.s); flagerrcpts++; return; } + if (reqauth) if (!flagauth) { err_authreq("Reject::ORIG::Missing_Auth:",remoteip,remotehost,helohost.s,mailfrom.s,addr.s); return; } @@ -209,39 +184,62 @@ diff -ruN ./qmail-smtpd.c.patch ../galle/qmail-smtpd.c.patch } - else - if (!addrallowed()) { err_nogateway(); return; } -@@ -697,7 +712,7 @@ +@@ -701,7 +718,7 @@ } --@@ -279,11 +790,69 @@ -+@@ -279,11 +813,69 @@ +-@@ -279,11 +791,69 @@ ++@@ -279,11 +810,69 @@ substdio ssin = SUBSTDIO_FDBUF(saferead,0,ssinbuf,sizeof ssinbuf); struct qmail qqt; -@@ -768,7 +783,7 @@ +@@ -772,7 +789,7 @@ if (bytestooverflow) if (!--bytestooverflow) qmail_fail(&qqt); --@@ -316,8 +885,8 @@ -+@@ -316,8 +908,8 @@ +-@@ -316,8 +886,8 @@ ++@@ -316,8 +905,8 @@ if (flagmaybex) if (pos == 7) ++*hops; if (pos < 2) if (ch != "\r\n"[pos]) flagmaybey = 0; if (flagmaybey) if (pos == 1) flaginheader = 0; -@@ -778,7 +793,7 @@ +@@ -782,7 +799,7 @@ if (ch == '\n') { pos = 0; flagmaybex = flagmaybey = flagmaybez = 1; } } switch(state) { --@@ -373,31 +942,275 @@ -+@@ -373,31 +965,275 @@ +-@@ -373,31 +943,275 @@ ++@@ -373,31 +962,275 @@ if (!seenmail) { err_wantmail(); return; } if (!rcptto.len) { err_wantrcpt(); return; } seenmail = 0; -@@ -1058,7 +1073,7 @@ +@@ -995,7 +1012,7 @@ + + + + if (!user.len || !pass.len) return err_input(); + + return authenticate(); +-+} ++ } + +#endif + + + +struct authcmd { +@@ -1050,10 +1067,10 @@ + + case 1: + + err_authfail("Reject::ORIG::Failed_Auth:",remoteip,remotehost,helohost.s,user.s,authcmds[i].text); + + } +- } +- +-+/* this file is too long --------------------------------------------- GO ON */ +++} + + +++/* this file is too long --------------------------------------------- GO ON */ ++ + struct commands smtpcommands[] = { + { "rcpt", smtp_rcpt, 0 } + , { "mail", smtp_mail, 0 } +@@ -1062,7 +1079,7 @@ , { "quit", smtp_quit, flush } , { "helo", smtp_helo, flush } , { "ehlo", smtp_ehlo, flush } --@@ -408,8 +1221,11 @@ -+@@ -408,8 +1244,11 @@ +-@@ -408,8 +1222,11 @@ ++@@ -408,8 +1241,11 @@ , { 0, err_unimpl, flush } } ; |