Hi,
Actually I prefer the first diff as the "additionnal netblocks may be defined"
is implicit due to the rule expansion.
accept from { 192.168.1.1, 192.168.2.0/24 } [...]
This is akin to having two rules and is already described in the man page.
The first version of the diff will be committed tonight, with a minor change
as prompted by jmc@
Gilles
On Mon, Oct 03, 2011 at 05:50:56PM +1030, David Walker wrote:
> Hi Gilles.
>
> On 03/10/2011, Gilles Chehade <[email protected]> wrote:
> > Hi,
> >
> > Will commit it tomorrow evening when I'm home,
> > thansk !
>
> Thanks, except it was lame ...
>
> ... made from the specified network specified in CIDR notation.
> ......................... ^^^^^^^^^^ ............ ^^^^^^^^^
> .........................
>
> Number two ...
>
> --- smtpd.conf.5 Mon Oct 3 16:30:08 2011
> +++ diffs/smtpd.conf.5 Mon Oct 3 17:45:06 2011
> @@ -217,8 +217,10 @@ The rule matches only locally originating connections.
> This is the default,
> and may be omitted.
> .It Ic from Ar network
> -The rule matches if the connection is made from the specified
> -.Ar network .
> +The rule matches if the connection is made from
> +.Ar network ,
> +written in CIDR notation.
> +Additional netblocks may be defined, separated by whitespace.
> .El
> .Pp
> Next comes the selection based on the domain the message is sent to:
>
> Hopefully I understood this correctly:
>
> > accept from 192.168.0.0/16 [...]
>
> > Gilles
--
Gilles Chehade
http://www.poolp.org/ http://u.poolp.org/~gilles/