CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2012/10/14 05:58:23

Modified files:
        usr.sbin/smtpd : control.c lka.c map.c map_db.c map_static.c 
                         parse.y parser.c parser.h smtpctl.8 smtpctl.c 
                         smtpd.c smtpd.h 
        usr.sbin/smtpd/makemap: Makefile 
        usr.sbin/smtpd/smtpd: Makefile 
Added files:
        usr.sbin/smtpd : map_file.c 

Log message:
introduce map_file.c which will deprecate map_stdio.c

The idea is to have a file-backed map but to have smtpd(8) cache the maps
so that it cannot be partially read if edited while mail is received. The
file is read and converted to a static map (map_static.c), changes aren't
visible to smtpd until an explicit: smtpctl update map  which reads file,
builds a new static map and invalidates the former.

partial-read issue discussed with beck@ and halex@
idea to convert internally to a static map by eric@

diff ok eric@ and chl@

Reply via email to