summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-04-20 18:55:02 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-04-20 18:55:02 +0000
commit90975d5bb42c61e5d364b81ebec4a82b2f36791f (patch)
treee00b7efc4650ed9f75d02fbb996b6db870699230 /usr.sbin/smtpd
parent0e10d9aaa1d3e6957b5617eef7117a7f1f97ba0b (diff)
Support "accept from local ..." as documented in the man page.
Reported by Rene Maroufi <info@maroufi.net>
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/parse.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y
index f7c5469f1bd..56f43933ad4 100644
--- a/usr.sbin/smtpd/parse.y
+++ b/usr.sbin/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.54 2010/04/20 11:03:05 gilles Exp $ */
+/* $OpenBSD: parse.y,v 1.55 2010/04/20 18:55:01 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -937,6 +937,12 @@ from : FROM mapref {
TAILQ_INSERT_TAIL(conf->sc_maps, m, m_entry);
$$ = m->m_id;
}
+ | FROM LOCAL {
+ struct map *m;
+
+ m = map_findbyname(conf, "localhost");
+ $$ = m->m_id;
+ }
| /* empty */ {
struct map *m;