Displaying 1 50 of 5,838 commits (0.010s)

OpenBSD — usr.sbin/smtpd smtp.c

remove some noop leftover code from an earlier cleanup

diff from Peter Bisroev <peter at int19h.net>
Delta File
+6 -13 usr.sbin/smtpd/smtp.c
+6 -13 1 file

OpenBSD — usr.sbin/smtpd makemap.8 makemap.c

remove support for 'dbm' which is really 'recno' from our makemap, it can't
work because it requires dbopen() to be the call that creates the db, while
we want mkstemp() to create an empty db ourselves.

it has never worked, no one could ever create a recno db with our makemap &
no one actually noticed so drop it.

ok millert@, sunil@, jung@

OpenBSD — usr.sbin/smtpd smtpctl.c makemap.c

Cleanup getopt(3) mis-use in sendmail compat code.

Avoid multiple getopt(3) evaluations without optreset set and
unspecified behavior of optind = 0 as per POSIX. Instead, iterate
over argv the first time for classification. Fixes -portable without
any divergence from -current, and all newaliases opts are handled
in one place.

Looks good to me millert@
Ok gilles@ jung@ eric@
Delta File
+41 -66 usr.sbin/smtpd/smtpctl.c
+19 -5 usr.sbin/smtpd/makemap.c
+60 -71 2 files

OpenBSD — usr.sbin/smtpd makemap.c

when creating a db map, we use a temporary file to work on and atomically
move to destination when done. this causes dbopen() to be called with an
empty file which happens to... not work with other db libraries.

adding O_TRUNC is noop for us, fixes the issue for other libraries and
lets us reduce delta between us and portable.

ok sunil@, ok eric@
Delta File
+2 -2 usr.sbin/smtpd/makemap.c
+2 -2 1 file

OpenBSD — usr.sbin/smtpd smtpd-api.h

add PROC_QUEUE_MESSAGE_UNCORRUPT to smtpd-api.h, needed by privsep queues
Delta File
+2 -1 usr.sbin/smtpd/smtpd-api.h
+2 -1 1 file

OpenBSD — usr.sbin/smtpd smtpctl.c

rename variable sun to s_un to ease portability

diff from Freddy DISSAUX, ok gilles@, jung@, sunil@, millert@
Delta File
+6 -6 usr.sbin/smtpd/smtpctl.c
+6 -6 1 file

OpenBSD — usr.sbin/smtpd smtpd.c

use SMTPD_NAME define

ok gilles
Delta File
+2 -2 usr.sbin/smtpd/smtpd.c
+2 -2 1 file

OpenBSD — usr.sbin/smtpd queue_backend.c

When deleting a message, remove associated envelopes from the cache,
if any (it happens when a message transaction is cancelled).

ok gilles@ sunil@
Delta File
+14 -1 usr.sbin/smtpd/queue_backend.c
+14 -1 1 file

OpenBSD — usr.sbin/smtpd filter.c

When a filter rejects a message content, report immediatly to the
smtp session. Simplify code while here.

ok gilles@ jung@
Delta File
+14 -25 usr.sbin/smtpd/filter.c
+14 -25 1 file

OpenBSD — usr.sbin/smtpd enqueue.c smtpctl.c

NULL initialize two file pointers to make it more obvious when reading that
they can't end up uninitialized after the mkstemp/fdopen dance

OpenBSD — usr.sbin/smtpd bounce.c

Use "esc_class" to classify bounce type instead of "errorline" as
we no longer prepend status code to "errorline". Fixes mismatch
between DSN's subject line and its content.

Ok jung@ gilles@ millert@
Delta File
+9 -5 usr.sbin/smtpd/bounce.c
+9 -5 1 file

OpenBSD — usr.sbin/smtpd ca.c

in RSA privsep engine, do not provide methods for rsa_sign / rsa_verify,
they are unused in OpenSMTPD and lead to crashes in -portable when we're
linked to OpenSSL starting with 1.0.2f

ok reyk@
Delta File
+3 -25 usr.sbin/smtpd/ca.c
+3 -25 1 file

OpenBSD — etc/rc.d ripd relayd, usr.sbin/bgpd bgpd.c

Remove setproctitle() for the parent process. Because rc.d(8) uses process
titles (including flags) to distinguish between daemons, this makes it
possible to manage multiple copies of a daemon using the normal infrastructure
by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
Delta File
+1 -4 usr.sbin/ospfd/ospfd.c
+1 -4 usr.sbin/ldpd/ldpd.c
+1 -4 usr.sbin/dvmrpd/dvmrpd.c
+1 -4 usr.sbin/ospf6d/ospf6d.c
+1 -4 usr.sbin/ripd/ripd.c
+1 -3 etc/rc.d/ripd
+15 -40 15 files not shown
+21 -63 21 files

