summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2012-10-14As discussed with gilles@, actually impose the per-user limit regardlessEric Faurot
of the delivery method. Bump the limit a bit. requested by and ok gilles@
2012-10-14Limit the number of per-user mda (external program) deliveries that can beEric Faurot
running at the same time. It prevents a user from consuming all mda "slots" with a long-running filter in his .forward file. Other delivery types are not affected. ok gilles@ chl@
2012-10-14When pushing too many envelopes to the mda at once, we can hit a filedescEric Faurot
exhaustion situation that kills the server. For now, put a safe limit on the number of envelopes sent by the queue process to the mda. ok gilles@ chl@
2012-10-14Add status command.Mark Kettenis
2012-10-14Beginning of a tool to control sun4v logical domains. For now this can startMark Kettenis
and stop domains.
2012-10-14enforce different permissions on different files in ssl_load_file()Alexander Hall
with gilles and eric, tested by me and gilles ok gilles@
2012-10-14substitute wrong comas into semicolonsCharles Longeau
ok gilles@ eric@
2012-10-14mistakenly removed an ".Xr smtpd 8"Gilles Chehade
spotted by jmc@
2012-10-14replace 'plain' with 'file' as the backend source name for map_file.cGilles Chehade
2012-10-14missing from previous commit, byebye map_stdio.cGilles Chehade
ok eric@ and chl@
2012-10-14introduce map_file.c which will deprecate map_stdio.cGilles Chehade
The idea is to have a file-backed map but to have smtpd(8) cache the maps so that it cannot be partially read if edited while mail is received. The file is read and converted to a static map (map_static.c), changes aren't visible to smtpd until an explicit: smtpctl update map which reads file, builds a new static map and invalidates the former. partial-read issue discussed with beck@ and halex@ idea to convert internally to a static map by eric@ diff ok eric@ and chl@
2012-10-14smtpctl show runqueue no longer exists, it's been that way for a whileGilles Chehade
2012-10-13missing headerGilles Chehade
2012-10-13in aliases expansion, we can avoid requesting parent for ~user/.forward, ifGilles Chehade
we check that user is a system user first before sending the imsg
2012-10-13In update verbose mode, when skipping an update candidate due to anJeremy Evans
unmatching pkgpath, if no valid update candidates are found, print that we are skipping the update candidate and all pkgpaths for both the currently installed package and the skipped update candidate. This is designed to help diagnosing issues when ports move locations in the tree, but the necessary @pkgpath entries are not correctly added to the PLIST. Much help and OK espie@
2012-10-13when makemap is executed in sendmail mode, check if ".db" is part of theGilles Chehade
filename and imply it otherwise so that the following works: makemap hash /etc/mail/aliases < aliases
2012-10-13Make map_lookup() and make_compare() set errno on failure to distinguishEric Faurot
between "no match" and "internal error" (e.g. missing or broken db file). Adapt alias expansion and ruleset matching code to check for such errors, in which case the current processing is aborted, and a temporary failure is reported to the smtp session. ok gilles@
2012-10-12Extend the "retry" field to 16 bits. The new quadratic retry formulaEric Faurot
makes the maximum retry delay a bit to small on 8 bits. ok gilles@ chl@
2012-10-11- if argc / argv not empty after getopt() loop, display usageGilles Chehade
2012-10-11- no need to assign a separator to the last route flag since we're notGilles Chehade
going to use it
2012-10-11- no need to set imsg_type to IMSG_MFA_CLOSE when we're not going to answerGilles Chehade
to SMTP ..
2012-10-11- remove dead storeGilles Chehade
spotted by clang
2012-10-11- remove dead storeGilles Chehade
spotted by clang
2012-10-11- map_create() takes a map_src not a map_kindGilles Chehade
ok eric@ and chl@
2012-10-11- char * -> unsigned char *Gilles Chehade
spotted by clang, ok eric@ and chl@
2012-10-11- ssize_t -> size_tGilles Chehade
spotted with clang, ok eric@ and chl@
2012-10-11- replace "from all" and "for all" with "from any" and "for any"Gilles Chehade
ok eric@, chl@
2012-10-11package checksums are no longer MD5, from Dawe on tech@.Stuart Henderson
2012-10-10F_BACKUP and ROUTE_BACKUP must be sync-ed for now, otherwise smtpd won'tGilles Chehade
work as a backup MX ... bug experienced by todd, verified and analyzed by eric
2012-10-10teach smtpctl how to display envelopes and messages using their id.Gilles Chehade
this allows an admin to inspect the queue without having to manually extract bucket and find the path to an envelope or message. diff by Sunil Nimmagadda <sunil@poolp.org> ok eric@, chl@ and I
2012-10-10io_connect() can take an optional address to bind() before connecting.Eric Faurot
ok gilles@
2012-10-10For each alias node, mark if it has been expanded from an alias map orEric Faurot
from a .forward file. Local deliveries for files and filters expanded from an alias map are run as user _smtpd. issue reported by tood@ ok gilles@ todd@
2012-10-10show the port number for a relay if specified.Eric Faurot
ok gilles@
2012-10-10Fix the hash http filter action to initialize the hash key correctly afterReyk Floeter
the multiple relay tables commit.
2012-10-10a SMTP -> an SMTP;Jason McIntyre
2012-10-09make "relay ... as ..." work again. It's been zapped by mistake.Eric Faurot
spotted by todd@ ok gilles@
2012-10-09- allow a listen statement to impose tls on its clients;Gilles Chehade
- make listen statements impose authentication if 'auth' is specified and to make it optional if 'auth-optional' is specified; - sync documentation accordingly with ideas and input from beck@ and halex@, ok eric@
2012-10-09Reject ssl key/certs/CA/DH files if their ownership/permissions are notEric Faurot
correct (uid 0, no rights for g/o). Initial diff by Sunil Nimmagadda. ok gilles@ chl@
2012-10-09fix listen examples to not use an interfaceGilles Chehade
2012-10-09fix a FILE* leak when using compression.Eric Faurot
ok gilles@
2012-10-08disk space is cheap but we still want to limit the default size of a bodyGilles Chehade
to a sane default for everyone.
2012-10-08when building a db map, always lowercase the key before a lookup in makemapGilles Chehade
smtpd already does it, but this allows spotting a cycle at makemap time, so user isn't surprised at runtime. while at it, be more tolerant when user specifies /etc/mail/aliases instead of /etc/mail/aliases.db
2012-10-08update to 1.2.4Robert Nagy
2012-10-08skip RR if type is not MX. Use hostname if the list of MX is emptyEric Faurot
after the loop. spotted by huku at grhack.net ok gilles@
2012-10-07Implement a simple wait queue API. The idea is to allow multiple "waiters"Eric Faurot
to wait on the same "tag" for a deferred result. A waiter is a callback and a void *argument. The first waiter (the one for which waitq_wait() returns true) is supposed to run some code that leads to waitq_run() being run, which will destroy that waitq and call all callbacks in turn. Not used at the moment, but will be soon. ok gilles@ chl@
2012-10-07We need to provide a sendmail-like interface to makemap so that some toolsGilles Chehade
that assume sendmail do not break ... add support for reading map source from stdin, for specifying the DBTYPE of a map, and teach OUR makemap to emulate sendmail interface. ok eric@
2012-10-07convert iobuf_queue()'s to iobuf_fqueue(). (idea from gilles@)Charles Longeau
introduce iobuf_xinit() and iobuf_xfqueue(). (idea from eric@) ok gilles@
2012-10-07bump max number of connections to a route from 5 to 10, the limit is tooGilles Chehade
low as experienced by myself and another user. discussed with and ok eric@
2012-10-06fix usage(); ok dlgJason McIntyre
2012-10-06inetd Xr no longer relevant; ok dlgJason McIntyre