Koozali.org: home of the SME Server

smtpd_check_rules

Tom Carroll

smtpd_check_rules
« on: April 18, 2003, 07:06:51 PM »
After working with RBL's in my smtpd_check_rules configuration I am getting an error telling me there is a bad field count on line 33.  I cannot find line 33 in my configuration file.

I have counting all lines, including hashed lines, while also count all lines except hash lines (counted blank lines), and then only counted non-hashed and non-blank lines.  Nothing comes out as line 33.

Can anyone tell me how to determine what line is line 33 that is being reported in the mail log?

Thanks!

Tom Carroll

Nathan Fowler

Re: smtpd_check_rules
« Reply #1 on: April 18, 2003, 10:44:40 PM »
Tom, this error means that there is an invalid number of fields on line 33.  Double check your rules and ensure you have the correct number of fields per line.  See the Juniper firewall toolkit documentation for the syntax of smtp_check_rules.  Make sure none of the lines are wrapped.

Tom Carroll

Re: smtpd_check_rules
« Reply #2 on: April 19, 2003, 02:40:47 AM »
Thanks Nathan.  As it turns out I used WinZip to untar a file with the template fragments you sent me.  I think it put some DOS/Windows formatting in the file (CR/LFs).

I had to open the files in Pico and write them back out to disk.  That fixed the problem.

Tom