From 02ee6675ae2eb25e73677e1b31e88e650cb7ac5f Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Wed, 19 Sep 2007 08:40:38 +0000 Subject: [PATCH] INSTALL.TXT: updating to merge together the two vacation.pl scripts git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@50 a1433add-5e2c-0410-b055-b7f2511e0802 --- VIRTUAL_VACATION/INSTALL.TXT | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/VIRTUAL_VACATION/INSTALL.TXT b/VIRTUAL_VACATION/INSTALL.TXT index 638fe553..0f5ff0fc 100644 --- a/VIRTUAL_VACATION/INSTALL.TXT +++ b/VIRTUAL_VACATION/INSTALL.TXT @@ -13,9 +13,13 @@ REQUIRED! --------- You need to have the following installed to be able to use Virtual Vacation. + - Perl5 - Perl DBI -- Perl DBD::mysql +- Either Perl DBD::mysql OR Perl DBD::pgsql - depending on DB backend. +- Email::Valid +- Mail::Sendmail + About Virtual Vacation ---------------------- @@ -27,7 +31,6 @@ message back to the sender. Install Virtual Vacation ------------------------ - 1. Create a local account ------------------------- Create a dedicated local user account called "vacation". @@ -95,24 +98,18 @@ Execute "postfix reload" to complete the change. 5. Create the table ------------------- -To use Virtual Vacation with Postfix Admin you need to create an extra table -in the database that is used by Postfix Admin. +See DATABASE.txt in this directory. + +6. Edit filter.pl +----------------- + +The perl filter.pl script needs minor modification to know which database +you are using, and also how to connect to the database. + +Namely : + +Change any variables starting with '$db_' and '$db_type' to either 'mysql' or 'pgsql'. -USE postfix; -# -# Table structure for table vacation -# -CREATE TABLE vacation ( - email varchar(255) NOT NULL default '', - subject varchar(255) NOT NULL default '', - body text NOT NULL, - cache text NOT NULL, - domain varchar(255) NOT NULL default '', - created datetime NOT NULL default '0000-00-00 00:00:00', - active tinyint(4) NOT NULL default '1', - PRIMARY KEY (email), - KEY email (email) -) TYPE=MyISAM COMMENT='Postfix Admin - Virtual Vacation'; What do these files do?