1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

11462 Commits

Author SHA1 Message Date
sobrado
1bf1e788b0 we should not document each operand in the usage of a command,
it is an usual practice on BSDs and make the synopsis and usage
more robust when operands are added or removed; synchronize the
usage with the synopsis on the manual page; while here, remove
superfluous information from the usage.

ok jmc@
2008-11-12 16:01:08 +00:00
gilles
29ee1e5255 - mistakenly removed this lock 2008-11-11 21:17:49 +00:00
gilles
851c912ec6 - introduce queue_init_submissions() which will sanitize the disk-based
queue at startup: catches left overs from interrupted sessions,
	reset F_MESSAGE_INPROCESS so that messages which were in MTA or
	MDA gets scheduled again.
- temporarily comment chl@'s O_EXLOCK -> fcntl change until we figure
	why it locks my mailbox under load
2008-11-11 21:13:14 +00:00
gilles
75f3590040 - temporarily comment chl@'s O_EXLOCK -> fcntl() change until we understand
what causes the mailbox lock bug i'm observing under heavy load.
2008-11-11 21:02:20 +00:00
gilles
756d3a0185 - now that we fdopen() message file descriptor, do not forget to fclose() 2008-11-11 20:59:11 +00:00
tedu
cd5fb898fd some small improvements. ok gilles 2008-11-11 02:14:58 +00:00
gilles
93e859c46a - queue process no longer schedules messages which do not have flag
F_MESSAGE_COMPLETE
- submit recipients to the queue as we read them from RCPT instead of
	submiting them all at once when DATA is over. this prevents us
	from having to keep a potentially large number of recipients in
	memory during the whole session.
- remove all code that dealt with the recipients queue of a message as
	it is no longer used.
- several small changes to make sure the server is always in a recoverable
	state in case of an unexpected shutdown.
2008-11-11 01:08:08 +00:00
chl
4277a387fe remove the use of O_EXLOCK, when open()ing a file, and use flock() instead.
ok gilles@
2008-11-11 01:01:39 +00:00
gilles
7f96bf692c - open the message file earlier after a successful MAIL command instead of
waiting for the DATA command. this currently has no impact on the
	session but is needed for another change that will make submission
	of recipients safer with regard to "unexpected shutdowns at bad
	timings"
2008-11-10 23:18:47 +00:00
gilles
e5836a4449 - define MAX_LINE_SIZE which is the maximum length of a line we allow from
a client. it must be set to the highest value we have from all of
	the extensions which are/will be implemented.
- replace all occurences of STRLEN define with MAX_LINE_SIZE, kill STRLEN
2008-11-10 22:35:23 +00:00
chl
bd5bb70c9d rename h_errno field into getaddrinfo_error, to avoid confusion with errno.
h_errno has been obsoleted since the gethostbyname() --> getaddrinfo() replacement.

ok gilles@
2008-11-10 21:29:18 +00:00
chl
b3c9634417 fix store_write_header() prototype.
ok gilles@
2008-11-10 20:10:38 +00:00
deraadt
c5d798e9fe delete operation not needed; from naddy 2008-11-10 17:55:36 +00:00
deraadt
b1819451cb #if 0 a function which we have we do not use, and where the call to it is in #if 0 as well 2008-11-10 17:49:46 +00:00
deraadt
f8c0a882a2 spaces fixed while reading code 2008-11-10 17:24:24 +00:00
deraadt
2f3d2c487d If a bind() spuriously fails (as appears to happen once in a blue moon due
to some stupid ipv6 bug in particular), remove that 'listen' from the list
and continue operation.  issue spotted by naddy
ok henning
2008-11-10 16:59:33 +00:00
gilles
65630bc4b3 - remove last occurences of the atomic api in store.c, smtpd no longer uses
atomic api when dealing with files but uses stdio instead
2008-11-10 16:33:07 +00:00
tedu
f15dc49bf6 last character in line is at len - 1. ok gilles 2008-11-10 03:55:36 +00:00
tedu
e7fccdfc42 insertion sort is faster than bubble sort. ok gilles 2008-11-10 03:54:08 +00:00
gilles
7edaf9bab0 - simplify the passing of ssl cert/key during ssl configuration,
from Jacek Masiulaniec <jacekm@dobremiasto.net>
2008-11-10 03:41:53 +00:00
gilles
15f44de017 - in queue, do not use the atomic api when dealing with real files
change based on a comment from deraadt@

- in queue_register_submission(), if an envelope cannot be fully written
	because of some error (ie: disk full), not only return error but
	also remove the partial envelope from file system. this prevents
	the queue process from trying (failing) to reload it over and
	over.
