/usr/share/doc/bley/README.Debian is in bley 0.1.5-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | README.Debian for bley
======================
bley is autoconfigured with dbconfig-common in Debian. When, for some reason,
you want to do it by hand, you have to execute the following steps:
1. Create a database and an user who can write to it.
For PostgreSQL, you can do this with:
CREATE USER bley WITH PASSWORD 'bley';
CREATE DATABASE bley;
GRANT ALL ON DATABASE bley TO bley;
For MySQL, it should be something like:
CREATE USER 'bley'@'localhost' IDENTIFIED BY 'bley';
CREATE DATABASE bley;
GRANT ALL ON bley.* TO 'bley'@'localhost';
2. Tell bley to use these settings for accessing the database:
Edit /etc/bley/dbconfig-common.conf and set
dbtype=pgsql (or mysql if you are using MySQL)
and dbhost, dbname, dbuser, dbpass to the appropriate values.
(Yes, really no quotes, this is a Python ConfigParser config.)
3. Restart bley.
Now bley is running and you can configure Postfix to use it as a policy server
by editing /etc/postfix/main.cf and setting smtpd_recipient_restrictions to
smtpd_recipient_restrictions = ..., check_policy_service inet:127.0.0.1:1337
After reloading the Postfix configuration, it will use bley for filtering spam.
-- Evgeni Golov <evgeni@debian.org> Mon, 26 Apr 2010 11:30:50 +0200
|