diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-01-28 13:29:41 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-01-28 13:29:41 +0000 |
commit | 11d1255e47db113fad89b8300845d5db07bf8783 (patch) | |
tree | 631091c7e8ca9040d8b27f55d03bb61e5c1ee9d2 /usr.sbin/smtpd/smtpd.h | |
parent | da3bc0d08330702f641fdd31109a4d0bc7b44347 (diff) |
bring loop detection support. we handle this with a qmail-like approach which
consists of checking headers for a custom header, but we also count how many
hops the mail went through and use a hard limit (currently set to 100 as was
recommanded by RFC) as a safe-guard.
idea discussed with jacekm@, qmail approach suggested by claudio@ a long time
ago
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index 3426031190d..81a152a4dae 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.50 2009/01/28 12:58:17 gilles Exp $ */ +/* $OpenBSD: smtpd.h,v 1.51 2009/01/28 13:29:40 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -23,6 +23,8 @@ #define READ_BUF_SIZE 32768 #define MAX_NAME_SIZE 64 +#define MAX_HOPS_COUNT 100 + /* sizes include the tailing '\0' */ #define MAX_LINE_SIZE 1024 #define MAX_LOCALPART_SIZE 65 |