HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Mea by someone will know ISPconfig Horde, Ingo, procmail (http://www.howtoforge.com/forums/showthread.php?t=13840)

kristaps 4th July 2007 13:55

Mea by someone will know ISPconfig Horde, Ingo, procmail
 
HI,

I just installed Horde, Ingo and when Iím configuring to use procmail I receive error:
(Iím struggling with this already 2 days and canít find solution)

Her is my configuration,

Quote:

/* Procmail Example */
$backends['procmail'] = array(
'driver' => 'vfs',
'preferred' => 'tera.lv',
'hordeauth' => true,
'params' => array(
// Hostname of the VFS server
'hostspec' => 'localhost',
// Name of the procmail config file to write
'filename' => '.ingo.rc',
// Port of the VFS server
'port' => 21,
// The VFS driver to use
'vfstype' => 'ftp'
// The VFS username to use, defaults to current user
'username' => '543523543425',
// The VFS password to use, defaults to current user's password
'password' => '342523454235234',
// The path to the .procmailrc filter file, defaults to the current
// user's home directory.
// You can use the following variables:
// %u = name of the current user
// %U = the 'username' from above
// Example:
//'/user/%u/'
// This would be translated into:
// '/data/procmail/filters/<logged_in_username>/.procmailrc'
'vfs_path' => '/user/%u/',
),
'script' => 'procmail',
'scriptparams' => array(
// What path style does the IMAP server use ['mbox'|'maildir']?
'path_style' => 'maildir',
// An array of variables to append to every generated script.
// Use if you need to set up specific environment variables.
'variables' => array(
// Example for the $PATH variable
// 'PATH' => '/usr/bin',
// Example for the $DEFAULT variable
// 'DEFAULT' => '$HOME/Maildir',
)
)
);
ERROR:

Quote:

Details (also in Horde's logfile):
object(PEAR_Error)#13 (8) {
["error_message_prefix"]=>
string(0) ""
["mode"]=>
int(1)
["level"]=>
int(1024)
["code"]=>
NULL
["message"]=>
string(41) "Nevar ielasīt Ingo_Script_ nosacījumus."
["userinfo"]=>
NULL
["backtrace"]=>
array(6) {
[0]=>
array(6) {
["file"]=>
string(29) "/usr/share/php5/PEAR/PEAR.php"
["line"]=>
int(572)
["function"]=>
string(10) "PEAR_Error"
["class"]=>
string(10) "PEAR_Error"
["type"]=>
string(2) "->"
["args"]=>
array(5) {
[0]=>
string(41) "Nevar ielasīt Ingo_Script_ nosacījumus."
[1]=>
NULL
[2]=>
int(1)
[3]=>
int(1024)
[4]=>
NULL
}
}
[1]=>
array(6) {
["file"]=>
string(43) "/srv/www/web1/web/horde/ingo/lib/Script.php"
["line"]=>
int(127)
["function"]=>
string(10) "raiseError"
["class"]=>
string(4) "PEAR"
["type"]=>
string(2) "::"
["args"]=>
array(1) {
[0]=>
string(41) "Nevar ielasīt Ingo_Script_ nosacījumus."
}
}
[2]=>
array(6) {
["file"]=>
string(43) "/srv/www/web1/web/horde/ingo/lib/Script.php"
["line"]=>
int(160)
["function"]=>
string(7) "factory"
["class"]=>
string(11) "Ingo_Script"
["type"]=>
string(2) "::"
["args"]=>
array(2) {
[0]=>
NULL
[1]=>
array(0) {
}
}
}
[3]=>
array(6) {
["file"]=>
string(41) "/srv/www/web1/web/horde/ingo/lib/Ingo.php"
["line"]=>
int(258)
["function"]=>
string(9) "singleton"
["class"]=>
string(11) "Ingo_Script"
["type"]=>
string(2) "::"
["args"]=>
array(2) {
[0]=>
NULL
[1]=>
array(0) {
}
}
}
[4]=>
array(6) {
["file"]=>
string(40) "/srv/www/web1/web/horde/ingo/filters.php"
["line"]=>
int(22)
["function"]=>
string(14) "loadIngoScript"
["class"]=>
string(4) "Ingo"
["type"]=>
string(2) "::"
["args"]=>
array(0) {
}
}
[5]=>
array(4) {
["file"]=>
string(38) "/srv/www/web1/web/horde/ingo/index.php"
["line"]=>
int(24)
["args"]=>
array(1) {
[0]=>
string(40) "/srv/www/web1/web/horde/ingo/filters.php"
}
["function"]=>
string(7) "require"
}
}
["callback"]=>
NULL
}

kristaps 5th July 2007 14:33

Answer
 
Hi,

(Sorry for my bad English)

Actually this error indicate that something is wrong witch backend configuration.


For those who will try to install HORDE, IMP, INGO



1. Proceed with this manual to prepare system
http://www.howtoforge.com/perfect_setup_opensuse_10.2

2. DO NOT MAKE UPDATES WHEN ITS PROPOSED
(if you will make them you will find that lot of hored prerequisites are not working like expected)

3. Create only one user and when horde install prompts for IMAP user use it
(do not make testing on it because hey will not have correct procmail settings)

4. Download http://www.horde.org/webmail/

5. Install PEAR packages::

pear install -o Log Mail Mail_Mime DB Date File
pear -d preferred_state=beta install -a Services_Weather

pear install DB2 (and afterword add-on for mysql read instruction from console)

6. Proceed with manual in archive /../docs/INSTALL
From this place

Prerequisites
=============

You are interested in:
1. In your php.ini file, the following line **must** be present::

3. Set the maximum size of the uploaded files

3. Additional PECL Modules (THIS ONE IS HEDAKE)
I slowed it with downloading http://www.imagemagick.org
installin with defolt instructions and in horde Setup pointing MIME to „/usr/local/include/magick”
(You will need to spend some time to download and install r2go,)

Hint for memcahce when prerequisites are done
ln -s /usr/include/php5 /usr/include/php

2. Ispell, or a drop-in replacement.

7. Installing Horde Groupware Webmail Edition
==========================================

test.php – will show you every think about what you are missing and what should be done more

8. In root of web /hode/imp/config/server.php (Replace)

After: /* Example configurations: */

$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'localhost',
'hordeauth' => false,
'protocol' => 'imap/notls',
'port' => 143,
'maildomain' => 'test.lv',
'smtphost' => 'localhost',
'smtpport' => 25,
'realm' => '',
'preferred' => '',
);

