Created attachment 288929 [details] makes postfix use tinycdb instead of Berkeley DB by default By default postfix (15MB) depends on sys-libs/db (14MB) but performs equally well (at least for my servers humble needs ;-) using dev-db/tinycdb (50KB). I improved an ebuild a bit so anybody can switch to use (tiny)cdb setting USE="-berkdb cdb" (both cannot be off of course).
+*postfix-2.9_pre20111106 (07 Nov 2011) + + 07 Nov 2011; Eray Aslan <eras@gentoo.org> -postfix-2.9_pre20111025.ebuild, + +postfix-2.9_pre20111106.ebuild: + Version bump. Make Berkeley DB optional - bug #385825 + Please let me know if you have any problems. Thank you.
> Please let me know if you have any problems. Thank you. I like the way you did it - thanks! :-) (and so removed postfix from bleeding-edge)
Note that doing this will break all features that require the btree or hash type. A quick scan of postconf(5) shows the following: address_verify_map postscreen_cache_map (default: btree:$data_directory/postscreen_cache) smtp_sasl_auth_cache_name smtp_tls_session_cache_database smtpd_tls_session_cache_database More might exist.
(In reply to comment #3) > Note that doing this will break all features that require the btree or hash > type. meaning you should not turn berkdb USE flag off -which is on by default by the way- if you use hash or btree database types. If you turn berkdb off and it breaks your config, you get to keep the pieces.