[Dovecot] Getting started with sieve and conversion from procmail

Alex mysqlstudent at gmail.com
Thu Nov 17 02:49:53 EET 2011


Hi,

>>>> Nov 15 19:51:07 mail02 dovecot: lda(alexuser): Fatal:
>>>> setresgid(12(mail),12(mail),12(mail)) failed with euid=500(alexuser):
>>>> Operation not permitted
>>>
>>>> Where is it trying to write that it can't?
>>>
>>> It's trying to change the process's UID/GID to mail/mail for some
>>> reason. Have you set "mail_uid=mail" or something?
>>
>> mail_uid isn't set, but I have the following in dovecot.conf:
>>
>> mail_gid = mail
>
> The error most likely happens because of this. Is there a reason why you want this?
>
>> mail_privileged_group = mail
>
> This should be enough for creating lock files to /var/spool/mail/. Although dovecot-lda can't use this setting, since it's not started as root..

Okay, that fixed it. It's now delivering mail properly, thanks.

Just to be clear I understand, if I use the following .procmailrc, it
should save all messages with the X-Spam-Status header in xspamstatus,
and everything else gets delivered to /var/spool/mail/user, correct?

DELIVER=/usr/libexec/dovecot/deliver

:0
* ^X-Spam-Status
| $DELIVER -m xspamstatus

:0
| $DELIVER

This is just a simple test which appears to work the way I outlined,
but wanted to be sure.

Thanks again for sticking with me.
Best,
Alex



More information about the dovecot mailing list