Explain how sieve can work instead of maildrop #556
Replies: 13 comments 8 replies
-
In 2017 I updated the qmail-deliverabled plugin and Haraka to support this delivery path:
It works for standard email accounts and it knows the difference by using the |
Beta Was this translation helpful? Give feedback.
-
So the answer is, if I want to use LMTP with Haraka I should manually change Any example would be good, with some pros and cons, so people can decide |
Beta Was this translation helpful? Give feedback.
-
Correct, the underlying assumption of the provision scripts is that your configs are holy and sacred and should not be trampled upon. Here's how I tell Haraka to deliver via LMTP:
The key is the next_hop setting. QMD returns different codes for Maildir, email lists, etc. Based on that, if the email address is a Maildir, then Haraka delivers it directly to Dovecot LDA. Both roundcube and snappymail have plugins for editing sieve scripts. You do have to set up sieve though in dovecot. Here are some relevant bits from my dovecot local.conf file:
|
Beta Was this translation helpful? Give feedback.
-
That's what I like about the provision script, however sometimes with upgrades I might miss new functionality.
That is straightforward, any reason not to make it default?
I think this works out of the box |
Beta Was this translation helpful? Give feedback.
-
Probably not. I like giving changes some time to "burn in" and surface edge cases. I see that I enabled that a few years ago and haven't had any issues.
Yep, it does appear I added that quite a long time ago as well. |
Beta Was this translation helpful? Give feedback.
-
Yes, this change makes Sieve Filter work! So default
|
Beta Was this translation helpful? Give feedback.
-
Fixed by adding to
|
Beta Was this translation helpful? Give feedback.
-
Hmm, I have a similar addition. I should look into what the difference is.
|
Beta Was this translation helpful? Give feedback.
-
I think it is exactly the same functionality, however not coming from the provision scripts |
Beta Was this translation helpful? Give feedback.
-
can you post whole your local.conf cannot get forwards to work correctly or does haraka also need a change?
|
Beta Was this translation helpful? Give feedback.
-
Forwards won't yet work via LMTP. QMD only designates vpopmail directories as LMTP eligible, everything else is delivered in the usual way. I did recently fix a couple bugs related to this in Haraka and smtp_forward plugins. https://gist.github.com/msimerson/e0b5f92582c1a9046ef5fdf27ff200c8 |
Beta Was this translation helpful? Give feedback.
-
I've been poking at this some more. When Haraka delivers to a dovecot Maildir via LMTP, it bypasses qmail, maildrop, and vpopmail. This is desirable if you're moving to sieve as it completely bypasses maildrop and issue #534. It may be surprising to learn that email forwards and vacations defined in qmailadmin no longer work. The mechanism on the backend that implements that is Dovecot LDA can replicate the functionality we've been using maildrop for. The quota plugin replicates the deliverquota program from maildrop. Sieve can implement mail filtering, forwards, and vacation autoreplies. |
Beta Was this translation helpful? Give feedback.
-
Hi toghether have there been some progress? It looks sieve filtering is working. But I have an issue with vacation messages to External hosts. I thing its due dma and hostname haraka which is wrong for external hosts.
any suggestions to go forward ? |
Beta Was this translation helpful? Give feedback.
-
Current situation
Maildrop moves messages coming from
foo@mail.com
to the folderFoo
Desired situation
Migrate those rules to Sieve, so they can be easily managed in roundcube
How can the same achieved by Sieve from Dovecot?
I understand incoming mail flow as:
Haraka -> qmail-smtpd -> Maildrop -> vpopmail deliver to Maildir => user reads mail with IMAP
I don't see where Sieve with lmtp replaces maildrop
Beta Was this translation helpful? Give feedback.
All reactions