From: Eero Volotinen on
Quoting Per Laine <per.laine(a)gmail.com>:

> Hi all!
>
> This is my first post to the list and i hope I can get some help.
>
> I'm using postfix as MTA with dovecot IMAP on Ubuntu Karmic and I'm
> trying to get server-side mail filtering with sieve. Everything seems
> like it's working but it's not. I telnet localhost sive and list rules
> and it seems like they are active. But it doesn't work. I host two
> virtual domains with virtual users.
>
> I think that maybe it's something with the transport from postfix =>
> dovecot but i really don't have a clue.
>
> Anyone with a similar setup who can be of any assistance?

Well, atleast you need to use dovecot deliver for mailbox command:

mailbox_command = /usr/libexec/dovecot/deliver

read the docs for sieve from dovecot.org

--
Eero

From: Brian Evans - Postfix List on
On 1/12/2010 5:06 AM, Per Laine wrote:
> Hi all!
>
> This is my first post to the list and i hope I can get some help.
>
> I'm using postfix as MTA with dovecot IMAP on Ubuntu Karmic and I'm
> trying to get server-side mail filtering with sieve. Everything seems
> like it's working but it's not. I telnet localhost sive and list rules
> and it seems like they are active. But it doesn't work. I host two
> virtual domains with virtual users.
>
> I think that maybe it's something with the transport from postfix =>
> dovecot but i really don't have a clue.
>
> Anyone with a similar setup who can be of any assistance?
>

This is because your virtual delivery is using the virtual(8) agent
which does not use sieve.
You need to define a pipe transport in master.cf that points to
dovecot's deliver agent.

A good reading is here:
http://www.postfix.org/VIRTUAL_README.html#in_virtual_other

> Postfix version 2.6.5
> Dovecot version 1.1.11
>
> my main.cf:
>

We prefer 'postconf -n' because it makes it easier to read and it sees
what Postfix sees.

> virtual_mailbox_domains = /etc/postfix/vhosts
> virtual_mailbox_base = /home/vmail
> virtual_mailbox_maps = hash:/etc/postfix/vmaps
> virtual_minimum_uid = 1000
> virtual_uid_maps = static:5000
> virtual_gid_maps = static:5000
>

A good start, but no virtual_transport statement.

From: Brian Evans - Postfix List on
On 1/12/2010 5:11 AM, Eero Volotinen wrote:
> Quoting Per Laine <per.laine(a)gmail.com>:
>
>> Hi all!
>>
>> This is my first post to the list and i hope I can get some help.
>>
>> I'm using postfix as MTA with dovecot IMAP on Ubuntu Karmic and I'm
>> trying to get server-side mail filtering with sieve. Everything seems
>> like it's working but it's not. I telnet localhost sive and list rules
>> and it seems like they are active. But it doesn't work. I host two
>> virtual domains with virtual users.
>>
>> I think that maybe it's something with the transport from postfix =>
>> dovecot but i really don't have a clue.
>>
>> Anyone with a similar setup who can be of any assistance?
>
> Well, atleast you need to use dovecot deliver for mailbox command:
>
> mailbox_command = /usr/libexec/dovecot/deliver
>

This would be good if the OP was using local domains instead of virtual.
Only local(8) uses mailbox_command.

From: Per Laine on
Ok, thanks for the reply. When I set "virtual_transport = dovecot" and add

dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f
${sender} -d ${recipient}

to master.cf I get Can't connect to auth server at
/var/run/dovecot//auth-master: No such file or directory in
dovecot-deliver.log. I guess that postfix is doing things right by now
but dovecot somehow is misconfigured.



On Tue, Jan 12, 2010 at 2:49 PM, Brian Evans - Postfix List
<grknight(a)scent-team.com> wrote:
> On 1/12/2010 5:06 AM, Per Laine wrote:
>> Hi all!
>>
>> This is my first post to the list and i hope I can get some help.
>>
>> I'm using postfix as MTA with dovecot IMAP on Ubuntu Karmic and I'm
>> trying to get server-side mail filtering with sieve. Everything seems
>> like it's working but it's not. I telnet localhost sive and list rules
>> and it seems like they are active. But it doesn't work. I host two
>> virtual domains with virtual users.
>>
>> I think that maybe it's something with the transport from postfix =>
>> dovecot but i really don't have a clue.
>>
>> Anyone with a similar setup who can be of any assistance?
>>
>
> This is because your virtual delivery is using the virtual(8) agent
> which does not use sieve.
> You need to define a pipe transport in master.cf that points to
> dovecot's deliver agent.
>
> A good reading is here:
> http://www.postfix.org/VIRTUAL_README.html#in_virtual_other
>
>> Postfix version 2.6.5
>> Dovecot version 1.1.11
>>
>> my main.cf:
>>
>
> We prefer 'postconf -n' because it makes it easier to read and it sees
> what Postfix sees.
>
>> virtual_mailbox_domains = /etc/postfix/vhosts
>> virtual_mailbox_base = /home/vmail
>> virtual_mailbox_maps = hash:/etc/postfix/vmaps
>> virtual_minimum_uid = 1000
>> virtual_uid_maps = static:5000
>> virtual_gid_maps = static:5000
>>
>
> A good start, but no virtual_transport statement.
>



--
Mvh Per Laine
Tel. 0703 - 82 50 84
per(a)laine.se