summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2015-11-30 14:39:21 +0000
committergilles <gilles@openbsd.org>2015-11-30 14:39:21 +0000
commitdc6b58cde264f3892c0d880fec4e130654bac419 (patch)
tree1c61560a6cda3305afe8ffb2bc183b57df40440b
parentif a ca_name is set, dump it to on-disk envelope so we recall it on reload. (diff)
downloadwireguard-openbsd-dc6b58cde264f3892c0d880fec4e130654bac419.tar.xz
wireguard-openbsd-dc6b58cde264f3892c0d880fec4e130654bac419.zip
add a couple smtpd-specific defines we want to expose to filters
and comment to clarify what they are used for
-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"