Rodre Ghorashi-Zadeh wrote:
An access formatted table does not care which type as long as it returns
values that are expected.
Any supported table type is valid for access tables.
man 5 cidr_table for details as what is expected on the left hand side.
access(5) values are expected on the right hand side.
I have confirmed that my postfix version: postfix-2.3.3-2.1.el5_2 supports the
CIDR tables using postconf -m
I checked man 5 cidr_table and it only seems to take "OK" or "REJECT" but
perhaps this is not a comprehesive list? The error I was getting was:
postfix/smtpd[1230]: fatal: unexpected command-line argument:
cidr:/etc/postfix/smarthost.cidr
You used a space in the command line. Don't do that.
my /etc/postfix/smarthost.cidr looks like this:
208.65.144.0/21 FILTER smtp:mail.shawcable.com
and the relevent portion of my master.cf looks like this:
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=check_recipient_mx_access
cidr:/etc/postfix/smarthost.cidr
The above line must not have any spaces in it. Replace the
space between "...mx_access" and "cidr:..." with a "," comma,
just like in the example you were given before.
--
Noel Jones