9. In root of web /hode/ingo/config/backend.php (Replace)

DELETE EWERYTHINK AND REPLACE

/* Procmail Example */
$backends['procmail'] = array(
'driver' => 'vfs',
'preferred' => 'tera.lv',
'hordeauth' => true,
'params' => array(
// Hostname of the VFS server
'hostspec' => 'localhost',
// Name of the procmail config file to write
'filename' => '.ingo.rc',
// Port of the VFS server
'port' => 21,
// The VFS driver to use
'vfstype' => 'ftp'
// The VFS username to use, defaults to current user
// 'username' => 'user',
// The VFS password to use, defaults to current user's password
// 'password' => 'secret',
// The path to the .procmailrc filter file, defaults to the current
// user's home directory.
// You can use the following variables:
// %u = name of the current user
// %U = the 'username' from above
// Example:
// '/data/procmail/filters/%u/'
// This would be translated into:
// '/data/procmail/filters/<logged_in_username>/.procmailrc'
// 'vfs_path' => '/path/to/procmail/',
),
'script' => 'procmail',
'scriptparams' => array(
// What path style does the IMAP server use ['mbox'|'maildir']?
'path_style' => 'maildir',
// An array of variables to append to every generated script.
// Use if you need to set up specific environment variables.
'variables' => array(
// Example for the $PATH variable
// 'PATH' => '/usr/bin',
// Example for the $DEFAULT variable
// 'DEFAULT' => '$HOME/Maildir',
)
)
);

10. /root/ispconfig/isp/conf/procmailrc.master

Add line after: {QUOTA}
INCLUDERC={PMDIR}/.ingo.rc

11. Now you can create users for web and make updates


All times are GMT +2. The time now is 06:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.