Requirements: a) working email server. sendmail or any other setup, that parses .forward file in user's home directory b) webserver with working squirrelmail install c) ftp server that allows ftp connections from webserver to user's home directory on email server. In order to access user's home directory, squirrelmail has to use service that works under email user's privileges. It does not matter if you chroot the user as long as you chroot user to his/her writable home directory. d) vacation program (http://sourceforge.net/projects/vacation or other) e) php 4.1.2 or newer with ftp support (http://www.php.net/ftp)
Installation: 1. download vacation plugin by M.King http://www.squirrelmail.org/plugin_view.php?id=4 http://www.squirrelmail.org/plugins/vacation_1.41_1.4.tar.gz 2. extract plugin into plugins directory. 3. fix SM_PATH defines. setup.php, vac_init.php and vacation.php files contain line that says ---- define('SM_PATH','../../'); ---- Line has to be changed to ---- if (!defined('SM_PATH')) define('SM_PATH','../../'); ---- 4. check plugins/vacation/config.php file * $vacation_prog_path must contain correct location of vacation program on email server. use command 'which vacation' if you want to find correct path. * $ftp_server must contain address of email server. see requirement c). Other settings contain specific options and messages. They should work correctly in most of the cases. You might want to fix $vac_no_edit. 5. fix all undefined variable declarations or make sure that php error_reporting is not set to E_ALL in plugins/vacation directory. The Right Thing (tm) is to fix declarations, but it would take more time to hunt all errors and write instructions about fixing them. 6. Fix missing global declarations So far I have found one. In function do_ftp (vac_init.php), you have to replace line ---- global $username, $key, $onetimepad, $ftp_server; ---- with ---- global $username, $key, $onetimepad, $ftp_server, $use_passive; ---- If you don't do that, you will need ftp server that supports active ftp. 7. enable vacation plugin in squirrelmail configuration and check options available in Options -> Vacation Message. 8. Make sure that user has name and email address set in Personal preferences. Remember that vacation program sends message only once. Second email from same user does not create another vacation reply for one day. Plugin has to create correct rfc822 formated message and store it in .vacation.msg file in user's home directory. Plugin also has to create .forward file in user's home directory. Tested: apache 1.3.31 php 4.3.8 pureftpd on localhost Haven't tested: email server and vacation delivery. I don't run sendmail and email server does not use .forward files. .forward and .vacation.msg files were created correctly. If I remember correctly, fixed plugin was working when I used it on sendmail server. If you get blank window instead of vacation options - set error_reporting=E_ALL and check error messages. Similar instructions can be written for http://www.squirrelmail.org/plugin_view.php?id=51, but that plugin needs more fixes and it requires compilation of C program in order to work. -- Tomas ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users