From 7d9ca0b5c2f81d94408a36bc9dbb1d3b76e57ebc Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 25 Jan 2009 21:56:37 +0000 Subject: [PATCH] VACATION INSTALL.TXT - add note about using /etc/mail/postfixadmin/vacation.conf git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@554 a1433add-5e2c-0410-b055-b7f2511e0802 --- VIRTUAL_VACATION/INSTALL.TXT | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/VIRTUAL_VACATION/INSTALL.TXT b/VIRTUAL_VACATION/INSTALL.TXT index 95fa8ea5..ec1c567b 100644 --- a/VIRTUAL_VACATION/INSTALL.TXT +++ b/VIRTUAL_VACATION/INSTALL.TXT @@ -49,6 +49,7 @@ vacation:*:65501:65501::0:0:Virtual Vacation:/nonexistent:/sbin/nologin #/etc/group vacation:*:65501: + 2. Create a directory --------------------- Create a directory, for example /var/spool/vacation, that is accessible @@ -68,6 +69,7 @@ Which will then look something like: -rwx------ 1 vacation vacation 3356 Dec 21 00:00 vacation.pl* + 4. Setup the transport type -------------------- Define the transport type in the Postfix master file: @@ -105,11 +107,12 @@ the 'upgrade.php' script when installing Postfixadmin. If security is an issue for you, read ../DOCUMENTS/Security.txt -6. Edit vacation.pl ------------------ -The perl vacation.pl script needs minor modification to know which database -you are using, and also how to connect to the database. +6. Configure vacation.pl +------------------------ + +The perl vacation.pl script needs to know which database you are using, and also +how to connect to the database. Namely : @@ -118,6 +121,17 @@ Change any variables starting with '$db_' and '$db_type' to either 'mysql' or 'p Change the $vacation_domain variable to match what you entered in your /etc/postfix/transport file. +You can do this in two ways: + +a) edit vacation.pl directly + +b) create /etc/mail/postfixadmin/vacation.conf and enter your settings there + + Just use perl syntax there to fill the config variables listed in vacation.pl + (without the "our" keyword). Example: + $db_username = 'mail'; + + What do these files do? ----------------------- When a user enables a vacation message on their account, the alias