Skip to content

Debian installation example

jnorell edited this page May 5, 2011 · 3 revisions

Debian Installation

Here's an example installation using mysql on a Debian lenny system, assuming you already have postfix and dbmail installed (hence you have a "dbmail" user/group and dbmail.conf is configured). Depending on your version of Debian your package names may change a little (eg. git vs. git-core). These commands are all run by root, of course (cut/paste as much as you want):

# install perl
aptitude install perl{,-base,-modules} libnet-server-perl libconfig-inifiles-perl libdbi-perl libdbd-mysql-perl

# install git
aptitude install git-core

# get dbmail-postfix-policyd
git clone [email protected]:jnorell/dbmail-postfix-policyd.git

# put everything in place
cd dbmail-postfix-policyd
cp dbmail-postfix-policyd /usr/sbin
cp debian/dbmail-postfix-policyd.init /etc/init.d/dbmail-postfix-policyd
cp debian/default.dbmail-postfix-policyd /etc/default/dbmail-postfix-policyd
chown root:root {/usr/sbin,/etc/init.d,/etc/default}/dbmail-postfix-policyd 
chmod 0755 {/usr/sbin,/etc/init.d}/dbmail-postfix-policyd
update-rc.d dbmail-postfix-policyd defaults

# edit configuration (if needed)
vi /etc/default/dbmail-postfix-policyd

# if you configured a db password:  chmod 0750 /etc/default/dbmail-postfix-policyd

# start dbmail-postfix-policyd
/etc/init.d/dbmail-postfix-policyd start

# edit postfix configuration to use this policy service
vi /etc/postfix/main.cf /etc/postfix/master.cf
Clone this wiki locally