spamass-milt-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spamass-milter identifies all recipients as 'root'


From: Dan Nelson
Subject: Re: spamass-milter identifies all recipients as 'root'
Date: Tue, 21 Jan 2003 14:48:04 -0600
User-agent: Mutt/1.5.3i

In the last episode (Jan 21), Arjen de Korte said:
> Something in the operation of spamass-milter puzzles me. I have the
> following setup over here:
> 
>       sendmail 8.12.6
>       spamassassin 2.50-cvs
>       spamass-milter 0.1.3a
> 
> When spamd is called through spamass-milter, for one reason or the
> other it thinks all messages are for 'root' (setuid to 'root'):
> 
> Jan 21 20:51:00 linux spamd[11127]: connection from localhost [127.0.0.1] at  
> port 33560
> Jan 21 20:51:00 linux spamd[11163]: info: setuid to root succeeded
> Jan 21 20:51:00 linux spamd[11163]: Still running as root: user not specified 
>  with -u, not found, or set to root.  Fall back to nobody.
> Jan 21 20:51:00 linux spamd[11163]: processing
> 
> When spamd (still running) is called by spamc, spamd correctly identifies the 
> recipient as 'arjen' (setuid to 'arjen'):
> 
> Jan 21 20:56:57 linux sendmail[11311]: h0LJuv7G011306:  to=<address@hidden>, 
> delay=00:00:00, xdelay=00:00:00, mailer=local,  pri=30938, dsn=2.0.0, 
> stat=Sent
> Jan 21 20:57:00 linux spamd[11127]: connection from localhost [127.0.0.1] at  
> port 33563
> Jan 21 20:57:00 linux spamd[11316]: info: setuid to arjen succeeded
> Jan 21 20:57:02 linux spamd[11316]: processing
> 
> In both cases X-Spam-Status: headers are correctly inserted in the mail.
> 
> Why can't spamd correctly identify the recipient and setuid to user
> 'arjen' when it is called through spamass-milter? Why does it think
> the messages (without exception) are for root? Is this because I'm
> running the spamassassin-2.50-cvs, is it in the configuration of
> spamd or did I miss something important in the configuration of
> spamass-milter?

spamass-milter hooks into the beginning of the message receipt stage,
whereas procmail/spamc hooks into the very end of the delivery stage,
after sendmail has determined the recipient's name.  Try using the -u
flag when you launch spamass-milter.  This will make it pull the
recipient name from the envelope and pass it to spamc.  Note that since
the milter is called only once for each incoming message, an email
CC'ed to two local recipients will get miltered only once, with the
default settings.

-- 
        Dan Nelson
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]