OpenBSD — usr.sbin/smtpd mda.c

Check imsg data size before use.

Ok eric@ millert@
Delta File
+3 -1 usr.sbin/smtpd/mda.c
+3 -1 1 file

OpenBSD — usr.sbin/smtpd filter.c

remove unused field
Delta File
+1 -4 usr.sbin/smtpd/filter.c
+1 -4 1 file

OpenBSD — usr.sbin/smtpd filter.c

Simplify code: hasrun is confusing and useless.  There is no way
filter_drain_query() can be called when the ->current filter is
still running the query. Just make sure we move forward after
having received the response from the current filter.

ok gilles@
Delta File
+3 -11 usr.sbin/smtpd/filter.c
+3 -11 1 file

OpenBSD — usr.sbin/smtpd filter.c

Remove the query queueing mechanism. It's useless since pipelining is
not supported anyway.

ok sunil@ gilles@
Delta File
+2 -29 usr.sbin/smtpd/filter.c
+2 -29 1 file

OpenBSD — usr.sbin/smtpd filter.c

Simplify the query-chain code now that events are sent through a dedicated loop.

ok gilles@ jung@
Delta File
+66 -118 usr.sbin/smtpd/filter.c
+66 -118 1 file

OpenBSD — usr.sbin/smtpd queue.c smtpd.c

Check imsg data length before use.

Ok jung@ gilles@ eric@

OpenBSD — usr.sbin/smtpd filter.c

send events to filters in a simple loop, rather than using the
query-chaining machinery.

ok jung@ gilles@
Delta File
+23 -4 usr.sbin/smtpd/filter.c
+23 -4 1 file

OpenBSD — usr.sbin/smtpd lka.c

in lka process, revoke proc/exec pledges after privsep-ed table backends
are forked at startup

i thought i had committed this already, diff has been okayed several weeks
ago...

ok jung@, ok millert@, ok sunil@
Delta File
+9 -1 usr.sbin/smtpd/lka.c
+9 -1 1 file

OpenBSD — usr.sbin/smtpd table_static.c

add a log_warn() so that when smtpd fails to start due to a problem reading
the configuration file of a table, user actually understands what happens

diff by Alexis Vachette, ok jung@
Delta File
+5 -4 usr.sbin/smtpd/table_static.c
+5 -4 1 file

OpenBSD — usr.sbin/smtpd smtpd.conf.5

another round of tiny wording tweaks and unifications

all from tj

ok millert
Delta File
+7 -7 usr.sbin/smtpd/smtpd.conf.5
+7 -7 1 file

OpenBSD — usr.sbin/smtpd smtpd.conf.5

minor tweaks: remove comma, remove superflous plural s, add the word "file"
after ~/.forward, and change builtin to built-in

from tj

ok millert@
Delta File
+6 -6 usr.sbin/smtpd/smtpd.conf.5
+6 -6 1 file

OpenBSD — usr.sbin/smtpd smtpd.conf.5

minor tweaks: add single quote to @ char, add .Ic markup to forward-only,
fix end of list marker, and add an 'are'

ok millert (to an earlier version without end of list fix and without 'are')
Delta File
+6 -5 usr.sbin/smtpd/smtpd.conf.5
+6 -5 1 file

OpenBSD — usr.sbin/smtpd smtpd.c

Load pki keys before daemon(3). Keys with passphrase require access
to stdin.

Ok millert@ jung@ gilles@
Delta File
+2 -5 usr.sbin/smtpd/smtpd.c
+2 -5 1 file

OpenBSD — usr.sbin/smtpd parse.y

remove leftovers of (gone) curve option

ok gilles
Delta File
+2 -3 usr.sbin/smtpd/parse.y
+2 -3 1 file

OpenBSD — usr.sbin/smtpd smtpd.conf.5

unify and add some more smtpd(8) references

ok sunil gilles eric
Delta File
+24 -16 usr.sbin/smtpd/smtpd.conf.5
+24 -16 1 file

OpenBSD — usr.sbin/smtpd mta.c

Check whether a string from imsg is empty by dereferencing the char*
rather than using strlen. That way we don't have to walk through the
entire string.

ok sunnil@
Delta File
+3 -3 usr.sbin/smtpd/mta.c
+3 -3 1 file

OpenBSD — usr.sbin/smtpd util.c parse.y

Let smtpd start on machines without a FQDN as hostname.

Ok millert@ gilles@ jung@

OpenBSD — usr.sbin/smtpd/smtpd Makefile

do not install filter_api.3 until the names are changed, to avoid namespace
pollution, this api should really be renamed with a prefix smtpd_*

prodded by deraadt
Delta File
+2 -2 usr.sbin/smtpd/smtpd/Makefile
+2 -2 1 file

