6.0.0-alpha12
6/8/25

[#12129] Sieve example config does not work with Dovecot 2.1.15
Summary Sieve example config does not work with Dovecot 2.1.15
Queue Ingo
Queue Version 3.0.1
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester bugs.horde.org (at) headbank (dot) co (dot) uk
Created 03/19/2013 (4464 days ago)
Due
Updated 03/25/2013 (4458 days ago)
Assigned
Resolved 03/25/2013 (4458 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/25/2013 09:49:05 AM Jan Schneider Comment #5
State ⇒ Not A Bug
Reply to this comment
Please use the mailing list to ask for support.

http://www.horde.org/mail/ contains a list of all available mailing lists.
03/24/2013 02:17:36 PM bugs (dot) horde (dot) org (at) headbank (dot) co (dot) uk Comment #4 Reply to this comment
Solution: additional directive in backends.local.php

$backends['sieve']['hordeauth'] = true;
I don't know which version of Ingo you're using, but in the latest 
stable version from pear, I can't find any references to 'hordeauth',
Version I'm using is 3.0.1 as stated above. I arrived at this solution 
by a lot of googling and looking over the code. Whether it makes sense 
or not, it works.

[Show Quoted Text - 9 lines]
That extract is unchanged from 3.0.1 to 3.0.3 (I assume this is what 
you have). There are no changes between these versions of backends.php 
related to hordeauth or anything related. In other words, nothing "on 
paper" to indicate changes to this file's usage that may occur 
(implemented elsewhere in the code) between versions.

[Show Quoted Text - 15 lines]
If all that's required is an upgrade then great, but I'm not in a 
position to do that on a whim with this server, and nothing in this 
file or elsewhere indicated that that would help; if I'd thought 
otherwise, I'd certainly have tried upgrading before filing this ticket.

I'll now schedule the upgrade as soon as possible to test whether it 
solves it. Am I correct, then, that hordeauth (or whatever now 
performs that function) is now defaulting to supplying just <USERNAME> 
instead of <USERNAME@DOMAIN>? (The link that provided the clue to my 
fix indicated that this was its effect, with the default value being 
'full' which appends the domain to the username.)
03/23/2013 02:04:20 PM arjen+horde (at) de-korte (dot) org Comment #3 Reply to this comment
Solution: additional directive in backends.local.php

$backends['sieve']['hordeauth'] = true;
I don't know which version of Ingo you're using, but in the latest 
stable version from pear, I can't find any references to 'hordeauth', 
so the above doesn't make sense to me. Admittedly, older versions did 
use this, but this is no longer the case per the comments in 
'ingo/config/backends.php':

  *   NOTE: By default, the transport driver will use Horde credentials to
  *         authenticate to the backend. If a different username/password is
  *         needed, use the 'transport_auth' hook (see hooks.php) to define
  *         these values.
If I understand correctly the *current* state of play (based on the 
sources, some admittedly probably outdated, that I've found while 
researching this), and based on what I've observed above, it appears 
that either the hordeauth param or a case-suitable entry in 
hooks.local.php is *required* or timsieved driver will do nothing at 
all.
The below are the contents of my 'ingo/config/backends.local.php', 
which is working fine with Dovecot 2.1:

<?php
$backends['imap']['disabled'] = true;
$backends['sieve']['disabled'] = false;
$backends['sieve']['params']['usetls'] = false;
$backends['sieve']['scriptparams']['utf8'] = true;
03/23/2013 01:07:16 PM bugs (dot) horde (dot) org (at) headbank (dot) co (dot) uk Comment #2 Reply to this comment
Solution: additional directive in backends.local.php

$backends['sieve']['hordeauth'] = true;

If I understand correctly the *current* state of play (based on the 
sources, some admittedly probably outdated, that I've found while 
researching this), and based on what I've observed above, it appears 
that either the hordeauth param or a case-suitable entry in 
hooks.local.php is *required* or timsieved driver will do nothing at 
all.

Fair enough, perhaps mine is a corner case (seems a bit unlikely, 
mind) but this requirement, or at the very least the existence of the 
hordeauth parameter, should be documented in the header notes of 
backends.php. In my case it would have saved a couple of days of 
wild-goose-chasing at any rate.
03/19/2013 05:38:31 PM bugs (dot) horde (dot) org (at) headbank (dot) co (dot) uk Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ingo
Summary ⇒ Sieve example config does not work with Dovecot 2.1.15
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
I haven't attempted this setup before, so I don't know how far back 
the issue goes. Lots online about setups up to mid-2011 or so, 
involving H3/4 and dovecot-1x, but nothing for H5 / dovecot-2.x (and 
no documentation that I can find).

/ingo/conf/backends.local.php as follows:

$backends['imap']['disabled'] = true;
$backends['sieve']['disabled'] = false;

$backends['sieve']['params']['usetls'] = false;
$backends['sieve']['params']['debug'] = true;
$backends['sieve']['scriptparams']['utf8'] = true;

I have logging at DEBUG and see nothing to indicate an attempt to 
contact the managesieve process, likewise in the dovecot log (whereas 
it's evident when I probe it with netcat).

In Configuration > Ingo, I've tried both Preferences and SQL storage 
backends: no difference. Also I've tried setting the configs above 
directly in backends.php, still no joy.

The auth parameter in Horde config is set to use Imp for login (which 
in turn uses IMAP login to the same dovecot instance). Everything else 
I can think of is pretty standard. On Gentoo but using the pear 
install method (clean H5 install).

Happy to provide whatever further info requested, just ask.

Saved Queries