[Dovecot] Dovecot antispam plugin with virtual users
Hi, I'm running dovecot 1.2.11 with the antispam plugin 1.2+20090702-1+b1 installed from the debian repos (squeeze) and dspam 3.9.0+git20100416-1. Unfortunately this doesn't seem to work well with my virtual users, stored on a local openldap server: While sending mail manually to dspam does work, there's some trouble when trying to use the antispam plugin. I tried using both sendmail (exim4 in my case) and configuring antispam_mail_sendmail = /usr/bin/dspam to point to dspam, with similar results:
exim: [15042] Failed to get user name for uid 5001
dspam: dspam[18961]: Unable to determine the runtime user
both errors are reproducible by running exim/dspam with sudo -u \#5001
with 5001 being the virtual uid used of the user that is logged in through imap. Of course the uid 5001 is invalid for the rest of the system, so it can't run anything, but as far as I can tell the plugin uses this uid to call the respective programs :\
Now I was wondering if it was possible to keep the plugin from using the imap-uid and instead specifying one elsewhere? I guess this would be of fairly great interest for everyone using virtual users, be it ldap or anything else. Or is there a different way to do this? Do I maybe just miss setting a variable somewhere?
Philipp
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 4 May 2010, Philipp wrote:
Now I was wondering if it was possible to keep the plugin from using the imap-uid and instead specifying one elsewhere?
The IMAP process is using this uid and it has loaded antispam. As far as I know, for security reasons they cannot change UID back to root (or any other one).
virtual users, be it ldap or anything else. Or is there a different way to do this? Do I maybe just miss setting a variable somewhere?
Allow your vmail user to run dspam, e.g. via sudo.
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS9++Dr+Vh58GPL/cAQII+AgAwjpXSsJymVF9OwBZw1P4+9A884nwn6bp fuZbFtWy2vrvswTmULUlKyKq6pXjXGt7wXMFWJNo/AyrBBhr04dJTlQglw5fteRx 7/V0t6IqDJCuer2erB1U78rDh5oVdRboxkq9K96v/C4C4pXwsejAYsffg9lMAoB9 T/ObpmcnNCQfm8Y5ZuUzTGzFGE5RgStDlOlITrnwYj3Zmz8JHRxIDwwk6zWaRoxE KBt+B4Ex1zO3cXCIqGjeo+arEF/og5aNvmzwqTiVVK77+VwVnHkYX0jQD24RImgj kegoZ/G3BiYwHLyiIkXj/n/oNLl79M/gujMRfKl9UG3gyvX01U1ukA== =VvYp -----END PGP SIGNATURE-----
participants (2)
-
Philipp
-
Steffen Kaiser