summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/ruleset.c
AgeCommit message (Expand)Author
2021-06-14add required headers for smtpd.h and remove unnecessary ones in other files.Eric Faurot
2019-11-25store smtp session username in envelope and allow ruleset to match specificGilles Chehade
2019-11-12fix a logic bug in ruleset matching that makes `from socket` rules possiblyGilles Chehade
2019-11-04fix a possible crash when combining "from rdns", nested virtual aliases andGilles Chehade
2019-08-11add 'from rdns' to ruleset match criterias making it possible to matchGilles Chehade
2019-08-11properly implement the "from socket" match criteria, so it is now possibleGilles Chehade
2018-12-28remove the tag workaround for table_create() and table_find(),Eric Faurot
2018-12-26simplify codeEric Faurot
2018-12-26introduce a table_match() function to check for a key in a tableEric Faurot
2018-12-26get rid of the unused dict argument in table lookup and fetch api.Eric Faurot
2018-12-22introduce new matching criteria 'from rdns' to match sessions based on rDNSGilles Chehade
2018-12-21since we already support regex lookups in tables for builtin filters, let'sGilles Chehade
2018-06-16rework the table API so that it takes a struct smtpd * context in parameterGilles Chehade
2018-05-24switch smtpd to new grammarGilles Chehade
2017-02-13allow negation of authenticated keyword:Gilles Chehade
2016-08-31introduce "authenticated" parameter so rules may apply to authenticatedGilles Chehade
2015-10-27aliases_virtual_check() has been unneeded for a whileGilles Chehade
2015-01-20use <limits.h> comprehensively. For now try to push <> includes toTheo de Raadt
2014-07-08Update the table API: lookup functions can take an optional parametersEric Faurot
2013-11-06Much much improved config parser and related changes.Eric Faurot
2013-05-24sync with OpenSMTPD 5.3.2Eric Faurot
2013-01-26Sync with our smtpd repo:Gilles Chehade
2012-11-12Cleanups and improvements:Eric Faurot
2012-10-13Make map_lookup() and make_compare() set errno on failure to distinguishEric Faurot
2012-10-11- replace "from all" and "for all" with "from any" and "for any"Gilles Chehade
2012-09-21Move ruleset_match() prototype to smtpd.h and make the envelope const.Eric Faurot
2012-09-15When enqueueing from the local socket, the input address is faked as "::1".Eric Faurot
2012-05-13- cleanup parse.y by removing lots of code that should not have been there,Gilles Chehade
2011-10-23fsqueue no longer stores envelopes by dumping the structure, instead use aGilles Chehade
2011-05-21remove annoying log_debug()Gilles Chehade
2011-05-16murder struct path and make sure smtpd uses simpler structures that do notGilles Chehade
2011-05-01the smtpd env is meant to be global, so do not pass it all around.Eric Faurot
2011-04-17cleanups, cosmethic changes, functions that should be static are now staticGilles Chehade
2010-11-28remove all unused headersGilles Chehade
2010-11-28a bit of .h cleanups, no functionnal changeGilles Chehade
2010-05-27when a rule has two conditions (ie: accept for { domain foo, domain bar } )Gilles Chehade
2010-04-21map_lookup() takes an additionnal parameter of type enum map_kind whichGilles Chehade
2010-02-28the netmask fix I commited a couple days ago lacked the AF_INET6 bits,Gilles Chehade
2010-02-26- fix netmask matching for AF_INET, it was broken in many ways, problemGilles Chehade
2010-02-17the map api becomes backend-agnostic with initial support for db(3) andGilles Chehade
2009-11-03teach makemap how to build a set, which is a map containing only keys.Gilles Chehade
2009-11-03- remove a useless member of struct condGilles Chehade
2009-11-03remove annoying log_debugGilles Chehade
2009-10-19currently, smtpd is capable of having multiple listeners with differentGilles Chehade
2009-10-12fix a bug where matching a "for all" rule with multiple condition will notGilles Chehade
2009-10-11implement proper virtual domains instead of faking them on top of primaryGilles Chehade
2009-10-07remove noisy log_debug, requested by gilles@Jacek Masiulaniec
2009-06-01add new file ruleset.c with code related to the ruleset matching, and killGilles Chehade