Displaying 1 50 of 6,801 commits (0.074s)

OpenBSD — usr.sbin/smtpd util.c smtpd.h

remove unused iobuf helpers
Delta File
+1 -26 usr.sbin/smtpd/util.c
+1 -4 usr.sbin/smtpd/smtpd.h
+2 -30 2 files

OpenBSD — usr.sbin/smtpd smtp_session.c mda.c

hide internal io flags and rename IO_PAUSE_{IN,OUT} to IO_{IN,OUT}

ok gilles@ sunil@

OpenBSD — usr.sbin/smtpd smtp_session.c mta_session.c

make struct io opaque:

- move struct io definition to ioev.c
- replace io_init/io_clear with io_new/io_free
- allocate an iobuf for each new io internally
- use struct io pointer in the rest of the code
- remove remaining uses of iobuf_*

ok gilles@ sunil@
Delta File
+61 -68 usr.sbin/smtpd/smtp_session.c
+36 -37 usr.sbin/smtpd/mta_session.c
+32 -35 usr.sbin/smtpd/bounce.c
+41 -6 usr.sbin/smtpd/ioev.c
+18 -20 usr.sbin/smtpd/mda.c
+13 -16 usr.sbin/smtpd/filter.c
+7 -20 2 files not shown
+208 -202 8 files

OpenBSD — usr.sbin/smtpd ioev.c

normalize iobuf before reading into it.

fix regression introduced in recent cleanup

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

OpenBSD — usr.sbin/smtpd mta_session.c

use a specific event to defer the mta connection instead of abusing
the io internal event.

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

OpenBSD — usr.sbin/smtpd parse.y smtpd.h

assign an id to each rule in the ruleset, first step towards an MTA layer
and scheduler simplification

ok eric@

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

add an io_paused() function.

ok gilles@

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

add an io_fileno() accessor

ok gilles@

OpenBSD — usr.sbin/smtpd smtp_session.c mta_session.c

add an io_ssl() accessor

ok gilles@

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

add an io_error() accessor to avoid dereferencing the io struct directly.

ok gilles@

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

reset the io event when data is queued.
remove all calls to io_reload() which are now unnecessary.

ok gilles@ sunil@

OpenBSD — usr.sbin/smtpd mta_session.c smtp_session.c

Normalize the io input buffer internally when reinstalling the io event, so
the caller doesn't have to bother with this.

ok gilles@ sunil@

OpenBSD — usr.sbin/smtpd bounce.c smtp_session.c

replace calls to iobuf_*() functions with the corresponding io_*() wrappers.

ok sunil@ gilles@

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

add dedicated functions to set fd and callback on a struct io.
simplify io_init() prototype.

ok sunil@ gilles@

OpenBSD — usr.sbin/smtpd smtp_session.c mta_session.c

fix regression introduced in previous commit

spotted by Heiko Zimmermann

ok gilles@

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

Add io api functions for dealing with buffered data, as wrapper around
their iobuf counterparts.

ok gilles@ sunil@

OpenBSD — usr.sbin/smtpd smtp_session.c mta_session.c

remove IO_TLSVERIFIED which is not a io event, and inline necessary code
where the callback functions are called for this event.

ok gilles@

OpenBSD — usr.sbin/smtpd smtp_session.c mta_session.c

pass the user pointer as parameter to the io callback instead of having
the user dereference the io structure.

ok millert@ gilles@

OpenBSD — usr.sbin/smtpd smtpd.c

add -F to usage() too;
Delta File
+2 -2 usr.sbin/smtpd/smtpd.c
+2 -2 1 file

OpenBSD — usr.sbin/smtpd smtpd.8

document -F which somehow escaped documentation
Delta File
+9 -3 usr.sbin/smtpd/smtpd.8
+9 -3 1 file

OpenBSD — usr.sbin/smtpd smtp_session.c

Remove the "phase" state variable from the smtp session.  Simply check
"helo[0]" to see if an HELO/EHLO command was received (reset after
starttls), and "tx" to know if we are in a transaction.

