summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2010-04-21 11:07:37 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit817e9badc62d51648e11194a77faf1663387b4a3 (patch)
tree147d42a31304f5d2d313cce01ca8ac6c53cc639a
parent9c90ed6cfcf9cfef301a9a4e31458abab67d2aad (diff)
downloadpostfix-817e9badc62d51648e11194a77faf1663387b4a3.zip
postfix-817e9badc62d51648e11194a77faf1663387b4a3.tar.gz
- removed obsolete patch (postfix now logs all proxy replies)
Changed files: postfix-log-proxy-rejects.patch -> 1.9 postfix.spec -> 1.346
-rw-r--r--postfix-log-proxy-rejects.patch66
-rw-r--r--postfix.spec2
2 files changed, 0 insertions, 68 deletions
diff --git a/postfix-log-proxy-rejects.patch b/postfix-log-proxy-rejects.patch
deleted file mode 100644
index e904b1c..0000000
--- a/postfix-log-proxy-rejects.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-diff -ur postfix-2.4.5/src/smtpd/smtpd.c postfix-2.4.5-proxy/src/smtpd/smtpd.c
---- postfix-2.4.5/src/smtpd/smtpd.c 2007-09-11 00:27:31.181567626 +0200
-+++ postfix-2.4.5-proxy/src/smtpd/smtpd.c 2007-09-11 00:26:54.177444169 +0200
-@@ -2526,7 +2526,9 @@
- int out_error;
- char **cpp;
- const CLEANUP_STAT_DETAIL *detail;
-- const char *rfc3848_sess;
-+ VSTRING *proxy_why = 0;
-+ int proxy_code;
-+ const char *rfc3848_sess;
- const char *rfc3848_auth;
-
- #ifdef USE_TLS
-@@ -2705,8 +2707,19 @@
- if (state->err == CLEANUP_STAT_OK) {
- (void) proxy->cmd(state, SMTPD_PROX_WANT_ANY, ".");
- if (state->err == CLEANUP_STAT_OK &&
-- *STR(proxy->buffer) != '2')
-+ *STR(proxy->buffer) != '2') {
- state->err = CLEANUP_STAT_CONT;
-+ proxy_why = vstring_alloc(10);
-+ vstring_strncpy(proxy_why, STR(proxy->buffer), 3);
-+ if (alldig(STR(proxy_why)))
-+ proxy_code = atol(STR(proxy_why));
-+ else
-+ proxy_code = 554;
-+ vstring_strncpy(proxy_why, STR(proxy->buffer)+4, 5);
-+ smtpd_check_reject(state, MAIL_ERROR_POLICY, proxy_code, STR(proxy_why),
-+ "%s", STR(proxy->buffer));
-+ vstring_free(proxy_why);
-+ }
- }
- }
-
---- postfix-2.6.1/src/smtpd/smtpd_check.c.orig 2009-05-25 19:29:43.159923869 +0200
-+++ postfix-2.6.1/src/smtpd/smtpd_check.c 2009-05-25 19:31:30.299567709 +0200
-@@ -386,7 +386,7 @@
- * mail.
- */
- static int PRINTFLIKE(5, 6) defer_if(SMTPD_DEFER *, int, int, const char *, const char *,...);
--static int PRINTFLIKE(5, 6) smtpd_check_reject(SMTPD_STATE *, int, int, const char *, const char *,...);
-+int PRINTFLIKE(5, 6) smtpd_check_reject(SMTPD_STATE *, int, int, const char *, const char *,...);
-
- #define DEFER_IF_REJECT2(state, class, code, dsn, fmt, a1, a2) \
- defer_if(&(state)->defer_if_reject, (class), (code), (dsn), (fmt), (a1), (a2))
-@@ -758,7 +758,7 @@
-
- /* smtpd_check_reject - do the boring things that must be done */
-
--static int smtpd_check_reject(SMTPD_STATE *state, int error_class,
-+int smtpd_check_reject(SMTPD_STATE *state, int error_class,
- int code, const char *dsn,
- const char *format,...)
- {
-diff -ur postfix-2.4.5/src/smtpd/smtpd_check.h postfix-2.4.5-proxy/src/smtpd/smtpd_check.h
---- postfix-2.4.5/src/smtpd/smtpd_check.h 2007-09-11 00:27:30.414953649 +0200
-+++ postfix-2.4.5-proxy/src/smtpd/smtpd_check.h 2007-09-11 00:10:33.808156052 +0200
-@@ -25,6 +25,7 @@
- extern char *smtpd_check_data(SMTPD_STATE *);
- extern char *smtpd_check_eod(SMTPD_STATE *);
- extern char *smtpd_check_policy(SMTPD_STATE *, char *);
-+extern int smtpd_check_reject(SMTPD_STATE *state, int error_class, int code, const char *dsn, const char *format,...);
-
- /* LICENSE
- /* .ad
diff --git a/postfix.spec b/postfix.spec
index 2b1e122..9d3401d 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -60,7 +60,6 @@ Patch2: %{name}-dynamicmaps.patch
Patch3: %{name}-master.cf_cyrus.patch
# from http://akson.sgh.waw.pl/~chopin/unix/postfix-2.1.5-header_if_reject.diff
Patch4: %{name}-header_if_reject.patch
-Patch5: %{name}-log-proxy-rejects.patch
Patch6: %{name}-ident.patch
Patch7: %{name}-lib64.patch
Patch8: %{name}-conf.patch
@@ -266,7 +265,6 @@ find -type f | xargs sed -i -e 's|/etc/postfix|/etc/mail|g'
%patch2 -p1
%patch3 -p1
%{?with_hir:%patch4 -p0}
-%patch5 -p1
%patch6 -p1
sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
%if "%{_lib}" == "lib64"