]> git.mikk.net Git - smtpsink/log
smtpsink
16 years agoCorrected SSM_RESPONDED macro to match SSM_MSG flag.
chris mikkelson [Fri, 27 Mar 2009 21:54:44 +0000 (16:54 -0500)]
Corrected SSM_RESPONDED macro to match SSM_MSG flag.

16 years agonull-terminate filename after strncpy().
chris mikkelson [Fri, 27 Mar 2009 21:07:48 +0000 (16:07 -0500)]
null-terminate filename after strncpy().

16 years agoAdded rest of hooks for module code.
chris mikkelson [Fri, 27 Mar 2009 21:05:47 +0000 (16:05 -0500)]
Added rest of hooks for module code.

16 years agoMade API for module -- module_api.c now contains respond() and
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.

16 years agoRemoved old 'modules.c' (renamed to 'module.c')
chris mikkelson [Fri, 27 Mar 2009 02:02:05 +0000 (21:02 -0500)]
Removed old 'modules.c' (renamed to 'module.c')

16 years agoFirst cut at module loading system. Still need to make a usable
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.)

16 years agoFix handle_ioreq logic.
chris mikkelson [Fri, 27 Mar 2009 03:44:21 +0000 (22:44 -0500)]
Fix handle_ioreq logic.

16 years agoDaemonization now works, and is the default. Creating threads
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....

16 years agoUse explicit libevent bases. The implicit "current_base"
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().

16 years agoFleshed out options processing in smtpsink.c
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.

16 years agoMoved signal event handlers to their own thread. They work now.
chris mikkelson [Wed, 25 Mar 2009 05:14:39 +0000 (00:14 -0500)]
Moved signal event handlers to their own thread.  They work now.

16 years agosmtpsink.c hardcoded config for testing.
chris mikkelson [Wed, 25 Mar 2009 05:02:57 +0000 (00:02 -0500)]
smtpsink.c hardcoded config for testing.

16 years agoFixed DATA state machine, and quit response.
chris mikkelson [Wed, 25 Mar 2009 04:53:47 +0000 (23:53 -0500)]
Fixed DATA state machine, and quit response.

16 years agoInitialize connection state -- otherwise reclaimed connections
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...

16 years agoInitialize both events, not just one...
chris mikkelson [Wed, 25 Mar 2009 04:00:51 +0000 (23:00 -0500)]
Initialize both events, not just one...

16 years agoFixed listener thread "starting gun" logic.
chris mikkelson [Wed, 25 Mar 2009 03:56:48 +0000 (22:56 -0500)]
Fixed listener thread "starting gun" logic.

16 years agobonehead error pthread_foo return 0 on *success* not error.
chris mikkelson [Wed, 25 Mar 2009 03:29:07 +0000 (22:29 -0500)]
bonehead error pthread_foo return 0 on *success* not error.

16 years agolistener spec will typically be a literal string or argv, which
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.

16 years agoAfter a few scattered changes, it all compiles and links.
chris mikkelson [Wed, 25 Mar 2009 03:06:28 +0000 (22:06 -0500)]
After a few scattered changes, it all compiles and links.

16 years agoHigh performance SMTP daemon, suitable for spamtraps, sinkholes,
chris mikkelson [Wed, 25 Mar 2009 02:36:30 +0000 (21:36 -0500)]
High performance SMTP daemon, suitable for spamtraps, sinkholes,
honeypots, etc.