ok  gilles@ millert@
Delta File
+9 -26 usr.sbin/smtpd/smtp_session.c
+9 -26 1 file

OpenBSD — usr.sbin/smtpd rfc2822.c smtp_session.c

A logic issue in smtpd's header parsing can cause SMTP sessions to hang.

diff by eric@, ok me

OpenBSD — usr.sbin/smtpd smtp_session.c

fix smtp session logic bug that can lead to a server crash.
Delta File
+3 -1 usr.sbin/smtpd/smtp_session.c
+3 -1 1 file

FreeBSD Ports — head/mail/postfix distinfo Makefile

- update to 3.1.3

Changelog:
 20160911
  Bugfix (introduced: Postfix 3.0): the SMTP daemon did not
  reset a previous session's command counts before rejecting
  a client that exceeds request or concurrency rates. File:
  smtpd/smtpd.c.

 20160917
  Bugfix (introduced: Postfix 3.0): the unionmap did not
  propagate table lookup errors.  Based on patch by Roel van
  Meer.  Files: util/dict_union.c, util/dict_union_test.*.

 20160925
  Workaround (problem introduced: Postfix 2.11): to avoid
  false "not found" errors with MySQL map queries that contain
  UTF8-encoded text, specify "option_group = client" in Postfix
  MySQL configuration files.  This will be the default setting
  with Postfix 3.2 and later.

pkgsrc — . pkglocate Makefile, archivers Makefile

Welcome to the pkgsrc-2016Q3 branch!

FreeBSD Ports — head/mail/postfix-current distinfo Makefile

- update to 3.2-20160924

Changelog:
20160918
 after rejected SMTP commands.  As before, the SMTP server
 does not forward SASL login information to other Postfix
 subsystems, and it does not receive SASL login information
 in XFORWARD commands. File/smtpd/smtpd.c.

FreeBSD Ports — head/mail/postfix-current distinfo Makefile

- update to 3.2-20160917

Changelog:
20160908
        Documentation: add a pointer to hosts(5) and services(5)
        for symbolic host and port syntax. File: proto/master.

20160911
        Bugfix (introduced: Postfix 3.0): the SMTP daemon did not
        reset a previous session's command counts before rejecting
        a client that exceeds request or concurrency rates. File:
        smtpd/smtpd.c.

20160912
        Feature: preserve the new file mtimes when installing
        Postfix.  Ond_ej Lyson_k. Wietse made this conditional on
        the presence of a new -keep-new-mtime flag. File: postfix-install.

20160917
        Bugfix: unionmap did not propagate table lookup errors.
        Based on patch by Roel van Meer. Files: util/dict_union.c,
        util/dict_union_test.*.

        Cleanup: added unit test for pipemap. Files: util/dict_pipe.c,
        util/dict_pipe_test.*.

    [4 lines not shown]

OpenBSD — usr.sbin/smtpd mproc.c

remove useless #ifndef

ok sunil@
Delta File
+1 -5 usr.sbin/smtpd/mproc.c
+1 -5 1 file

OpenBSD — usr.sbin/smtpd parse.y

listener configuration cleanup:

- have all listener creation functions take listen_opts as param,
  and call config_listener() when done, which adds the listener(s)
  to the current config list of listeners.
- make the fallback chain between interface(), host_v4() host_v6()
  and host_dns() obvious when creating an if_listener.
- fix a bug where the specified family was ignored if the listener
  is given as a hostname.

ok gilles@ sunil@
Delta File
+53 -64 usr.sbin/smtpd/parse.y
+53 -64 1 file

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

remove documentation for filters, we'll document when it's ready
Delta File
+2 -24 usr.sbin/smtpd/smtpd.conf.5
+2 -24 1 file

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

Streamline the daemon shutdown sequence.

