Hi, First of all, what are you using to send this e-mail? I am receiving this as an attachment. (Anyone else seeing this? More mails from different senders seem to be affected.) Op 02/12/2018 om 17:12 schreef Pavel Stratil via dovecot:> Hi everyone, > > after switching to ubuntu (from debian) and running a newer dovecot > --version 2.2.33.2 (d6601f4ec) i encountered a problem with > configuring sieve. The mailserver has virtual maila accounts stored in > /decrypted/%d/%n > > Prior, i used > > plugin { > ? sieve = ~/.dovecot.sieve > ? sieve_dir = ~/sieve > ? sieve_before = /etc/dovecot/sieve/before.d > } > > after the upgrade, I moved the sieve_before location on disk and > changed this to > > plugin { > ? sieve = file:~/sieve;active=~/.dovecot.sieve > ? sieve_before = /var/lib/dovecot/sieve/before.d > }From the log below, does " /decrypted/industra.space/events/" make sense as the home directory? Does "/decrypted/%d/%n/" expand to that same directory? What do the logs show in that case? Regards, Stephan.> > only to see that sieve didnt forward e-mails anymore. Looking at the > logs below, i suspect, that I didnt understood the meaning of sieve = > file:~/sieve;active=~/.dovecot.sieve correctly: > > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > sieve: Pigeonhole version 0.4.21 (92477967) initializing > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > sieve: include: sieve_global is not set; it is currently not possible > to include `:global' scripts. > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using active Sieve script > path: /decrypted/industra.space/events/.dovecot.sieve > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using script storage > path: /decrypted/industra.space/events/sieve > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Relative path to sieve > storage in active link: sieve/ > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using Sieve script path: > /decrypted/industra.space/events/.dovecot.sieve > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Storage path > `/decrypted/industra.space/events/.dovecot.sieve' not found > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: User has no active script in storage > `/decrypted/industra.space/events/sieve' > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: User has no personal script > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: file storage: Using script storage > path: /var/lib/dovecot/sieve/before.d > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: file script: Opened script `move-spam' > from `/var/lib/dovecot/sieve/before.d/move-spam.sieve' > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: Executed before user's personal Sieve > script(1): /var/lib/dovecot/sieve/before.d/move-spam.sieve > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: Opening script 1 of 1 from > `/var/lib/dovecot/sieve/before.d/move-spam.sieve' > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: Loading script > /var/lib/dovecot/sieve/before.d/move-spam.sieve > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: Script binary > /var/lib/dovecot/sieve/before.d/move-spam.svbin successfully loaded > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: binary save: not saving binary > /var/lib/dovecot/sieve/before.d/move-spam.svbin, because it is already > stored > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): Debug: > gPtsCPUBBFwMFQAA9mr2oQ: sieve: Executing script from > `/var/lib/dovecot/sieve/before.d/move-spam.svbin' > Dec? 2 16:01:57 vao01 dovecot: lmtp(events at industra.space): > gPtsCPUBBFwMFQAA9mr2oQ: sieve: > msgid=<faae5de1-10b7-9ad3-30d8-f0b91cca942a at fenix.cz>: stored mail > into mailbox 'INBOX' > > After changing this to > > sieve = > file:/decrypted/%d/%n/sieve;active=/decrypted/%d/%n/.dovecot.sieve > > I got working sieve rules that forward mails correctly again, but at > the same time I loose the ability to let users edit their sieve > scripts via the roundcube managesieve plugin (roundcube reported an > unknown error), but dovecot complained that the active file wasnt a > symlink. I tried several combinations of configuring this, but I seem > to miss some important point. Would you kindly help me get this right? > Configs are attached. > > Thanks in advance, Pavel
On 03/12/2018 09:28, Stephan Bosch wrote:> Hi, > > First of all, what are you using to send this e-mail? I am receiving this as an attachment. (Anyone else seeing this? More mails from different senders seem to be affected.)Yep, those purporting to come from dovecot, as in username via dovecot. I think Aki's playing with settings that are not quite right yet :) -- Kind Regards, Noel Butler This Email, including any attachments, may contain legally privileged information, therefore remains confidential and subject to copyright protected under international law. You may not disseminate, discuss, or reveal, any part, to anyone, without the authors express written authority to do so. If you are not the intended recipient, please notify the sender then delete all copies of this message including attachments, immediately. Confidentiality, copyright, and legal privilege are not waived or lost by reason of the mistaken delivery of this message. Only PDF [1] and ODF [2] documents accepted, please do not send proprietary formatted documents Links: ------ [1] http://www.adobe.com/ [2] http://en.wikipedia.org/wiki/OpenDocument -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20181203/5b9debc1/attachment-0001.html>
On 3.12.2018 1.34, Noel Butler wrote:> > On 03/12/2018 09:28, Stephan Bosch wrote: > >> Hi, >> >> First of all, what are you using to send this e-mail? I am receiving >> this as an attachment. (Anyone else seeing this? More mails from >> different senders seem to be affected.) > ? > Yep, those purporting to come from dovecot, as in? username via dovecot. > ? > I think Aki's playing with settings that are not quite right yet :) > ? > ? > -- > > Kind Regards, > > Noel Butler > > This Email, including any attachments, may contain legally privileged > information, therefore remains confidential and subject to copyright > protected under international law. You may not disseminate, discuss, > or reveal, any part, to anyone, without the authors express written > authority to do so. If you are not the intended recipient, please > notify the sender then delete all copies of this message including > attachments, immediately. Confidentiality, copyright, and legal > privilege are not waived or lost by reason of the mistaken delivery of > this message. Only PDF <http://www.adobe.com/> and ODF > <http://en.wikipedia.org/wiki/OpenDocument> documents accepted, please > do not send proprietary formatted documents >Was testing which method is better for senders who have DMARC policy which says reject or quarantine. I think munge from is the more usable one. Aki -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20181203/e0a51c3a/attachment.html>