summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2015-11-30 14:39:22 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2015-11-30 14:39:22 +0000
commitc17cf49dc37d3bd08caae8d4c84ea23c07a80eb3 (patch)
treeef8d2b16f4007e77d20c987620807d2214e006b1 /usr.sbin
parent3965ac6e87c6a9088036601ce49cf8846f301da5 (diff)
add a couple smtpd-specific defines we want to expose to filters
and comment to clarify what they are used for
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/smtpd-defines.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd-defines.h b/usr.sbin/smtpd/smtpd-defines.h
index 4c3be1f2f36..09337bf6926 100644
--- a/usr.sbin/smtpd/smtpd-defines.h
+++ b/usr.sbin/smtpd/smtpd-defines.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd-defines.h,v 1.5 2015/10/09 14:37:38 gilles Exp $ */
+/* $OpenBSD: smtpd-defines.h,v 1.6 2015/11/30 14:39:21 gilles Exp $ */
/*
* Copyright (c) 2013 Gilles Chehade <gilles@poolp.org>
@@ -20,8 +20,16 @@
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
#endif
+#define SMTPD_TABLENAME_SIZE (64 + 1)
+#define SMTPD_TAG_SIZE (32 + 1)
+
+/* buffer sizes for email address components */
#define SMTPD_MAXLOCALPARTSIZE (255 + 1)
#define SMTPD_MAXDOMAINPARTSIZE (255 + 1)
+#define SMTPD_MAXMAILADDRSIZE (255 + 1)
+
+/* buffer size for virtual username (can be email addresses) */
+#define SMTPD_VUSERNAME_SIZE (255 + 1)
#define SMTPD_USER "_smtpd"
#define PATH_CHROOT "/var/empty"