Only the parent process handles SIGTERM and SIGINT.  Upon receiving one
of those, it closes all imsg sockets and waitpid() for the children. It
fatal()s if one of the sockets is closed unexpectedly.  Other processes
exit() "normally" when one of the imsg sockets is closed.

ok gilles@ sunil@
Delta File
+20 -24 usr.sbin/smtpd/smtpd.c
+10 -22 usr.sbin/smtpd/control.c
+7 -22 usr.sbin/smtpd/pony.c
+7 -22 usr.sbin/smtpd/queue.c
+7 -22 usr.sbin/smtpd/scheduler.c
+7 -21 usr.sbin/smtpd/ca.c
+14 -21 2 files not shown
+72 -154 8 files

OpenBSD — usr.sbin/smtpd smtpd.c

use closefrom() before reexec to make sure the new process only gets
the imsg socket.

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

OpenBSD — usr.sbin/smtpd pony.c control.c

The smtpd processes are not expected to ever leave their event loop.
So stop pretending that the *_shutdown() functions could ever be called
in this context, and just fatal() if event_dispatch() returns.

ok gilles@ sunil@ giovanni@

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

Remove the "smtpctl stop" command.
The daemon is stopped with kill(1).

ok gilles@

OpenBSD — usr.sbin/smtpd smtp_session.c mta.c

log IP/hostname for all SMTP operations.
patch from Pavel Korovin, thanks
ok gilles@

OpenBSD — usr.sbin/smtpd esc.c

remove dead code
Delta File
+1 -25 usr.sbin/smtpd/esc.c
+1 -25 1 file

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

get rid of the type-checking system on internal messages.
bump all imsg protocol versions since message format changed.

ok gilles@ sunil@

OpenBSD — usr.sbin/smtpd lka.c

in lka specifically, use initgroups() so that users may share files between
smtpd and another daemon by adding supplementary groups

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

OpenBSD — usr.sbin/smtpd crypto.c

switch from EVP_{En,De}cryptInit & EVP_{En,De}cryptFinal to their _ex
counterparts, as suggested by bcook

ok bcook@, sunil@, eric@
Delta File
+9 -11 usr.sbin/smtpd/crypto.c
+9 -11 1 file

OpenBSD — usr.sbin/smtpd mproc.c

use imsg_read_nofd() implementation from bgpd.
let the caller handle EAGAIN.

ok gilles@
Delta File
+6 -9 usr.sbin/smtpd/mproc.c
+6 -9 1 file

OpenBSD — usr.sbin/smtpd ssl.c

turn server preference for ciphers on by default

ok jsing@
Delta File
+2 -1 usr.sbin/smtpd/ssl.c
+2 -1 1 file

OpenBSD — usr.sbin/smtpd mproc.c mda.c

zap dead code

ok gilles@ sunil@
Delta File
+1 -9 usr.sbin/smtpd/mproc.c
+1 -6 usr.sbin/smtpd/mda.c
+2 -15 2 files

OpenBSD — usr.sbin/smtpd mproc.c

Get rid of the custom msgbuf_write2() function adapted from libutil.
It is not necessary now that the profiling code is gone.

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

OpenBSD — usr.sbin/smtpd config.c control.c

remove noop function

ok sunil@

OpenBSD — usr.sbin/smtpd config.c mproc.c

get rid of the imsg buffer usage profiling code.

ok gilles@ jung@ sunil@

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

Remove dead code. queue_flow_control() has never been used and is
probably a bad idea.

ok gilles@

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

no need for Xo/Xc here, plus minor tweak;
Delta File
+3 -5 usr.sbin/smtpd/smtpd.conf.5
+3 -5 1 file

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

introduce "authenticated" parameter so rules may apply to authenticated
sessions specifically

ok eric@, sunil@, jung@

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

word fix;
Delta File
+2 -2 usr.sbin/smtpd/smtpd.conf.5
+2 -2 1 file

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

allow overriding the subaddressing delimiter with subaddressing-delimiter
keyword, the default is still +

ok eric@, sunil@