From 90975d5bb42c61e5d364b81ebec4a82b2f36791f Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Tue, 20 Apr 2010 18:55:02 +0000 Subject: Support "accept from local ..." as documented in the man page. Reported by Rene Maroufi --- usr.sbin/smtpd/parse.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'usr.sbin/smtpd') 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 @@ -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; -- cgit v1.2.3