2008-11-10 03:16:02 +00:00
gilles
63686c38be - plug a descriptor leak when session is aborted by a server error instead
of a client QUIT or client timeout
2008-11-10 02:34:50 +00:00
gilles
9d4d4fe1f6 - move '=>' into the lex loop, requested by and with help from deraadt@ 2008-11-10 02:13:40 +00:00
gilles
abe7d6f45e - in queue_load_submissions(), if queue_message_from_id() fails for some
reason just warn instead of aborting the whole smtpd.
2008-11-10 01:14:05 +00:00
gilles
a748992204 - snprintf() can return -1, make sure every call is checked properly 2008-11-10 00:57:35 +00:00
gilles
21677b49c1 - recognize '=>' as one token instead of trying to match '=' and '>'. this
prevents:  "foo  =      >  bar" from being valid
2008-11-10 00:29:33 +00:00
gilles
998e671521 - make READ_BUF_SIZE a power of 2 2008-11-10 00:22:05 +00:00
tobias
7c635cc475 typo fixed (overriden -> overridden)
ok espie, jmc
2008-11-09 12:34:46 +00:00
krw
920fcdb10c Some clients don't parse a DHO_DHCP_OPTION_OVERLOAD option the way
I expected. They object if there are no bits set in the option
value. So just use DHO_PAD in the reserved space unless at least
one of the bits is set.

Various versions tested by Tobias Ulmer on OpenSolaris, matthieu@
on busybox's DHCP client, and Uwe Dippel on Solaris. All of which
failed before.
2008-11-08 01:42:24 +00:00
claudio
55e4966575 Mixed up characters found by Gleydson Soares. 2008-11-06 21:16:27 +00:00
sobrado
01cb5e7c07 use spacing consistently to make example shorter and more readable;
improve indentation.
2008-11-06 11:19:24 +00:00
ian
9892f1fc6c More complete example, for e.g., usb devices that need wep/wpa keys.
OK (with typo corrected) sthen@
2008-11-06 09:16:25 +00:00
sobrado
09f93a467a add gilles@ as copyright holder for this file. 2008-11-05 12:49:58 +00:00
sobrado
1f3c2bcfdd add a few missing id tags; there are a bunch of files, and developers
will probably miss this change when working on more important matters,
so it is probably better to sort them now.  there is a risk of losing
the tags if a change needs to be reverted too.

written with excellent advice from jmc@

ok gilles@
2008-11-05 12:14:45 +00:00
sobrado
2322a2e2a4 word better than number here. 2008-11-04 22:17:57 +00:00
jmc
4c3e5831f3 sync to openssl-0.9.8i;
i still haven't folded in x509v3_config.pod, since i'm not entirely
sure what to do with it.
2008-11-03 14:49:23 +00:00
sobrado
6b66fd8d52 use colon before a list. 2008-11-03 09:44:27 +00:00
sobrado
eac153a500 improve description in .Nd macros.
ok reyk@
2008-11-03 09:40:01 +00:00
landry
9b09fbdef5 Fix some errors, okay espie@ 2008-11-03 09:32:14 +00:00
deraadt
e85c643c5d be more clear about what getpwnam failed; ok claudio 2008-11-03 07:02:44 +00:00
jmc
e588a67c38 various minor tweaks, including spelling fixes from Brian Keefer
and Jim Razmus;
2008-11-02 08:19:13 +00:00
sobrado
e1e6256601 write the command description (the .Nd macro) in a more usual way;
improve spacing in the FILES section.

ok gilles@
2008-11-02 00:01:53 +00:00
sobrado
1717fbcd26 remove a superfluous .Pq macro; cites bibliography in a more standard way;
fix the reference to RFC 5321.

ok gilles@
2008-11-01 23:42:44 +00:00
gilles
7536a9ed4a - put back all copyright holders
- add myself as a copyright holder
2008-11-01 21:41:53 +00:00
deraadt
e0056b2905 correct order of includes 2008-11-01 21:41:02 +00:00
gilles
3ef9cbf79d smtpd is a smtp server implementation for OpenBSD. It is a work in progress
which still lacks many features. bringing it in tree will help working on it
more easily.

"at this stage it should go in" henning@, "move ahead" deraadt@
2008-11-01 21:35:28 +00:00
claudio
42fdd12a48 Use correct function names in fatal() messages. 2008-11-01 19:56:27 +00:00
sobrado
9d92e627c8 move the list of options to the right place on the manual page;
while here, remove an obsolete url.

diff tweaked by jmc@; sent upstream to FreeBSD people.

ok jmc@
2008-10-30 22:08:57 +00:00
espie
dd4a0d3b54 Xr OpenBSD::Intro(3p) 2008-10-29 12:35:10 +00:00
espie
4d41a264d3 NewUser and NewGroup are subclasses of NewAuth 2008-10-28 18:10:04 +00:00