summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/makemap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* rework a bit expansion and data structures involved in the expansion so wegilles2009-11-081-4/+4
| | | | | | | | | | | no longer have a direct mapping between structures saved in aliases/virtual db and structures used at runtime during expansion. side effects ? struct alias is smaller, databases are smaller and it is no longer necessary to rebuild aliases/virtual databases each time jacekm@ or I make changes to some obscure structure used indirectely during expansion rebuild databases, flush queues, make clean
* teach makemap how to build a set, which is a map containing only keys.gilles2009-11-031-7/+57
| | | | | | | | | | | | | smtpd is now capable of looking primary domains at runtime in a set, which means that the following becomes possible: map "primary" { source db "/etc/mail/primary.db" } accept for domain map "primary" deliver to mbox while at it fix a couple bugs in the aliases resolution path which caused recipients to bounce if a ruleset did not have an "accept for local" rule "diff reads good" jacekm@, flush queue & make clean
* sort flags.sobrado2009-10-171-2/+2
|
* to support virtual domains properly, smtpd needed to have the domain storedgilles2009-10-121-1/+20
| | | | | | | | | | | as a key in the virtual map, which means that to support virtual domain for openbsd.org I would do: openbsd.org whatevervalue gilles@openbsd.org gilles this commit teaches makemap how to deduce the special domain keys based on the entries for that domain, so that only the second line is needed now.
* import some changes from portable smtpd to reduce the delta between both.gilles2009-08-081-4/+4
| | | | | | this commit contains mostly missing casts and cosmethic changes, do not expect to build this anywhere but on OpenBSD, it does not contain any of the portable glue.
* slightly change how makemap parses its lines so that we consider #gilles2009-07-281-3/+3
| | | | | | | as a comment only when it starts a line or is preceded by whitespaces. fixes a bug that was reported to me twice and which i ran into, ok jacekm@
* It is now possible to specify a certificate to use when relaying to anothergilles2009-05-301-2/+2
| | | | | | | | | | host which requests client certificates: accept [...] relay via [...] ssl certificate "mycert" diff from Josh Elsasser <josh@elsasser.org>, tested and okayed by me with no change but the addition of status 554 to the state machine to deal with remote host telling us it doesn't like our certificate.
* assert copyright; ok gilles@jacekm2009-05-101-1/+2
|
* Make aliases case-insensitive, issue reported by Daniel Ouelett; ok gilles@jacekm2009-04-241-1/+2
|
* since maps may contain secrets, carry ownership and perms from source filejacekm2009-03-191-10/+15
| | | | to db file; ok gilles@
* Drop ALIAS_TEXT, plain maps got implemented in a different way; ok gilles@jacekm2009-03-091-19/+5
|
* make_plain() deals with a c-string, val->size should contain the nul-bytegilles2009-03-061-1/+6
| | | | or we will truncate the last character of every value we store in a map.
* fix a bug in the generation of plain maps which would cause the value notgilles2009-03-061-2/+2
| | | | to be correctly inserted into the map.
* replace MAX* constants by sizeof where possibleform2009-02-221-2/+2
| | | | ok jacekm@
* - flock input file while the database is being builtjacekm2009-02-171-2/+13
| | | | | | - make newaliases finish with short summary ok gilles@
* make newaliases read aliases path from smtpd.conf; idea discussed withjacekm2009-02-171-4/+56
| | | | gilles@, pyr@ and henning@, diff ok gilles@.
* Implement makemap -t and -o, for output type and dest resp.; ok gilles@jacekm2009-02-141-118/+142
|
* remove unnecessary includes; ok gilles@jacekm2009-01-011-3/+1
|
* Add more compile time checking; fix one warning reported by gcc.jacekm2008-12-211-3/+2
| | | | From: Nicholas Marriott <nicholas.marriott@gmail.com>
* Don't err() on blank lines.jacekm2008-12-181-1/+7
| | | | ok gilles@
* Warn if empty map is being created; this catches at least usagejacekm2008-12-171-1/+6
| | | | | | error such as "makemap foo.db". ok gilles@
* Merge newaliases into makemap.jacekm2008-12-171-113/+145
| | | | ok gilles@
* Declare alias_parse in smtpd.h, and fix callers that pass it wrongjacekm2008-12-131-3/+1
| | | | | | number of arguments. ok gilles@
* - smtpd's db maps are incompatible with sendmail's and needs a distinctgilles2008-12-031-0/+237
makemap utility, this is needed for virtual users support amongst other things. links to smtpd's aliases.c and only provides a frontent to parse map descriptions. contains code from pyr@, chl@ and I. Should have also been imported with smtpd.