cPanel & WHM Version 98 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Sieve support for Dovecot

enboig shared this idea 8 years ago
Open Discussion

Sieve support for dovecot would allow users to create filters in imap on serverside.

Replies (17)

photo
2

I think this would be awesome as it would let users set flags on incoming mail so that you would not longer have to write rules in Thunderbird for instance, to tag keywords on mail. With sieve support flags could be set on the server side via sieve scripts instead of having to worry about every single client having the same rules.

photo
2

not merely sieve but Pigeonhole && also ALL the dovecot pigeonhole sieve plug-ins:


  • Enotify XMPP ( RFC 5435 + RFC 5437 )
  • Sieve Pipe


These


    whyusecpanel@mydomain.tld

    cpanel.provides.email.xmpp.sip@hosteddomain.tld

URI OUGHT function as


  • email address
  • Jabber ID [ XMPP texting ]
  • SIP URI


at least s both email address & JID. The industry leading- or innovating webhost would choose cPanel when also allowed to treat the URI as SIP . cPanel need not touch RTP [audio] but only implement SIP server as does SER derivatives and SIPsorcery.com providing SIP proxy, SIP registrar, SIP registration agent, SIP notification (for presence).


http://pigeonhole.dovecot.org/


Pigeonhole extends Dovecot Secure IMAP Server with the Sieve language

(RFC 5228) and the ManageSieve protocol (RFC 5804) .


  • Pigeonhole Sieve implementation aims to be admin- and user-friendly.
  • Using the ManageSieve protocol, users can upload their Sieve scripts
    remotely, without needing direct filesystem access through FTP or SCP.
    Additionally, a ManageSieve server always makes sure that uploaded
    scripts are valid, preventing compile failures at mail delivery.
  • The Pigeonhole Sieve implementation supports the new and very useful variables extension.
  • The Pigeonhole Sieve plugin is distributed with a sieve-test tool that simplifies testing Sieve scripts and provides additional debugging facilities.


as mentioned in arvixe thread. Arvixe like other market favored webhosts needs cPanel to tend the mustard seeds of innovation to catch up to non-cPanel industry leaders already providing all clients XMPP, SIP, sieve, and panoply of must-have features.


Further not only allow- but encourage cPanel webhosts to provide client requested features ahead of cPanel releases as benefit to all parties through mature cPanel extensibility or otherwise. cPanel need not be deleterious to Open Standards or feature advancements. Webhosts self limited to cPanel functionality limit customer retention by testing limits of customer patience for cPanel releases or feature suggestion implementation [road map]


Pigeonhole is free open source distributed under the same license as Dovecot: LGPL v2.1 SIPsorcery is also free open source: New BSD License.


Please don't inspire customers to wonder if grass is greener beyond the Panel of c.

photo
1

+1 from me....


This is really good idea to support Sieve / ManageSieve from EXIm (or) dovecot which can be useful to hosting companies to offer 3rd party solutions (or) application which they may adopted for their clients.

photo
1

I think Sieve support would be better suited to Exim, replacing and significantly expanding upon current e-mail filtering capabilities, so that new messages are still sorted immediately at the time of receipt via SMTP and not at intermittent times when an e-mail user happens to check his or her mailbox via IMAP/POP.


Reference: http://www.exim.org/exim-html-current/doc/html/spec_html/filter_ch-sieve_filter_files.html

photo
1

How would adding sieve to exim improve the existing filter system ?


Would it allow users from their e-mail software to directly add filters instead of going into their webmail or cpanel account and adding the filters there ?


I ask this because the current filtering system seems to allow from webmail and cpanel to filter most things

photo
2

While Exim can support Sieve, the existing implementation in cPanel&WHM does not use Sieve filters, thus, new incoming messages would not be be filtered using anything supplied via Dovecot or IMAP. If I understand correctly, we would need to implement the use of Sieve filters in both Exim and Dovecot, and have them manage the same filters (i.e., not segment into separate storage paths but rather share a common Sieve filter store).

photo
1

You don't need Exim to support sieve. Exim delivers mail via dovecot.


Aug 13 18:38:16 cp1 dovecot: lmtp(xxx@xxxxxxxxx): iZx/KQhbr1fbCwAAXxdNvw: msgid=unspecified: saved mail to INBOX

photo
photo
2

Hope they are gonna add it soon :)

photo
1

cPanel 58 release notes says :

Dovecot as local mail delivery agent

