Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-11-2008, 11:03 PM   #1
LQ Newbie
Registered: Dec 2006
Posts: 9

Rep: Reputation: 0
Squirrelmail Autorespond plugin

Hello all. Well I've been working on this problem now all evening and have tried every autoresponder plugin out there, and have searched Google inside and out. For starters, I am using Squirrelmail 1.4.9a, the autoresponder plugin I've settled on (due to it's independance from SQL) is "Autorespond".

This is the error I'm getting in the Apache error_log:

[Mon Feb 11 22:54:22 2008] [error] [client xx.xx.xx.xx] PHP Fatal error: Call to undefined function ftp_connect() in /srv/www/htdocs/webmail/plugins/autorespond/lib.php on line 147, referer:

Here is the section of lib.php which contains line 146-165:

// upload the file to the user's home
$ftp = ftp_connect($ftphost);
if (!$ftp) {
return array(FALSE, ar_gettext("cannot connect to"). " $ftphost".
($php_errormsg ? ": $php_errormsg" : ''));
$stat = ftp_login($ftp, $username, $password);
if (!$stat) {
return array(FALSE, ar_gettext("cannot log in to"). " $ftphost".
($php_errormsg ? ": $php_errormsg" : ''));

if (! @ftp_chdir($ftp, dirname($path))) {
return array(FALSE);

$file = basename($path);
if (! @ftp_size($ftp, $file)) {
return array(FALSE);

Any help would be GREATLY appreciated.

Old 02-13-2008, 08:15 PM   #2
LQ Newbie
Registered: Dec 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Figured out the problem for anyone in the future:

If you're getting these same errors, all that is missing from your PHP is the FTP extension. In SuSE all I did was search the repositories for php5-ftp and installed.

Good luck!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vacation/Autorespond plugin not working in outside domains chainknuckles Linux - Software 2 01-07-2008 06:58 AM
Vacation/Autorespond plugin not working in outside domains chainknuckles Linux - Newbie 1 01-07-2008 01:33 AM
Squirrelmail + vacation_local plugin gurra1 SUSE / openSUSE 0 03-23-2007 11:07 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration