summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;