Hi all,
I think I may have found something broken in the postfix package.

I am using the retail version of SuSE 10.0, postfix-2.2.5-5,
but I suspect the opensuse 10.0 behaves the same.

I think cidr maps may be broken. There is a shell transcript
below that illustrates it.

The same commands work just fine on the SuSE 9.3 box that
I have been using up to now.

I had a quick look at the src rpm. There were a couple of
patches in there called dynamic_maps.patch and dynamic_maps_pie.patch.
I was wondering if they might be responsible? I will
try recompiling the src rpm with those patches removed and
see if that helps.

Maybe most people don't used cidr maps so this went unnoticed?

Note: In the transcript below,
smtpd_helo_restrictions_mynetworks, smtpd_helo_restrictions_195_224_204_206,
smtpd_helo_restrictions_microbus_nets, smtpd_helo_restrictions_80_176_186_173
and smtpd_helo_restrictions_others are smtpd_restriction_classes
that I define locally but you can that just about anything
on the right hand side of the map and postmap program should
not care.

---------------------------------------------------
deposit:~ # cat /etc/issue

Welcome to SUSE LINUX 10.0 (i586) - Kernel \r (\l).


deposit:~ # rpm -q postfix
postfix-2.2.5-5
deposit:~ # postmap cidr:/etc/postfix/cidr_scr
postmap: fatal: dict_mkmap_func: unsupported dictionary type: cidr: Is the postfix-cidr package installed?
deposit:~ # cat /etc/postfix/cidr_shr
# This is a CIDR map
#
# generate map with:
#
#   postmap cidr:/etc/postfix/cidr_srr
#
# What about IPv6 ?
#   currently IPv6 addresses -> smtpd_helo_restrictions_others

127.0.0.0/8     smtpd_helo_restrictions_mynetworks

195.224.204.205 smtpd_helo_restrictions_mynetworks

195.224.204.206 smtpd_helo_restrictions_195_224_204_206

195.224.204.200/29      smtpd_helo_restrictions_microbus_nets

80.176.186.173  smtpd_helo_restrictions_80_176_186_173

80.176.186.168/29       smtpd_helo_restrictions_microbus_nets

0.0.0.0/0       smtpd_helo_restrictions_others

::/0            smtpd_helo_restrictions_others
deposit:~ # postconf -m
btree
cidr
environ
hash
ldap
nis
pcre
proxy
regexp
sdbm
static
tcp
unix
deposit:~ #

---------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to