[horde] Horde 5 + Postfixadmin

Erling Preben Hansen erling at eph.dk
Sat Dec 28 20:15:54 UTC 2013


  Citat af David González <david.gonzalez at san.com.py>:

> 2013/12/27 Luis Felipe Marzagao <lfbm.andamentos at gmail.com>
>> The first on is this warning you are getting under Required
Configuration
>> Files: Cannot find PHP command-line binary on your system. Syntax
>> checking
>> of configuration files is disabled.)
>>
>> I review that, but i have install php-cli and suppose you refered to
>
> configuration conf.php of Horde? Or this configuration i need put in
other
> side?
>
>> The second thing is you shouldn't edit the file imp/config/backends.php,
>> but instead create a backends.local.php and then put only the
>> configuration
>> needed.
>>
>> Ok i change, i restore the original backend.php and i create from my old
>
> backend.php a backend.local.php whit this:
> // POP3 server
> $servers['pop'] = array(
>        // Disabled by default
>        'disabled' => true, //I think this option disable the check
mail
> via POP
>        'name' => 'POP3 Server',
>        'hostspec' => 'localhost',
>        'hordeauth' => false,
>        'protocol' => 'pop3',
>        'port' => 110,
>        // Default to secure TLS authentication by default (see RFC
2595
> [4]).
>        'secure' => false,
>        'cache' => false,
> );
>
> // IMAP server
> // I suppose this configuration is the basic for check mail via IMAP on
my
> server
> $servers['imap'] = array(
>        // ENABLED by default; will connect to IMAP port on local
server
>        'disabled' => false,
>        'name' => 'IMAP Server',
>        'hostspec' => 'localhost',
>        'hordeauth' => false,
>        'protocol' => 'imap',
>        'port' => 143,
>        // Plaintext logins are disabled by default on IMAP servers
(see
> RFC 3501
>        // [6.2.3]), so TLS is the only guaranteed authentication
available
> by
>        // default.
>        'secure' => 'tls',
> );
>
> /* This block i comment....
> $servers['secure-imap'] = array(
>    // Disabled by default
>    'disabled' => false,
>    'name' => 'rainbow.com.py',
>    'hostspec' => 'localhost',
>    'hordeauth' => full,
>    'protocol' => 'imap',
>    'port' => 993,
>    'secure' => 'tls',
>    'maildomain' => 'rainbow.com.py',
>    // 'smtphost' => 'mail.yourdomain.com',
>    // 'smtpport' => 25,
>    'acl' => true,
>    'cache' => false,
> );
>
> //And this is cooment to, but is the used for connect to My DB MySQL.
This
> code is extract on the Postfixadmin Documentacion about Horde 3. But for
> Horde 5 is not write for this.
> $backends['sql'] = array (
>        'name' => 'Mail SQL Server',
>        'preferred' => '',
>        'password policy' => array(
>                'minLength' => 3,
>                'maxLength' => 8,
>                'maxSpace' => 0,
>                'minUpper' => 1,
>                'minLower' => 1,
>                'minNumeric' => 1,
>                'minSymbols' => 1
>        ),
>        'driver' => 'sql',
>        //In thsi point
>        'params' => array(
>                'phptype' => 'mysql',
>                'hostspec' => 'localhost',
>                'port' => '3306',
>                'protocol' => 'tcp',
>                'username' => 'someuser',
>                'password' => 'somepass',
>                'encryption' => 'crypt-md5',
>                'database' => 'somedb',
>                'table' => 'sometbl',
>                'user_col' => 'somefiled1',
>                'pass_col' => 'somefiled2',
>                'show_encryption' => false
>        )
> );
> */
> ?>
>
>> Third, you said you are using dovecot, so I'm not really sure why you
are
>> not using the imap backend for imp.
>
> Yes my imap/s and pop3/s server is dovecot. I used the user on my DB
> MySQL,
> how say in other mail, this configuration work whit Roundcube Webmail.
> Well
> i try this recomendation and put in my backends.local.php:
> $servers['imap'] = array(
>        // ENABLED by default; will connect to IMAP port on local
server
>        'disabled' => false,
>        'name' => 'IMAP Server',
>        'hostspec' => 'localhost',
>        'hordeauth' => false,
>        'protocol' => 'imap',
>        'port' => 143,
>        // Plaintext logins are disabled by default on IMAP servers
(see
> RFC 3501
>        // [6.2.3]), so TLS is the only guaranteed authentication
available
> by
>        // default.
>        'secure' => 'tls',
> );
> I think this should suffice... But i have a curious behavior.
>
> I enter on my site http://webmail.domian.dtl ---> this is my virtual host
> for Horde.
> - i view the Login page
> - I logging whit my user: user at domain.dtl and passwd
> - I enter of the portal page on Horde.
> - But when i try to enter in the link Mail ("Correo") the system out me
to
> other login page whit this URL:
> http://webmail.domain.dtl/login.php?url=http%3A%2F%2Fwebmail.domain.dtl
> %2Fimp%2F&app=imp
>
> And then I can not go back to the system, except to return to the
> homepage:
> http://webmail.domain.dtl/
>
> I other server whit dovecot and postfix too, but whit real user of unix i
> can enter the Horde Webmail very well, but whit this variant of the
> virtual
> user i have this problem.
>
> Some idea?
>
> Regards,
> David.
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/To unsubscribe, mail:
> horde-unsubscribe at lists.horde.org

You need to set the 'hordeauth' => full or true, according to the text in
top of imp/config/backends.php if you want imp to control auth for
everything. That would be the easy way. :-)

$servers['imap'] = array(
       // ENABLED by default; will connect to IMAP port on local
server
       'disabled' => false,
       'name' => 'IMAP Server',
       'hostspec' => 'localhost',       //needs to be your mail
server
       'hordeauth' => false,            //true or full if
imp has auth
       'protocol' => 'imap',
       'port' => 143,
       // Plaintext logins are disabled by default on IMAP servers
(see
RFC 3501
       // [6.2.3]), so TLS is the only guaranteed authentication
available
by
       // default.
       'secure' => 'tls',                    
//for testing could this be 'false' when working 'tls'
);

hope thats any help
/erling


More information about the horde mailing list