Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491312 - net-mail/dovecot with net-mail/dovecot-antispam fails to run mail-filter/dspam as virtual user
Summary: net-mail/dovecot with net-mail/dovecot-antispam fails to run mail-filter/dspa...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-15 10:08 UTC by Guillaume Hilt
Modified: 2014-12-14 12:38 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Hilt 2013-11-15 10:08:48 UTC
When using dovecot with dovecot-antispam and dspam backend, dspam can't be executed by dovecot as it uses uid/gid of virtual user, giving this error :
Debug: executing /usr/bin/dspam failed: 13 (uid=1001, gid=12)

Reproducible: Always

Steps to Reproduce:
1. Install dovecot, dovecot-antispam and dspam
2. Configure dovecot-antispam plugin to use dspam backend
3. Move an email from or to the Spam folder
Actual Results:  
Error in mail.log :
Debug: executing /usr/bin/dspam failed: 13 (uid=1001, gid=12)

When running dspam by hand with dovecot virtual user vmail (mail or vmail in most cases) :
$ sudo -u vmail /usr/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail
sudo: unable to execute /usr/bin/dspam: Permission denied 




Changing dspam binary permissions fixes the issue :
$ chmod 4511 /usr/bin/dspam
Comment 1 Tim Harder gentoo-dev 2014-12-14 01:56:55 UTC
You should be using /usr/bin/dspamc instead which any user can run and that communicates with dspam running in daemon mode.
Comment 2 Guillaume Hilt 2014-12-14 12:38:38 UTC
Dovecot configuration defaults to /usr/bin/dspam, that's why I opened this bug.