SA Bugzilla – Bug 3929
Consider email aliases to find user for storing prefs and bayes data
Last modified: 2005-07-16 04:22:52 UTC
Users often have a number of email aliases, mostly to cope with address typos, but also to cover the various schemas people use to derive the email address from the name of a person. The user John Doe may, for example, have the login jd and the following aliases: John.Doe: jd JohnDoe: jd Jon.Doe: jd JonDoe: jd J.Doe: jd JDoe: jd Doe: jd Jonny: jd Anon: jd However, any of these email aliases will cause spamd to claim, e.g. spamd[nnnnn]: handle_user: unable to find user 'John.Doe'! making it impossible to store user_prefs and Bayes data in /home/jd/.spamassassin (or whatever John Doe's home directory may be). I think that virtual user tables can be used to cope with this situation, but this may create a lot of extra configuration and maintenance work - especially in large companies. And, why install a new database, if /etc/aliases is already available? Okay, here is my humble suggestion: Before giving up on a name, let's try to find it in the aliases data base. The diff in the attachment has been produced against 3.0.1. Could this be a helpful enhancement? Carsten Emde <ce@ceag.ch>
Created attachment 2490 [details] Proposed patch to spamd 3.0.1
After several days of testing on a number of systems the patch still works without any major problem. Fixed a minor problem in the logmsg issued when a user was not found in the aliases database. Applied minor changes to avoid perl warnings. Increased severity and priority :-).
Created attachment 2500 [details] Proposed patch to spamd 3.0.1
I'm -1 on adding this to the codebase. The way spamd is designed it is up to the calling program, either spamd or something else, to determine what the username of record should be and send that in the User: header to spamd. An alternate method might be some sort of plugin hook that could be added to allow a plugin to step in and alter the passed in username.
'an alternate method might be some sort of plugin hook that could be added to allow a plugin to step in and alter the passed in username.' yes, IMO, this is the correct way to implement this. the hook would be called by spamd when it receives the "User" header.
Triage: Closing as WONTFIX based on comments by Michael and Justin. Plugin contribution would be welcome.
*** Bug 4482 has been marked as a duplicate of this bug. ***