spamassassin-users December 2011 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Re: p5-Mail-SpamAssassin-3.3.2_2 error

Re: p5-Mail-SpamAssassin-3.3.2_2 error

From: Mark Martinec <Mark.Martinec+sa_at_nospam>
Date: Thu Dec 01 2011 - 16:04:53 GMT


> > > "FreeBSD + Qmail + Vpopmail"
> > > *Dec 1 10:40:46 mail spamd[67490]:
> > > spamd: handle_user unable to find user: ''*

> > A username '' does not exist. Either you should not
> > pass the full recipient's e-mail address in the -u argument to spamc
> > but use a localpart only, or perhaps you are missing the --vpopmail
> > option in spamd.

> In case the mail there, I just modified to ""
> So if I enable the "-v", you should find the User?

I don't know, I'm not familiar with Qmail and Vpopmail setup.

All I know is that spamd has some extra code to deal with
Vpopmail virtual users, which is enabled by the --vpopmail
command line option to spamd. In absence of this option,
a lookup for a username goes to a system's getpwnam()
function, which obviously does not handle e-mail addresses
with domain part, but expects a plain username.

This can be dealt with by passing just a localpart of
a recipient address as a username in a spamc call.

It is unfortunate that spamd's logging does not distinguish
between four instances for a
  "spamd: handle_user unable to find user:"
message, so I can't tell from your posting which of these
four cases failed. I guess this should be improved for 3.4.