[Dovecot] Problem with sieve

Cedric Jeanneret cjeanneret at internux.ch
Tue Mar 20 09:20:41 EET 2012


On Tue, 20 Mar 2012 03:12:51 -0400
Gedalya <gedalya at gedalya.net> wrote:

> On 3/20/2012 2:49 AM, Cédric Jeanneret wrote:
> > On 19.03.2012 14:27, Antoine Nguyen wrote:
> >> 2012/3/19 Cédric Jeanneret <cjeanneret at internux.ch>
> >>
> >>> Hello List!
> >>>
> >>> I have a tiny-teeny problem with dovecot + sieve: it seems that the LDA
> >>> doesn't run sieve, and thus doesn't filter my emails.
> >>>
> >>> Here's the sieve configuration:
> >>>
> >>> plugin {
> >>>  # Used by both the Sieve plugin and the ManageSieve protocol
> >>>  sieve=/var/local/vmail/%n/**dovecot.sieve
> >>>  sieve_dir=/var/local/vmail/%n/**sieve
> >>>  sieve_extensions = +notify +imapflags
> >>> }
> >>>
> >>> The managesiege:
> >>>
> >>> protocol managesieve {
> >>> # Specify an alternative address:port the daemon must listen on
> >>> # (default: *:2000)
> >>>  listen = localhost:2000
> >>>  managesieve_logout_format = bytes ( in=%i : out=%o )
> >>> }
> >>> (this one is working fine, I can edit the filters through roundcube
> >>> webmail, and the correct file (/var/local/vmail/%n/dovecot.**sieve) is
> >>> edited)
> >>>
> >>> the lda part:
> >>>
> >>> protocol lda {
> >>>  postmaster_address = foo at bar.com
> >>>  mail_plugins = sieve
> >>> }
> >>>
> >>> I think all is in place to allow dovecot to use sieve... ?
> >>>
> >>> One more thing:
> >>>
> >>> dovecot --version
> >>> 1.2.15
> >>>
> >>>
> >>> Any help will be welcomed :).
> >>>
> >>> Thanks in advance !
> >>>
> >>> Cheers,
> >>>
> >>> C.
> >>>
> >>
> >> Have you checked the MTA configuration. Does it use dovecot's LDA ?
> >>
> >> Antoine
> >
> > Hello Antoine (and List),
> >
> > Well, it should use dovecot, as the mails are delivered to the user 
> > inbox - and I don't think postfix knows about them..
> > How may I be sure otherwise that postfix really uses dovecot?
> >
> > Cheers,
> >
> > C.
> 
> If you are using dovecot 1.2, I think lda should show lines like the 
> following in your log.
> 
> Mar 11 14:14:06 mailstor1 dovecot: deliver(user at domain.tld): sieve: 
> msgid=<xxxxx>: stored mail into mailbox 'INBOX'
> 
> 'deliver' refers to lda.
> 

Hmm... strange, doesn't show up like that in logs:
Mar 20 08:14:54 sqdf3 postfix/smtpd[27509]: connect from host.foo.bar[...]
Mar 20 08:15:16 sqdf3 postfix/smtpd[27509]: 892335659F4: client=host.foo.bar[...]
Mar 20 08:15:35 sqdf3 postfix/cleanup[27516]: 892335659F4: message-id=<>
Mar 20 08:15:35 sqdf3 postfix/qmgr[11614]: 892335659F4: from=<me at foo.bar>, size=279, nrcpt=1 (queue active)
Mar 20 08:15:35 sqdf3 postfix/virtual[27518]: 892335659F4: to=<rcpt at domain.ltd>, relay=virtual, delay=27, delays=27/0.03/0/0.14, dsn=2.0.0, status=sent (delivered to maildir)
Mar 20 08:15:35 sqdf3 postfix/qmgr[11614]: 892335659F4: removed

Maybe the problem is there (postfix main.cf):
virtual_transport = virtual 
I have virtual users and a mailman running on the same domain :/.

If postfix doesn't use dovecot, how comes that mails are put in the right place ?



More information about the dovecot mailing list