cPanel & WHM now uses Dovecot as the local mail delivery agent. Exim receives inbound messages, connects to Dovecot via LMTP (Local Mail Transport Protocol), and Dovecot delivers the message. If LMTP is unavailable, the system uses the dovecot_lda mail delivery agent to deliver messages.In earlier versions of cPanel & WHM, Exim acted as both the mail transfer agent and the local delivery agent.


As a matter of comparison, Plesk Linux 12.5 uses dovecot_lda as LDA and also provides Dovecot Pigeonhole.

We use it in order to deliver our customized global filters to users (using sieve_before) and let users create their own filter as Plesk provides versions of RoundCube and Horde which are already integrated with Sieve filtering (filters created using these Webmail's filtering interfaces are created as sieve filters).


Is Sieve filters now somehow improved now that cPanel 58 supports Dovecot as LDA ?

Could we also use this to deliver customized global rules using something like sieve_before ?

photo
1

It's definitely possible, based on what I'm reading, that the support has been improved but I want to confirm before I say for sure. I'm going to ask internally and to see about some testing. I'll let you all know what I find out as soon as I can.

photo
1

Hey all! It looks like it did simplify it a little bit, but you will still need to install the dovecot-pigeonhole plugin and the ManageSieve service will still need to be configured.

photo
1

We have done this on our Cpanel. Getting dovecot-pigeonhole installed requires removing the cpanel provided dovecot and finding an equivalent (or compile your own). Setting up managesieve, its easier to read the default config that comes with dovecot (cpanel puts it all in one file). You then create a dovecot.local template config to work on. There is some understanding required in terms of file placements for the various parts when setting up managesieve.


We then enabled the sieve plugin for roundcube and use that to administer the rules.


By excluding dovecot RPM from updates this has survived updated.

photo
1

Could you provide us with any directions on how to install Pigeonhole without having to replace the default cPanel Dovecot installation, Benny? That would be helpful, as I don't really want to mess with it, it's working great as it is, I just need the plugin.

photo
1

I might be able to put something together, but it might be a little while. If one of you would like to put together a guide I'd be willing to set up a test server for you to use.

photo
1

No problem. Also, do you know if the Sieve filters will be listed alongside cPanel filters when Pigeonhole gets supported?

photo
1

Nope, unfortunately that's not something that will be decided until the development of this feature gets started.

photo
photo
1

Do you guys have any update on this?

photo
1

Any updates? Thanks :).

photo
1

Unfortunately no updates yet, and I haven't gotten a chance to get a guide together yet either. If anyone does get a chance to do this and posts a guide for it to the cPanel forums, I can promise that there's some cPanel swag in it for them!

photo
photo
1

I would like the support of Pigeonhole Sieve, specially for edit headers messages as the Editheader extension does. This is important for customers that use Exchange servers to extract their e-mails from our servers. In our case, our customer use a catch-all address to extract later all his messages and deliver to the corresponding recipient, but LMTP has added the Delivered-To tag on the headers message. So the Exchange server access to catch-all inbox and delivers the message to the address that it is on the header as "Envelope-to: ", but now the server adds this header "Delivered-To: catch-all address", causing problems for the Exchange server.

it does appear that this functionality may be able to be added using the dovecot Sieve filters.


  1. require "editheader";
  2. require "variables";
  3. if header :matches "X-Original-To" "*" {
  4.      deleteheader :index 2 "Delivered-To";
  5.      addheader "Delivered-To" "${1}";
  6.      deleteheader "X-Original-To";
  7. }

Information about managing and creating these filters is available here:

https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration

Thank you for your support

photo
3

Hey folks! If you've manually added this already, we'd love to hear how you're using it now. One of our teams is considering including this in some work we're doing in the webmail part of the product.

photo
2

Vote from me for Dovecot Pigeonhole support. We need especially ManageSieve Protocol support to be able to use our remote Webmail client with no access to server filesystem.

At the moment our clients are able to configure filters only on mail client side: Outlook, Thunderbird etc.

And we want to provide them with possibility to stay with the same filters with any client connected by configuring filters on server side through our webmail.

ManageSieve works the best here. It would be really great to see you guys started working on that.

photo
1

Any update here?

photo
2

This item is tentatively on our roadmap for 2020, but other improvements to the mail experience are taking priority at this time. We do not have a specific version or timeline that we can share right now. We'll be sure to update this thread when we have more information to share.

photo
Leave a Comment
 
Attach a file