From ffd19e45a3f46a9068b514b61e1d63085f0af6a9 Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Tue, 19 Nov 2013 10:22:43 +0000 Subject: Allow '*' in the user part of mailaddresses. By default, potentially dangerous characters are replaced when expanding for local deliveries, unless the "raw" modifier is specified. --- usr.sbin/smtpd/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/smtpd/util.c') diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index a608a32a164..3476ce93b19 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.101 2013/10/29 14:30:05 eric Exp $ */ +/* $OpenBSD: util.c,v 1.102 2013/11/19 10:22:42 eric Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -445,7 +445,7 @@ valid_localpart(const char *s) * RFC 5322 defines theses characters as valid: !#$%&'*+-/=?^_`{|}~ * some of them are potentially dangerous, and not so used after all. */ -#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("!%+-/=_", (c))) +#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("*!%+-/=_", (c))) nextatom: if (! IS_ATEXT(*s) || *s == '\0') return 0; -- cgit v1.2.3