diff options
author | 2012-07-11 17:20:29 +0000 | |
---|---|---|
committer | 2012-07-11 17:20:29 +0000 | |
commit | 4acb2c417356fc8071b063e63e9c76f2fba7d935 (patch) | |
tree | b9d0fff0d98b3ea2a39d060af04a1cd84856fa2f | |
parent | Don't respect RFC 5322, that allows some crazy characters in email (diff) | |
download | wireguard-openbsd-4acb2c417356fc8071b063e63e9c76f2fba7d935.tar.xz wireguard-openbsd-4acb2c417356fc8071b063e63e9c76f2fba7d935.zip |
Respect RFC 5321, section 4.5.3.1.: it reduces our current max size for
localpart, domainpart and text line.
The sizeof struct envelope goes from 8k to 6k.
ok gilles@ eric@
-rw-r--r-- | usr.sbin/smtpd/filter_api.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/filter_api.h b/usr.sbin/smtpd/filter_api.h index 4df25c92efa..5adba6c17f9 100644 --- a/usr.sbin/smtpd/filter_api.h +++ b/usr.sbin/smtpd/filter_api.h @@ -1,4 +1,4 @@ -/* $OpenBSD: filter_api.h,v 1.1 2012/06/14 21:56:13 gilles Exp $ */ +/* $OpenBSD: filter_api.h,v 1.2 2012/07/11 17:20:29 chl Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org> @@ -23,15 +23,15 @@ #define FILTER_API_VERSION 50 #if !defined(MAX_LINE_SIZE) -#define MAX_LINE_SIZE 1024 +#define MAX_LINE_SIZE 1000 #endif #if !defined(MAX_LOCALPART_SIZE) -#define MAX_LOCALPART_SIZE 128 +#define MAX_LOCALPART_SIZE 64 #endif #if !defined(MAX_DOMAINPART_SIZE) -#define MAX_DOMAINPART_SIZE (MAX_LINE_SIZE-MAX_LOCALPART_SIZE) +#define MAX_DOMAINPART_SIZE 255 #endif enum filter_status { |