summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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@
2011-12-27Q_BOUNCE is not used anymoreEric Faurot
ok gilles@
2011-12-27Instead of using a separate "bounce" queue, create the bounce envelopeEric Faurot
directly as an envelope of the bounced message, just like "regular" envelopes. ok gilles@
2011-12-27Follow adduser(8) behaviour (as well as what the pkg tools and ourAntoine Jacoutot
installer do) and do not append the user to its primary group name in /etc/group. ok miod@
2011-12-25Missing architecture on the .Dt line; found with mandocdb(8); ok jmc@.Ingo Schwarze
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-12-24-p requires an argument; from Stefan PetterssonJason McIntyre
ok krw
2011-12-23some spelling fixes, found using freebsd's "igor" document verifier;Jason McIntyre
2011-12-23On envelope creation, get the message id in a saner way than theEric Faurot
current confusing hack. ok gilles@
2011-12-22Add fqueue_envelope_path() function to create path to envelopes.Eric Faurot
ok chl@ gilles@
2011-12-21disable temporarily CA support, it prevents some remote hosts fromCharles Longeau
establishing a ssl session. will be investigated and reenabled soon asked and commited on behalf of gilles@ ok gilles@
2011-12-19fix/improve envelope_validate():Eric Faurot
- return an informative error string if the envelope is invalid. - take the envelope id as a parameter and make sure it matches. - do not expect the errorline to start with an SMTP response code, as this is not always the case: a temporary failure with mda would cause the envelope to be marked as corrupted. Instead, just make sure that all string fields are actual strings to prevent overflows later. ok gilles@ chl@
2011-12-18Sync comments with latest cleanup changesCharles Longeau
ok eric@