Re: spamd.conf format

Previous thread: Recommended laptop by James Hozier on Monday, December 21, 2009 - 8:48 pm. (12 messages)

Next thread: [Programme TV] Mardi 22 Décembre 2009 by Télé Loisirs on Tuesday, December 22, 2009 - 12:49 am. (1 message)
From: Nick Berg
Date: Monday, December 21, 2009 - 9:19 pm

From the spamd.conf manual:

   The format of the list of addresses is expected to consist of one network
   block or address per line (optionally followed by a space and text that
   is ignored).  Comment lines beginning with # are ignored.  Network blocks
   may be specified in any of the formats as in the following example:

           # CIDR format
           192.168.20.0/24
           # A start - end range
           192.168.21.0 - 192.168.21.255
           # As a single IP address
           192.168.23.1

Given the condition that an entry followed by a space has the
remaining text ignored, would that not invalidate the start - end
range entry?  Should that not get interpreted as:

           192.168.21.0 #comment starts here

On that note, if a space after an entry denotes the start of ignored
text, will Spamhaus' DROP list http://www.spamhaus.org/drop/drop.lasso
get parsed correctly, or should that get run through sed to strip out
everything after a semicolon?  Its format:

           ; Spamhaus DROP List 12/22/09 - (c) 2009 The Spamhaus Project
           110.44.0.0/20 ; SBL74731
           116.199.128.0/19 ; SBL56563
           119.42.144.0/21 ; SBL70035
           120.143.128.0/21 ; SBL67396
           121.46.64.0/18 ; SBL72673
           128.168.0.0/16 ; SBL51908

Thanks!

Nick

From: Jason McIntyre
Date: Tuesday, December 22, 2009 - 8:01 am

i bet the man page is wrong here. i'm waiting for beck to ok a fix for
it...

jmc

From: Bob Beck
Date: Wednesday, December 23, 2009 - 10:12 am

that first line with the semicolon list will not parse.

Previous thread: Recommended laptop by James Hozier on Monday, December 21, 2009 - 8:48 pm. (12 messages)

Next thread: [Programme TV] Mardi 22 Décembre 2009 by Télé Loisirs on Tuesday, December 22, 2009 - 12:49 am. (1 message)