Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17912

dovecot, virtual users and dspam

$
0
0

Hello,

This problem doesn't let me sleep two nights now…

Setup

I have set up postfix, dovecot with virtual users and dspam. I can receive and send mail. dspam seem to work. All incoming mail has dspam signatures.

I user PostgreSQL as a userdb. All virtual users have uid/gid starting 70000.

  • postfix 2.10.1
  • dovecot 2.2.5
  • dspam 3.10.2

Problem

The problem is that I can't retrain dspam. When I move mail to the Junk directory dpam fails and dovecot aborts the move. I traced problem to the fact that dovecot seems to run dspam with uid/gid of virtual user. And dspam seem to be upset by it.

Sep 1 23:31:36 pointlessone dovecot: imap(chebatron@mydomain.com): Debug: dspam error:23938 prefix=imap(chebatron@mydomain.com): Sep 1 23:31:36 pointlessone dovecot: imap: Error: Sep 1 23:31:36 pointlessone dovecot: imap: Error: Sep 1 23:31:36 pointlessone dovecot: imap(chebatron@mydomain.com): Debug: dspam error: 23938 executing /usr/bin/dspam failed: 13 (uid=70000, gid=70000) Sep 1 23:31:36 pointlessone dovecot: imap: Error: Sep 1 23:31:36 pointlessone dovecot: imap: Error: 

Is there a way to make dovecot run dspam as a real user? Or maybe another way to configure dovecot/dspam integration?

submitted by chebatron
[link][3 comments]

Viewing all articles
Browse latest Browse all 17912

Trending Articles