Bug Report: postfix-2.2.5-5, SuSE-10.0 retail version
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:~ # ---------------------------------------------------------
On Monday, February 13, 2006 02:06 pm, Robbie Dinn wrote:
Hi all,
I think cidr maps may be broken. There is a shell transcript below that illustrates it.
deposit:~ # postmap cidr:/etc/postfix/cidr_scr postmap: fatal: dict_mkmap_func: unsupported dictionary type: cidr: Is the postfix-cidr package installed?
Robbie, It is not necessary to postmap the text file referenced by a cidr: statement in main.cf. Mark -- _________________________________________________________ A Message From... L. Mark Stone Reliable Networks of Maine, LLC "We manage your network so you can manage your business" 477 Congress Street Portland, ME 04101 Tel: (207) 772-5678 Web: http://www.rnome.com This email was sent from Reliable Networks of Maine LLC. It may contain information that is privileged and confidential. If you suspect that you were not intended to receive it, please delete it and notify us as soon as possible. Thank you.
L. Mark Stone wrote:
It is not necessary to postmap the text file referenced by a cidr: statement in main.cf.
Ah, I wasn't aware of that. Let me try... deposit:/etc/postfix # postmap -q 80.176.186.173 cidr:cidr_shr smtpd_helo_restrictions_80_176_186_173 deposit:/etc/postfix # Yes it is working correctly. Thanks for correcting me. Sorry for the noise.
participants (2)
-
L. Mark Stone
-
Robbie Dinn