summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2012-01-16Backout activation of the new apropos(1)/whatis(1)/makewhatis(8).Ingo Schwarze
In its current state, it causes too much slowdown, in particular during system builds, and there are other regressions. That cannot be fixed quickly while it's enabled. Problems pointed out by espie@, backout requested by deraadt@, diff "looks good" to espie@.
2012-01-15Add ascii_{load,dump}_time() to properly deal with time_t.Charles Longeau
This fixes build warnings for portable smptd. ok eric@ gilles@
2012-01-15document OpenBSD::md5Marc Espie
2012-01-14When moving a message to the corrupt/ directory, give it an alternate nameEric Faurot
if there is already an entry with the same name. ok gilles@ chl@
2012-01-14Add missing header needed by PRI format stringCharles Longeau
ok gilles@ eric@
2012-01-14Change fsqueue_*_path() to report success or failure instead ofEric Faurot
fatal(). Make sure at init time that all paths can contain envelopes, then these calls will never fail (provided that buffers are always correctly sized, which is true internally). ok gilles@ chl@
2012-01-14When creating a new message (in incoming/) make sure that the msgid does notEric Faurot
already exist in queue/ to prevent possible collision on commit. ok gilles@
2012-01-14Add a fsqueue_message_path() function to build path to message dirEric Faurot
and use it where appropriate. ok gilles@ chl@
2012-01-13use a simpler way to get to the parent directoryEric Faurot
ok gilles@
2012-01-13queue_message_purge() and queue_message_delete() are actually the sameEric Faurot
thing. Remove queue_message_purge() in favor of queue_message_delete and simplify fsqueue_message_delete() implementation to move the message dir to purge/ ok gilles@
2012-01-13remove the status field from struct envelope, move it to the smtpEric Faurot
session, and cleanup the DS_* flags. ok gilles@ chl@
2012-01-13Stop using envelope->status to report delivery outcome to theEric Faurot
runner/queue. Instead, replace IMSG_QUEUE_MESSAGE_UPDATE with three messages: - IMSG_QUEUE_DELIVERY_OK - IMSG_QUEUE_DELIVERY_TEMPFAIL - IMSG_QUEUE_DELIVERY_PERMFAIL 1) it's less confusing as status is also used by smtp 2) it's easier to see what happens just looking at imsg traces 3) it makes the code path generally easier to follow 4) it's safer because it enforces clear semantics and intent, whereas the status field is loosely defined and could carry bogus values. ok gilles@ chl@
2012-01-13kill delivery_backend_lookup() proto as it is already in smtpd.hCharles Longeau
committed on behalf of gilles@ ok gilles@ chl@
2012-01-12we should never use ramqueue_first_envelope() as a mean to determine theGilles Chehade
first schedulable envelope otherwise we end up with nsched wrong ... heck, let's kill ramqueue_first_envelope() and be done with it ;)
2012-01-12The status field in the envelope is confusing. Its only purpose is toEric Faurot
notify the runner of what happened with an envelope that has been scheduled. It is not part of the state of the envelope, and it is not even dumped. So it should only be set by mta/mda, checked by runner to decide what to do with the envelope, and ignored everywhere else. ok gilles@
2012-01-12the ramqueue filling at startup was busted, it would load envelopes one byGilles Chehade
one instead of doing it efficiently. fix runner_timeout() and ramqueue_load() so that at startup smtpd fills the ramqueue as long as there's no schedulable envelope in it, interrupts filling if there is and resume once it's scheduled. bug spotted by Nathanael Rensel, bug fix by me w/ help from eric@ tested by eric@ and I
2012-01-12now that we no longer do a stateful iteration on schedule queue, we needGilles Chehade
to make ramqueue_next_envelope() aware of pauses in mda/mta. while at it kill the pausing of bounces since they are reinjected in smtp and end up paused by the mda/mta cases. fixes an infinite loop observed by eric@ when pausing deliveries and trying to interrupt smtpd while it attempts to fetch next envelope :) tested by eric@ and I, ok eric@
2012-01-12use mbox backend for mbox delivery.Eric Faurot
ok gilles@
2012-01-12fgets(3) returns a pointer, so compare against NULL, not integer 0.Antoine Jacoutot
from Michael W. Bombardieri ok miod@
2012-01-12Remove dead code for config reloading for now. It is not functionnalEric Faurot
and confusing. ok gilles@
2012-01-12Add a fsqueue_envelope_dump_atomic() function that writes an envelopeEric Faurot
to incoming/envelope.tmp before moving it to its final destination. This allows to make sure that envelopes created directly in the queue (such as bounces) can't let the queue in an inconsistent state if the program stops in the middle of an envelope dump. This also allow to simplify qwalk, since we don't put any temporary contents anywhere in "walkable" queue dirs. ok gilles@
2012-01-12remove envelope_get_errormsg() and move envelope_set_errormsg()Eric Faurot
to envelope.c ok gilles@
2012-01-12alter line contents before writing it, rather than after...Eric Faurot
ok gilles@
2012-01-12use absolute path as fts may chdir() during traversal.Eric Faurot
ok gilles@
2012-01-12Mention the information source used for the ASN lookup.Stuart Henderson
2012-01-12Zap unused var in asn_lookup; from Michael W. BombardieriStuart Henderson
2012-01-11fix flags writingEric Faurot
ok gilles@
2012-01-11remove stateful iteration from ramqueue, if we ever need to reintroduce itGilles Chehade
we'll do it, but it isn't used and causes potential bugs idea by Nathanael Rensel, diff by me, ok eric@
2012-01-11in ramqueue_schedule(), do not reorder ramqueue envelopes when forcing aGilles Chehade
reschedule of the entire queue as that can lead to an infinite loop. bug spotted and bugfix by Nathanael Rensen, thanks ! ok eric@
2012-01-11queue_fsqueue_ascii.c, you're not welcome anymoreGilles Chehade
2012-01-11implement an envelope_ascii API that's not tied to a specific queue_backendGilles Chehade
simplify queue_fsqueue
2012-01-11remove bogus callEric Faurot
ok gilles@
2012-01-11Try to parse hostnames as IP addresses before resolving. This allowsEric Faurot
relays to be given as IP address in the config file. ok gilles@
2012-01-11enable back CA support, just don't verify client ...Gilles Chehade
tested @ home
2012-01-11Simplify runner/queue by getting rid of Q_PURGE. Instead, let smtpdEric Faurot
periodically clear the purge/ directory. At init time, the fsqueue backend simply moves the existing incoming/ dir in purge/ to discard aborted sessions. ok gilles@ chl@
2012-01-11Finally remove the queue_message_update() function which ended upEric Faurot
being only called by bounce sessions, so most of the code there was actually useless. The envelope is directly deleted or updated at the relevant place. ok gilles@
2012-01-11Improve error reporting. Most errors during hostname lookup areEric Faurot
now correctly reported as temporary failures. from Nathanael Rensen, tweaks by me.
2012-01-11remove dead prototypeEric Faurot
from Nathanael Rensen ok gilles@
2012-01-11fix typoEric Faurot
from Nathanael Rensen ok gilles@
2012-01-09Rename whatis.{db,index} back to mandoc.{db,index}Ingo Schwarze
such that makewhatis(8) called from pkg_delete(1) does not fail trying to open old-style whatis.db files as btree(3). Suggested by espie@ deraadt@ millert@
2012-01-07sloppy Ingo, whatis.db + whatis.indexMarc Espie
fix PkgCheck to use the proper API.
2012-01-06typo in log_peer_warnx messageStuart Henderson
2012-01-06mkdir needs -m to set the modeSebastian Reitenbach
OK yasuoka@
2012-01-05Enable the new apropos(1), whatis(1), and makewhatis(8).Ingo Schwarze
Unlink the old apropos(1), whatis(1), and makewhatis(8) from the build. Call the new tools from pkg_create(1) and pkg_add(1). "Please enable it now." deraadt@
2012-01-05update to nginx-1.0.11Robert Nagy
2011-12-31Remove the EXTENSIONS ifdef danse; it might have made sense in the pastAntoine Jacoutot
but user(8) behaviour has become OS specific in time so there's no sense keeping this. We are OpenBSD and we use BSD EXTENSIONS unconditionally. ok miod@ millert@ deraadt@
2011-12-30Fix a warning.Antoine Jacoutot
inputs from and ok miod@
2011-12-28Print PPP-Max-Payload headers (for RFC 4638 PPPoe), part of a larger diffStuart Henderson
from Matt Dainty. ok haesbaert@
2011-12-28s/minum/minimum/ in commentStuart Henderson
2011-12-28only add the rdomain for hostname lookups, when we have a hostname to lookup.Peter Hessler
noticed by zepard at gmail OK henning@