From d4a6b96ca0bea537541a20c9dfc230f46c78c392 Mon Sep 17 00:00:00 2001 From: millert Date: Sun, 2 Apr 2000 21:15:53 +0000 Subject: [PATCH] Homegrown feature to do local mail address rewrites. Needed to build courtesan.mc and generally useful. --- .../sendmail/cf/feature/mailnametable.m4 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gnu/usr.sbin/sendmail/cf/feature/mailnametable.m4 diff --git a/gnu/usr.sbin/sendmail/cf/feature/mailnametable.m4 b/gnu/usr.sbin/sendmail/cf/feature/mailnametable.m4 new file mode 100644 index 00000000000..0fe5497dbed --- /dev/null +++ b/gnu/usr.sbin/sendmail/cf/feature/mailnametable.m4 @@ -0,0 +1,19 @@ +divert(-1) +# +# Simple feature to do username rewriting (converse of an alias) +# + +divert(0) +VERSIONID(`$Id: mailnametable.m4,v 1.1 2000/04/02 21:15:53 millert Exp $') +divert(-1) + +define(`MAILNAME_TABLE', ifelse(_ARG_, `', DATABASE_MAP_TYPE `-o' MAIL_SETTINGS_DIR`mailnames', `_ARG_')) +LOCAL_CONFIG +ifdef(`MAILNAME_TABLE', `Kmailnames' MAILNAME_TABLE) +PUSHDIVERT(1) +LOCAL_RULE_1 +ifdef(`MAILNAME_TABLE', +R$- $: $>3 $(mailnames $1 $) +R$- < @ $=w . > $: $>3 $(mailnames $1 $) +) +POPDIVERT -- 2.20.1