On Tue, Nov 09, 2004 at 06:41:46AM +0800, S Koh wrote: > Hello > > Just just did a default install on a Gentoo System (Freshly created with > almost > all default settings) and have the following error. > > ./dbmail-util: error while loading shared libraries: libdbmail.0: cannot open > shared object file: No such file or directory > > Any suggestions in how do I solve it, I have found that it is because the lib > directory which is in a default install is different from where Gentoo keeps > its lib files. > > And a point in the direction of other documentation to link this with a Anti- > Spam/ClamAV solution would be greatly appreciated. (I'm using Postfix with > MySQL if that is any help, want to run POP/IMAP before SMTP)
Try amavisd-new. it's in portage and is pretty easy to set up with postfix. I'm very happy with it. For POP/IMAP before SMTP, set POP_BEFORE_SMTP=yes and IMAP_BEFORE_SMTP=yes in dbmail.conf, then set the following in /etc/postfix/main.cf smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_recipient, check_client_access mysql:/etc/postfix/mysql-before.cf, reject_unauth_destination mynetworks = 127.0.0.0/8, your.external.ip.address, mysql:/etc/postfix/mysql-before.cf where /etc/postfix/mysql-before.cf reads: user = username password = password dbname = dbmail table = pbsp select_field = since where_field = ipnumber additional_conditions = and unix_timestamp() - unix_timestamp(since) <= 18000 18000 ticks is arbitrary. pick any value. -Sri
