summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/parse.y
AgeCommit message (Collapse)Author
2016-01-04switch to /usr/local/libexec when looking for -extras and drop loop iteratingJoerg Jung
paths this effectively reverts table.c r1.21 which was mainly introduced for a smooth transition in -current ok gilles
2015-12-28remove spaces after '!'Joerg Jung
no binary change ok millert
2015-12-12remove CA from pki and no longer allow specifying a CA with 'pki' keyword.Gilles Chehade
introduce 'ca' keyword to allow specifying a custom CA. making CA part of pki was a bad idea and several people hit use-cases that plain couldn't work. instead of: pki foobar.org ca "/etc/mail/CA.pem" use now: ca foobar.org certificate "/etc/mail/CA.pem" ok sunil@, jung@
2015-12-12whitespacesGilles Chehade
2015-12-12when using senders map to restrict email address a user may use in SMTPGilles Chehade
dialogue, if `masquerade' is used as a parameter then rewrite the email address of the DATA From header to the email address in the map.
2015-12-12allow overriding the default cipher-suiteGilles Chehade
ok jung@, sunil@, millert@
2015-12-12check in parse.y that pki param is a valid hostnameGilles Chehade
2015-12-12prepare bits to enable masquerade in parse.yGilles Chehade
2015-12-12add missing check for failed allocationGilles Chehade
2015-12-12spacesGilles Chehade
2015-12-12add bits so local enqueuer can run filters when they are enabledGilles Chehade
2015-12-12Implement senders map.Sunil Nimmagadda
senders table allows to restrict the addresses that an authenticated user can use in the SMTP dialogue. Ok gilles@
2015-12-12rename an smtpd specific defineGilles Chehade
2015-12-11add keywords that are going to be used in upcoming mini diffsGilles Chehade
2015-12-11in add_filter_arg() do not allow the same filter twice in same chainGilles Chehade
unused for now
2015-12-03introduce limit session keyword replacing fixed valuesJoerg Jung
original diff from Renaud Allard ok gilles
2015-12-02whitespacesGilles Chehade
2015-12-01add received-auth parameter to listener to identify authenticated sessionsGilles Chehade
in locally appended Received header when enabled ok millert@, jung@
2015-12-01update enum values in listen optionsGilles Chehade
2015-12-01reorder headerGilles Chehade
2015-12-01prepare the ground for the CA certificate handling refactor, this commitGilles Chehade
adds the parse.y bit + structures & members needed but does not make use of it yet
2015-11-30when looking up tables, start in /usr/local/libexec before /usr/libexec, soGilles Chehade
ports/packages can be installed in the proper place ok jung@
2015-11-30While delivering to lmtp or mda, accept optional "as user" parameterSunil Nimmagadda
whose privileges would be used instead of the default. Ok gilles@ jung@
2015-11-05replace u_char and u_int* with standard stdint.h types to ease portable versionJoerg Jung
also remove trailing whitespaces while here no binary change ok sunil millert gilles
2015-10-27add a rcpt-to parameter to be able to use the original (probably expanded)Joerg Jung
RCPT TO within LMTP sessions ok gilles eric
2015-09-07when bypassing the enqueuer, insert Message-Id header if none was found andGilles Chehade
the client has connected from a loopback interface. ok millert@ eric@
2015-08-19do not cast result from xcalloc(); it is in scopeTheo de Raadt
2015-02-08Use AI_ADDRCONFIG when resolv hosts on startup.Reyk Floeter
OK henning@
2015-01-20use <limits.h> comprehensively. For now try to push <> includes toTheo de Raadt
each .c file, and out of the .h files. To avoid overinclude. ok gilles, in principle. If this has been done right, -portable should become easier to maintain.
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-20Don't allow embedded nul characters in strings.Jonathan Gray
Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
2014-11-16Convert the logic in yyerror(). Instead of creating a temporaryAlexander Bluhm
format string, create a temporary message. OK doug@
2014-11-14Add gcc printf format attributes to yyerror() in parse.y files.Doug Hogan
No yyerror() calls needed to be changed. ok bluhm@
2014-07-09add a "no-dsn" listener option to disable DSN extension.Eric Faurot
2014-07-09config parser improvements:Eric Faurot
- fail if the same option is specified multiple times on a listener - prompt for queue encryption key after config parsing, not during. - add ip addresses to localnames table - prepare for filters
2014-07-08update filter configuration parsing (not plugged yet)Eric Faurot
2014-04-19add missing strlcpy() check in create_filter_chain() that would cause smtpdGilles Chehade
to fatal at startup if truncation occured and we had enabled filters (void) cast a strlcpy() that cannot truncate
2014-04-19add missing strlcpy() checks in create_filter() that would cause smtpd toGilles Chehade
fatal at startup if truncation occured and we had enabled filters
2014-04-19add missing strlcpy() check in is_if_in_group() to detect and warn aboutGilles Chehade
the truncation rather than failing the ioctl() call that follows.
2014-04-19add missing strlcpy() check when parsing "backup hostname" in smtpd.conf,Gilles Chehade
it could lead to smtpd not finding itself in a MX lookup if a hostname is specified that exceeds the max hostname len. while at it, add a missing free()
2014-04-19(void) cast strlcpy() calls that cannot truncateGilles Chehade
2014-03-25reword error message when a table has an invalid configuration file, it hasGilles Chehade
confused a few people ok eric@
2014-02-04pki code cleanupEric Faurot
- rename "struct ssl" and "cert" to "struct pki" and "cert" to "pki_name" - inherit pki conf on fork instead of passing it through imsg at startup - implement SNI on smtp listeners
2014-01-22relax the cfg file secrecy check slightly to allow group readabilityHenning Brauer
default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian
2013-12-26bcopy -> memmoveEric Faurot
bzero -> memset
2013-12-05bogus ';'Eric Faurot
2013-11-30do not hardcode scheduler batch size, and reduce default limit to avoidEric Faurot
hammering effects.
2013-11-28limit the number of envelopes to recall in the hoststat cache.Eric Faurot
2013-11-25use u_char for buffers in yylex, for ctype calls, as done in all otherTheo de Raadt
parse.y in the tree issue found by millert, ok gilles
2013-11-21correctly set verify flag on the listenerEric Faurot