OpenBSD — usr.sbin/smtpd smtp.c

adjust a debug message to use decimal instead of hex

ok gilles millert
Delta File
+2 -2 usr.sbin/smtpd/smtp.c
+2 -2 1 file

OpenBSD — lib/libedit editrc.5, libexec/getty gettytab.5

Zap extraneous SYNOPSIS sections.

The gettytab(5) and termcap(5) get FILES, others don't need anything.

With input from & okay schwarze@

OpenBSD — usr.sbin/smtpd mda.c

Add missing space in "Delivered-to:%s\n" header.

OK sunil@
Delta File
+3 -3 usr.sbin/smtpd/mda.c
+3 -3 1 file

OpenBSD — usr.sbin/smtpd lka.c

add proc and exec to pledge in lka, required to run external add-ons outside of
the daemon memory space, makes -extras tables work again

reported by Tim van der Molen on misc at opensmtpd.org

verified together with sunil

ok gilles
Delta File
+2 -2 usr.sbin/smtpd/lka.c
+2 -2 1 file

OpenBSD — usr.sbin/smtpd table.c smtpd.c

switch to /usr/local/libexec when looking for -extras and drop loop iterating
paths

this effectively reverts table.c r1.21 which was mainly introduced for a smooth
transition in -current

ok gilles

OpenBSD — usr.sbin/smtpd smtpd.conf.5

fix wording which becomes confusing now that filters is a real thing
diff from Marcus MERIGHI <mcmer-openbsd at tor.at>

ok jmc@

while at it, fixed an example
Delta File
+8 -8 usr.sbin/smtpd/smtpd.conf.5
+8 -8 1 file

OpenBSD — usr.sbin/smtpd pony.c

add grp.h for setgroups, not necessarily required on OpenBSD but reduces diff
to -portable

ok gilles
Delta File
+2 -1 usr.sbin/smtpd/pony.c
+2 -1 1 file

OpenBSD — usr.sbin/smtpd queue_fs.c

d_namlen is not portable, there is no reason to keep a delta with -portable and
it is not even "optimizing" things, this is a startup loop which will not bring
any benefit at runtime. thus, change it and reduce diff to -portable.

ok gilles sunil
Delta File
+3 -2 usr.sbin/smtpd/queue_fs.c
+3 -2 1 file

OpenBSD — usr.sbin/smtpd enqueue.c

Change send_line() return value to be 1/0 like get_responses() and
check the return value in the callers.  The inital value of inheaders
has been changed to improve readability.  OK gilles@ jung@
Delta File
+57 -43 usr.sbin/smtpd/enqueue.c
+57 -43 1 file

OpenBSD — usr.sbin/smtpd parse.y lka_session.c

remove spaces after '!'

no binary change

ok millert

OpenBSD — usr.sbin/smtpd delivery_filename.c

fprintf() may not set the error indicator on failure so just use
fputs() + putc() to write the string and trailing newline.  OK jung@

OpenBSD — usr.sbin/smtpd/smtpctl Makefile, usr.sbin/smtpd/smtpd Makefile

build smtpd and smtpctl with -Werror-implicit-function-declaration
ok tedu@

OpenBSD — etc/rc.d mountd smtpd

Remove blank line for consistency with other rc.d scripts; no change in
behavior.
Delta File
+1 -2 etc/rc.d/mountd
+1 -2 etc/rc.d/smtpd
+2 -4 2 files

OpenBSD — share/man/man8 starttls.8, usr.bin/cvs cvs.1

more e-mail -> email

OpenBSD — usr.sbin/smtpd smtpctl.c

fix sendmail options parsing
diff from Serguey Parkhomovsky <sergueyparkhomovsky at gmail.com>
Delta File
+9 -4 usr.sbin/smtpd/smtpctl.c
+9 -4 1 file

OpenBSD — usr.sbin/smtpd smtpd.conf.5

update examples
diff from Serguey Parkhomovsky <sergueyparkhomovsky at gmail.com>

ok sunil@
Delta File
+6 -7 usr.sbin/smtpd/smtpd.conf.5
+6 -7 1 file

OpenBSD — usr.sbin/smtpd newaliases.8

make it clear this needs to be run only for db files
since smtpd has switched to using plain files by default;

ok sunil gilles
Delta File
+6 -4 usr.sbin/smtpd/newaliases.8
+6 -4 1 file

OpenBSD — usr.sbin/smtpd smtpctl.c

Kill a trailing whitespace that snuck in with previous commit.
Delta File
+2 -2 usr.sbin/smtpd/smtpctl.c
+2 -2 1 file

OpenBSD — usr.sbin/smtpd delivery_mbox.c ioev.c

Wrap long lines.

Ok gilles@ jung@