summaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2005-02-15 19:22:50 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2005-02-15 19:22:50 +0000
commit583741ac138fa6983ae8b201b3c51bad9ef2ef05 (patch)
tree3e6ff5477193935b3e0508c55afe3c27bda3529e /parser.y
parent7bbad4f8de74ef60f19137230c38100787fd982b (diff)
Allow to set helo-name. Allow to send out local mail as remote mail by adding a
qualifying domain name. Allow forcing envelope-from and Sender headers. Drop possible admin-added sgid priveleges to be dropped after reading the config. (Bernhard Link)
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parser.y b/parser.y
index a13a200..dd6a9dd 100644
--- a/parser.y
+++ b/parser.y
@@ -64,7 +64,7 @@ void yyerror (const char *s);
char *sval;
}
-%token IDENTITY DEFAULT HOSTNAME USERNAME PASSWORD STARTTLS CERTIFICATE_PASSPHRASE PRECONNECT POSTCONNECT MDA
+%token IDENTITY DEFAULT HOSTNAME USERNAME PASSWORD STARTTLS CERTIFICATE_PASSPHRASE PRECONNECT POSTCONNECT MDA QUALIFYDOMAIN HELO FORCE SENDER REVERSE_PATH
%token MAP
@@ -112,6 +112,10 @@ statement : HOSTNAME map STRING { identity->host = xstrdup($3); SET_DEFAULT_IDEN
| CERTIFICATE_PASSPHRASE map STRING { identity->certificate_passphrase = xstrdup($3); SET_DEFAULT_IDENTITY; }
| PRECONNECT map STRING { identity->preconnect = xstrdup($3); SET_DEFAULT_IDENTITY; }
| POSTCONNECT map STRING { identity->postconnect = xstrdup($3); SET_DEFAULT_IDENTITY; }
+ | QUALIFYDOMAIN map STRING { identity->qualifydomain = xstrdup($3); SET_DEFAULT_IDENTITY; }
+ | HELO map STRING { identity->helo = xstrdup($3); SET_DEFAULT_IDENTITY; }
+ | FORCE REVERSE_PATH map STRING { identity->force_reverse_path = xstrdup($4); SET_DEFAULT_IDENTITY; }
+ | FORCE SENDER map STRING { identity->force_sender = xstrdup($4); SET_DEFAULT_IDENTITY; }
| MDA map STRING { mda = xstrdup($3); }
| DEFAULT { default_identity = identity; }
;