summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/makemap.c
AgeCommit message (Collapse)Author
2010-04-21when creating a map, make sure we do not store a key/val separator at theGilles Chehade
beginning of the key (ie: "gilles: bleh" should not be stored as key[gilles] val[ bleh])
2009-11-08rework a bit expansion and data structures involved in the expansion so weGilles Chehade
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
2009-11-03teach makemap how to build a set, which is a map containing only keys.Gilles Chehade
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
2009-10-17sort flags.Igor Sobrado
2009-10-12to support virtual domains properly, smtpd needed to have the domain storedGilles Chehade
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.
2009-08-08import some changes from portable smtpd to reduce the delta between both.Gilles Chehade
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.
2009-07-28slightly change how makemap parses its lines so that we consider #Gilles Chehade
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@
2009-05-30It is now possible to specify a certificate to use when relaying to anotherGilles Chehade
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.
2009-05-10assert copyright; ok gilles@Jacek Masiulaniec
2009-04-24Make aliases case-insensitive, issue reported by Daniel Ouelett; ok gilles@Jacek Masiulaniec
2009-03-19since maps may contain secrets, carry ownership and perms from source fileJacek Masiulaniec
to db file; ok gilles@
2009-03-09Drop ALIAS_TEXT, plain maps got implemented in a different way; ok gilles@Jacek Masiulaniec
2009-03-06make_plain() deals with a c-string, val->size should contain the nul-byteGilles Chehade
or we will truncate the last character of every value we store in a map.
2009-03-06fix a bug in the generation of plain maps which would cause the value notGilles Chehade
to be correctly inserted into the map.
2009-02-22replace MAX* constants by sizeof where possibleOleg Safiullin
ok jacekm@
2009-02-17- flock input file while the database is being builtJacek Masiulaniec
- make newaliases finish with short summary ok gilles@
2009-02-17make newaliases read aliases path from smtpd.conf; idea discussed withJacek Masiulaniec
gilles@, pyr@ and henning@, diff ok gilles@.
2009-02-14Implement makemap -t and -o, for output type and dest resp.; ok gilles@Jacek Masiulaniec
2009-01-01remove unnecessary includes; ok gilles@Jacek Masiulaniec
2008-12-21Add more compile time checking; fix one warning reported by gcc.Jacek Masiulaniec
From: Nicholas Marriott <nicholas.marriott@gmail.com>
2008-12-18Don't err() on blank lines.Jacek Masiulaniec
ok gilles@
2008-12-17Warn if empty map is being created; this catches at least usageJacek Masiulaniec
error such as "makemap foo.db". ok gilles@
2008-12-17Merge newaliases into makemap.Jacek Masiulaniec
ok gilles@
2008-12-13Declare alias_parse in smtpd.h, and fix callers that pass it wrongJacek Masiulaniec
number of arguments. ok gilles@
2008-12-03- smtpd's db maps are incompatible with sendmail's and needs a distinctGilles Chehade
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.