linuxconf Howto/FAQ

Howto index

Using spam-assasin in virtual email domains with procmail

When calling spamc from a procmailrc file, you must supply the USER id on the command line. spamc normally check in the system password database to grab the user id from the numeric ID. Since virtual email users are not stored in this database, spamc is confused.

Here is a recipe to solve this:

:0fw
| /usr/bin/spamc -u $USER