Implement basic sieve support using Dovecot.#166
Implement basic sieve support using Dovecot.#166tomav merged 3 commits intodocker-mailserver:v2from stonemaster:basic-sieve-support
Conversation
The dovecot-sieve plugin is installed and configured to apply sieve
as soon as a .dovecot.sieve file is encountered in the virtual user's
home directory (that is /var/mail/${domain}/${username}/.dovecot.sieve).
Transport has been changed in the postfix configuration to use
Dovecot LDA (see http://wiki.dovecot.org/LDA/Postfix) to actually
enable sieve filtering.
Tests have been added.
|
I didn't add documentation specifically. I thought about adding a new entry to the FAQ on how to get started with sieve. |
| # sieve | ||
| # | ||
|
|
||
| @test "checking sieve: user1 should have received 1 in folder INBOX.spam" { |
There was a problem hiding this comment.
should have received 1 email
|
Thank you @stonemaster, I just let you fix the missing word in the test. |
|
Regarding the doc, yes a page |
|
cool. It could be useful to be able to provide user-prepared sieve files to be copied in place during setup. |
|
@00angus that's a nice idea. I would suggest have a differen pull request for that feature though. |
|
@tomav Added a new Wiki page and updated README with a link to it btw. |
|
Regarding user specific config, let's open another issue / enhancement. |
|
LMTP: needed in case smtp wants to deliver to a different host/container, better descriptive information in case of failures than LDA, LMTP may add additional headers I think ... If performance becomes a problem for someone please let us know ;) |
…-support Implement basic sieve support using Dovecot.
The dovecot-sieve plugin is installed and configured to apply sieve
as soon as a .dovecot.sieve file is encountered in the virtual user's
home directory (that is /var/mail/${domain}/${username}/.dovecot.sieve).
Transport has been changed in the postfix configuration to use
Dovecot LDA (see http://wiki.dovecot.org/LDA/Postfix) to actually
enable sieve filtering.
Tests have been added.
Addresses #87.