|
Siag Office
Shohei Mail
Webresolve
Pen
Dwatch
XMagick
Myhtml
Simple Database Library
Sdbsiod
mod_log_sdb
mod_sql_sdb
Sdbgrey
Ulric's Router Construction Kit
neXtaw
Mowitz
Kylie
O3read
Ucron
Parsecgi
Mr Big
Ulric's stuff
|
|
sdbgrey
This program is a greylisting policy server for postfix. It is
based on greylist.pl from the postfix distribution. It requires
mysql and libsdb with mysql support.
The database parameters are set at the top of the script in the
variable database_url. To use the default settings, type in mysql:
create database greylist;
grant all privileges on greylist.* to 'postfix'@'localhost' identified by 'postfix';
use greylist;
create table greylist (
greykey varchar(255) unique not null,
greyvalue integer not null default 0);
To run this from /etc/postfix/master.cf:
policy unix - n n - - spawn
user=nobody argv=/usr/libexec/postfix/sdbgrey
To use this from Postfix SMTPD, use in /etc/postfix/main.cf:
smtpd_recipient_restrictions =
...
reject_unauth_destination
check_policy_service unix:private/policy
...
To test this script by hand, execute:
sdbgrey -v
On Solaris, use this configuration in master.cf:
127.0.0.1:9998 inet n n n - 0 spawn
user=nobody argv=/usr/libexec/postfix/sdbgrey
And this in main.cf:
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
check_policy_service inet:127.0.0.1:9998
127.0.0.1:9998_time_limit = 3600
|
|
|