On Mon, Oct 19, 2009 at 02:48:13PM -0600, Gilles Chehade wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   gil...@cvs.openbsd.org  2009/10/19 14:48:13
> 
> Modified files:
>       usr.sbin/smtpd : lka.c parse.y ruleset.c smtp_session.c smtpd.h 
> 
> Log message:
> currently, smtpd is capable of having multiple listeners with different
> options but they will all share the same ruleset. this means that there
> is no way to have a rule apply to a session established on one listener
> but not applied on another.
> 
> this commit brings initial support for tagging listeners and having the
> rules able to match these specific listeners. The following will define
> a rule which will only apply to interfaces tagged as "mynet":
> 
> listen on lo0                 # implicit lo0 tag
> listen on fxp0 tag mynet
> listen on fxp1 tag mynet
> 
> accept on mynet for domain "example.org" deliver to mbox
> 

sorry, forgot to mention idea was discussed with and ok jacekm@,
this commit is based on initial diff + idea from jacekm@

Reply via email to