summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2012-03-30 16:48:31 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2012-03-30 16:48:31 +0000
commit591ac9addf276f213c7b43ec23ac970eeb4793f9 (patch)
tree3f4d95e75a31f58b7afa53f5584d1b67f4ecb1c1 /usr.sbin/smtpd
parent15a969f5d2ac49d8d8b91073e112ae1271cb8154 (diff)
increase timeout to 5m when connecting to a remote mail server, as required
by the RFC 5321 (section 4.5.3.2.1.) ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/mta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c
index 6475b80287c..76210866982 100644
--- a/usr.sbin/smtpd/mta.c
+++ b/usr.sbin/smtpd/mta.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mta.c,v 1.129 2012/03/27 12:53:33 eric Exp $ */
+/* $OpenBSD: mta.c,v 1.130 2012/03/30 16:48:30 chl Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -759,7 +759,7 @@ mta_io(struct io *io, int evt)
switch (evt) {
case IO_CONNECTED:
- io_set_timeout(io, 30000);
+ io_set_timeout(io, 300000);
io_set_write(io);
relay = TAILQ_FIRST(&s->relays);
dns_query_ptr(&relay->sa, s->id);