]>
git.mikk.net Git - smtpsink/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
chris mikkelson [Wed, 31 Mar 2010 20:08:30 +0000 (15:08 -0500)]
Correctly compute length of commands terminated by bare newlines.
chris mikkelson [Wed, 31 Mar 2010 04:44:28 +0000 (23:44 -0500)]
Compile module API with -fPIC for modules on FreeBSD/amd64
chris mikkelson [Tue, 30 Mar 2010 21:35:25 +0000 (16:35 -0500)]
Fix privilege dropping.
chris mikkelson [Tue, 30 Mar 2010 21:04:53 +0000 (16:04 -0500)]
Add 'install' target.
chris mikkelson [Tue, 30 Mar 2010 17:01:44 +0000 (12:01 -0500)]
Load modules from central libdir, by default /usr/local/lib/smtpsink/
chris mikkelson [Mon, 15 Mar 2010 20:24:30 +0000 (15:24 -0500)]
Allocate proper number of bytes for module list.
chris mikkelson [Sat, 13 Mar 2010 06:07:40 +0000 (00:07 -0600)]
Fix uninitialized variable 'len' in handle_smtp().
chris mikkelson [Fri, 12 Mar 2010 05:31:37 +0000 (23:31 -0600)]
Call correct module method from module_data()
chris mikkelson [Wed, 24 Feb 2010 02:02:10 +0000 (20:02 -0600)]
(Found change from Nov 2, 2009)
Handle '\n' line termination in addition to "\r\n".
chris mikkelson [Wed, 29 Apr 2009 16:38:16 +0000 (11:38 -0500)]
Use correct type (socklen_t) for addrlen. Quiets compiler warning.
chris mikkelson [Wed, 29 Apr 2009 16:32:59 +0000 (11:32 -0500)]
signal "listen condition" when below maximum concurrency.
chris mikkelson [Mon, 6 Apr 2009 23:25:46 +0000 (18:25 -0500)]
Correct usage from -P <plugin> to -M <module>...
chris mikkelson [Mon, 6 Apr 2009 23:23:31 +0000 (18:23 -0500)]
Pass data as const char * to avoid module cross-talk.
Modules are passed data from a buffer maintained by smtpsink core;
if a module modifies the data, the modifications may be seen by other
modules.
chris mikkelson [Mon, 6 Apr 2009 20:03:20 +0000 (15:03 -0500)]
Merge from master: add .gitignore to tracked files.
chris mikkelson [Mon, 6 Apr 2009 20:01:45 +0000 (15:01 -0500)]
Added 'tags' target to manage ctags.
chris mikkelson [Mon, 6 Apr 2009 19:56:37 +0000 (14:56 -0500)]
Added 'tags' target to maintain ctags.
chris mikkelson [Mon, 6 Apr 2009 19:56:08 +0000 (14:56 -0500)]
Include .gitignore file in repo
chris mikkelson [Fri, 3 Apr 2009 02:06:05 +0000 (21:06 -0500)]
Clean up module return code handling; renamed SSM_MSG to more descriptive
SSM_RESPONSE, and cleaned up macros, adding SSM_PASSED to avoid the explicit
(ret & 0x0F) comparisons.
chris mikkelson [Fri, 3 Apr 2009 01:19:27 +0000 (20:19 -0500)]
Merge branch 'master' into modules
Conflicts:
smtp.c
chris mikkelson [Thu, 2 Apr 2009 04:47:31 +0000 (23:47 -0500)]
Set connection fds to nonblocking, detect blocked writes
(reads *should* not block, since they only occur when the
I/O thread gets a readability event).
chris mikkelson [Thu, 2 Apr 2009 04:10:33 +0000 (23:10 -0500)]
Cleaned up module interface, and provided hooks in more code.
chris mikkelson [Fri, 27 Mar 2009 21:54:44 +0000 (16:54 -0500)]
Corrected SSM_RESPONDED macro to match SSM_MSG flag.
chris mikkelson [Fri, 27 Mar 2009 21:07:48 +0000 (16:07 -0500)]
null-terminate filename after strncpy().
chris mikkelson [Fri, 27 Mar 2009 21:05:47 +0000 (16:05 -0500)]
Added rest of hooks for module code.
chris mikkelson [Fri, 27 Mar 2009 05:01:33 +0000 (00:01 -0500)]
Made API for module -- module_api.c now contains respond() and
accessors for module-private per-connection data.
chris mikkelson [Fri, 27 Mar 2009 02:02:05 +0000 (21:02 -0500)]
Removed old 'modules.c' (renamed to 'module.c')
chris mikkelson [Fri, 27 Mar 2009 01:59:50 +0000 (20:59 -0500)]
First cut at module loading system. Still need to make a usable
API for module developers. (get/set private data, respond, etc.)
chris mikkelson [Fri, 27 Mar 2009 03:44:21 +0000 (22:44 -0500)]
Fix handle_ioreq logic.
chris mikkelson [Fri, 27 Mar 2009 03:20:03 +0000 (22:20 -0500)]
Daemonization now works, and is the default. Creating threads
then forking breaks synchronization, leading to a double-init
of a mutex, and a core dump....
chris mikkelson [Fri, 27 Mar 2009 00:00:09 +0000 (19:00 -0500)]
Use explicit libevent bases. The implicit "current_base"
might cause breakage if a module also calls event_init().
chris mikkelson [Wed, 25 Mar 2009 13:27:27 +0000 (08:27 -0500)]
Fleshed out options processing in smtpsink.c
Signal handling fixed -- event_base is passed to signal
handling thread, subsequent call to event_init() sets
default base for main thread's event calls.
chris mikkelson [Wed, 25 Mar 2009 05:14:39 +0000 (00:14 -0500)]
Moved signal event handlers to their own thread. They work now.
chris mikkelson [Wed, 25 Mar 2009 05:02:57 +0000 (00:02 -0500)]
smtpsink.c hardcoded config for testing.
chris mikkelson [Wed, 25 Mar 2009 04:53:47 +0000 (23:53 -0500)]
Fixed DATA state machine, and quit response.
chris mikkelson [Wed, 25 Mar 2009 04:52:59 +0000 (23:52 -0500)]
Initialize connection state -- otherwise reclaimed connections
were all in state SMTP_CLOSED, and would be closed immediately...
chris mikkelson [Wed, 25 Mar 2009 04:00:51 +0000 (23:00 -0500)]
Initialize both events, not just one...
chris mikkelson [Wed, 25 Mar 2009 03:56:48 +0000 (22:56 -0500)]
Fixed listener thread "starting gun" logic.
chris mikkelson [Wed, 25 Mar 2009 03:29:07 +0000 (22:29 -0500)]
bonehead error pthread_foo return 0 on *success* not error.
chris mikkelson [Wed, 25 Mar 2009 03:11:38 +0000 (22:11 -0500)]
listener spec will typically be a literal string or argv, which
we cannot modify in place. strdup() it.
chris mikkelson [Wed, 25 Mar 2009 03:06:28 +0000 (22:06 -0500)]
After a few scattered changes, it all compiles and links.
chris mikkelson [Wed, 25 Mar 2009 02:36:30 +0000 (21:36 -0500)]
High performance SMTP daemon, suitable for spamtraps, sinkholes,
honeypots, etc.