OpenBSD CVS

CVS log for src/usr.sbin/smtpd/Attic/mfa_session.c


[BACK] Up to [local] / src / usr.sbin / smtpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23, Tue May 20 08:09:04 2014 UTC (10 years ago) by eric
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +1 -1 lines
FILE REMOVED

remove dead files

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 19 13:18:14 2014 UTC (10 years, 1 month ago) by gilles
Branch: MAIN
Changes since 1.21: +40 -18 lines
Diff to previous 1.21 (colored)

(void) cast some strlcat() calls that cannot truncate
add a few fatalx() calls at places where it shouldn't fail, we'll assess
which one may be relaxed later as this code is not finished nor plugged
yet.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 4 16:10:42 2014 UTC (10 years, 2 months ago) by eric
Branch: MAIN
Changes since 1.20: +10 -10 lines
Diff to previous 1.20 (colored)

Merge the mda, mta and smtp processes into a single unprivileged
process managing message reception, delivery and transfer.  Mostly
mechanical, but very intrusive as it required to rewamp all IMSG to
fix ambiguities.

with and ok gilles@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 27 11:01:47 2013 UTC (10 years, 7 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.19: +238 -113 lines
Diff to previous 1.19 (colored)

Make the filter infrastructure move forward.
This is a work-in-progress and it's not supposed to be useable for now.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 26 12:27:59 2013 UTC (10 years, 7 months ago) by eric
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

%i -> %d in format strings

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 19 16:02:00 2013 UTC (10 years, 10 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.17: +37 -28 lines
Diff to previous 1.17 (colored)

Move the filter infrastructure forward.

Revision 1.17 / (download) - annotate - [select for diffs], Fri May 24 17:03:14 2013 UTC (11 years ago) by eric
Branch: MAIN
Changes since 1.16: +16 -10 lines
Diff to previous 1.16 (colored)

sync with OpenSMTPD 5.3.2

ok gilles@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 12 18:22:49 2013 UTC (11 years, 1 month ago) by eric
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

replace MAX_LINE_SIZE and SMTP_LINE_MAX with SMTPD_MAXLINESIZE for
consistency and clarity.  Remove useless and confusing extra byte in
a few arrays based on this define.

ok gilles@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Mar 26 13:30:29 2013 UTC (11 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Include inttypes.h to get PRIx64; ok gilles@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 31 18:34:43 2013 UTC (11 years, 4 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

assorted fixes spotted by Coverity.
some log message updates.

ok gilles@

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 26 09:37:23 2013 UTC (11 years, 4 months ago) by gilles
Branch: MAIN
Changes since 1.12: +561 -212 lines
Diff to previous 1.12 (colored)

Sync with our smtpd repo:

* first bricks of ldap and sqlite support (not finished but both working)
* new table API to replace map API, all lookups are done through tables
* improved handling of temporary errors throughout the daemon
* improved scheduler and mta logic: connection reuse, optimizes batches
* improved queue: more tolerant to admin errors, new layout, less disk-IO
* improved memory usage under high load
* SSL certs/keys isolated to lookup process to avoid facing network
* VIRTUAL support improved, fully virtual setups possible now
* runtime tracing of processes through smtpctl trace
* ssl_privsep.c sync-ed with relayd
* ssl.c no longer contains smtpd specific interfaces
* smtpd-specific ssl bits moved to ssl_smtpd.c
* update mail address in copyright

FLUSH YOUR QUEUE. FLUSH YOUR QUEUE. FLUSH YOUR QUEUE. FLUSH YOUR QUEUE.

smtpd.conf(5) simplified, it will require adaptations

ok eric@

Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 23 13:54:12 2012 UTC (11 years, 6 months ago) by eric
Branch: MAIN
Changes since 1.11: +20 -13 lines
Diff to previous 1.11 (colored)

knf

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 11 21:51:37 2012 UTC (11 years, 7 months ago) by gilles
Branch: MAIN
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

- no need to set imsg_type to IMSG_MFA_CLOSE when we're not going to answer
  to SMTP ..

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 29 11:02:41 2012 UTC (11 years, 8 months ago) by eric
Branch: MAIN
Changes since 1.9: +22 -78 lines
Diff to previous 1.9 (colored)

some mfa_session cleanups.

- move mfa_session() prototype to smtpd.h
- make mfa session use a tree
- make static functions static
- merge mfa_session_init() into mfa_session()

ok chl@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 11 12:47:36 2012 UTC (11 years, 8 months ago) by eric
Branch: MAIN
Changes since 1.8: +7 -7 lines
Diff to previous 1.8 (colored)

log the process name and place when calling fatal().

ok gilles@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 19 14:16:58 2012 UTC (11 years, 9 months ago) by chl
Branch: MAIN
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

coding style: replace all occurences of u_int* with uint*

ok eric@

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 18 13:41:54 2012 UTC (12 years, 4 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.6: +43 -4 lines
Diff to previous 1.6 (colored)

Add new filters callbacks for:
- network events (CONNECT/CLOSE)
- commands (QUIT/RSET)

ok gilles@ eric@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 28 22:13:27 2011 UTC (12 years, 6 months ago) by chl
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

use STATUS_* filter codes, instead of -1/0/1 hard coded values

ok gilles@

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 23 09:30:07 2011 UTC (12 years, 7 months ago) by gilles
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

fsqueue no longer stores envelopes by dumping the structure, instead use a
couple of load/dump functions to convert to and from a human readable fmt.
while at it kill struct delivery and merge back its fields to the envelope.

this basically means we shouldn't require users to flush their queues every
time we make a change to struct envelope.

work is not done, but we're at a better state than the binary fsqueue so
we'll improve it in-tree.

has been running on my own box for the last 12 hours or so
ok eric@, chl@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 1 09:42:15 2011 UTC (12 years, 9 months ago) by chl
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

- if no filter is setup, do not overwrite the data line with filtmsg buffer
- remove annoying debug lines
- disable back filters at smtpd.conf level

committing on behalf of gilles@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 31 18:56:30 2011 UTC (12 years, 9 months ago) by gilles
Branch: MAIN
Changes since 1.2: +15 -2 lines
Diff to previous 1.2 (colored)

add support for per-line DATA callbacks, this allows filters to take their
decisions *while* the message is being received by the client.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 28 00:03:24 2011 UTC (12 years, 9 months ago) by gilles
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

fix pasto in strlcpy() truncation test

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 27 22:32:41 2011 UTC (12 years, 9 months ago) by gilles
Branch: MAIN

initial support for a session-time filtering API

currently only HELO/EHLO, MAIL, RCPT are supported, however ... I have
voluntarily disabled filters at smtpd.conf level so people don't play with
it until the API has stabilized a bit

discussed with several people in private, no one opposed the feature

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.