aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Faurot <eric@faurot.net>2013-12-12 14:47:37 +0100
committerEric Faurot <eric@faurot.net>2013-12-12 14:47:37 +0100
commit6e5595b7c3c30e078eba252deeb44b4bf87640cc (patch)
tree4181100ce6f4b67d68de0900b016aa03555d42ec
parentMerge branch 'master' into 376-SNI (diff)
downloadOpenSMTPD-6e5595b7c3c30e078eba252deeb44b4bf87640cc.tar.xz
OpenSMTPD-6e5595b7c3c30e078eba252deeb44b4bf87640cc.zip
do not disable routes on smtp errors anymore.
-rw-r--r--smtpd/mta.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/smtpd/mta.c b/smtpd/mta.c
index 2eaaed4c..bed00d0f 100644
--- a/smtpd/mta.c
+++ b/smtpd/mta.c
@@ -604,6 +604,7 @@ mta_source_error(struct mta_relay *relay, struct mta_route *route, const char *e
void
mta_route_error(struct mta_relay *relay, struct mta_route *route)
{
+#if 0
route->nerror += 1;
if (route->nerror > MAXERROR_PER_ROUTE) {
@@ -611,6 +612,7 @@ mta_route_error(struct mta_relay *relay, struct mta_route *route)
"disabling for a while", mta_route_to_text(route));
mta_route_disable(route, 2, ROUTE_DISABLED_SMTP);
}
+#endif
}
void
@@ -634,7 +636,9 @@ mta_route_ok(struct mta_relay *relay, struct mta_route *route)
void
mta_route_down(struct mta_relay *relay, struct mta_route *route)
{
+#if 0
mta_route_disable(route, 2, ROUTE_DISABLED_SMTP);
+#endif
}
void