
----- Nachricht von Arjen de Korte <build+horde@de-korte.org> ---------
   Datum: Mon, 11 Jun 2018 20:44:23 +0200
     Von: Arjen de Korte <build+horde@de-korte.org>
Betreff: Re: [horde] Horde and Sieve
      An: horde@lists.horde.org


> Citeren Andreas Mauser <andreas@mauser.info>:
>
>> Hi,
>>
>> does Sieve work with dovecot under Fedora?
>
> I wouldn't know why it shouldn't work.
>
>> I tried but failed.
>
> *What* did you try? Please post your  
> 'ingo/config/backends.local.php' file here. If you don't have one,  
> there is (part of) your problem.

<?php

/* IMAP Example */
$backends['imap'] = array(
     // ENABLED by default
     'disabled' => true,
     'transport' => array(
         Ingo::RULE_ALL => array(
             'driver' => 'null',
             'params' => array(),
         ),
     ),
     'script' => array(
         Ingo::RULE_ALL => array(
             'driver' => 'imap',
             'params' => array(),
         ),
     ),
     'shares' => false
);

/* Sieve Example */
$backends['sieve'] = array(
     // Disabled by default
     'disabled' => false,
     'transport' => array(
         Ingo::RULE_ALL => array(
             'driver' => 'timsieved',
             'params' => array(
                 // NOTE: Ingo by default sends only the bare Horde username
                 // for authentication. Sieve servers generally need both the
                 // username and domain. See the 'transport_auth' hook for
                 // an example on how to change the Ingo default behavior.

                 // Hostname of the timsieved server
                 'hostspec' => '1.2.3.4',
                 // Login type of the server
                 'logintype' => 'CRAM-MD5',
                 // Enable/disable TLS encryption
                 'usetls' => true,
                 // Port number of the timsieved server
                 'port' => 4190,
                 // Name of the sieve script
                 'scriptname' => 'ingo',
                 // Enable debugging. The sieve protocol communication is
                 // logged with the DEBUG level.
                 'debug' => false,
             ),
         ),
     ),
     'script' => array(
         Ingo::RULE_ALL => array(
             'driver' => 'sieve',
             'params' => array(
                 // If true, use the deprecated 'imapflags' extension to set
                 // flag status instead of the newer, standardized
                 // 'imap4flags'.
                 // 'imapflags' => true,

                 // If true, use the deprecated 'notify' extension instead of
                 // the newer, standardized 'enotify'.
                 // 'notify' => true,

                 // If using Dovecot or any other Sieve implementation that
                 // requires folder names to be UTF-8 encoded, set this
                 // parameter to true.
                 'utf8' => true,
              ),
         ),
     ),
     'shares' => false
);



>
>> Is there a docu somwhere I did not find till today? I cannot get it to work.
>
> Did you manage to setup Sieve on Dovecot? Usually that is the hard  
> part, the Horde part is easy.

I hope so. What I have today is, that I can Telnet into the Mailserver  
and Auth.
I can see that SIEVE is active there.

Escape character is '^]'.
"IMPLEMENTATION" "Dovecot Pigeonhole"
"SIEVE" "fileinto reject envelope encoded-character vacation  
subaddress comparator-i;ascii-numeric relational regex imap4flags copy  
include variables body enotify environment mailbox date index ihave  
duplicate mime foreverypart extracttext"
"NOTIFY" "mailto"
"SASL" "PLAIN LOGIN"
"VERSION" "1.0"
OK "Dovecot ready."

But I believe I have an auth-problem.
In dovecot/conf.d/10-auth.conf I need to explicitely  
'disable_plaintext_auth = no' to make activating of scripts work  
(thank you by the way for hinting me back to the dovecot setup).

But afaik I since I not always have a secure connection I should  
disable PLAIN auth.
But then SIEVE doesnt work anymore. How can I make SIEVE work with  
other auth mechanisms?

I believe I'm very near the goal..

Mtx,
Andreas




----- Ende der Nachricht von Arjen de Korte <build+horde@de-korte.org> -----


