You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Stefan Bauer <in...@edv-fix.de> on 2006/08/21 22:21:09 UTC
SA logging options wrong uid Debian-exim sa-stats
Hello List,
iam using Debian with Spamassasin 3.1.1-1 and exim 4.62.
Iam looking forward to use sa-stats[1] with the stats from spamassasin
from /var/log/exim4/mainlog.log like:
Aug 21 17:58:51 main spamd[4064]: spamd: result: . -1 - AWL,BAYES_00
scantime=2.3,size=5146,user=Debian-exim,uid=104,required_score=3.0,rhost=localhost.
localdomain,raddr=127.0.0.1,rport=49475,mid=<24...@jkart.de>,rmid=
<_W...@murphy>,bayes=1.11668452262847e-11,autolearn=no
this works but not very well. Spamassasin logs to the file above but
the user=Debian-exim part is always Debian-exim. How can i setup
Spamamsassin to log the files or deliver the files under the uid of
the user who received the mails?
Running sa-stats only let me get stats[2] for the user Debian-exim
which lists all mails.
So my question is how can i negotiate SA to deliver the mails under
the UID of the users to get usable logs?
[1] http://david.hexstream.co.uk/scripts/sa-stats/sa-stats.pl.html
[2] http://www.plzk.de/stats/spam
--
thanks in advance
Stefan Bauer
---------------------------------->
www.plzk.de - www.plzk.com
---------------------------<
Re: SA logging options wrong uid Debian-exim sa-stats
Posted by Magnus Holmgren <ho...@lysator.liu.se>.
On Monday 21 August 2006 22:21, Stefan Bauer took the opportunity to say:
> iam using Debian with Spamassasin 3.1.1-1 and exim 4.62.
>
> Iam looking forward to use sa-stats[1] with the stats from spamassasin
> from /var/log/exim4/mainlog.log like:
>
> Aug 21 17:58:51 main spamd[4064]: spamd: result: . -1 - AWL,BAYES_00
> scantime=2.3,size=5146,user=Debian-exim,uid=104,required_score=3.0,rhost=lo
>calhost.
> localdomain,raddr=127.0.0.1,rport=49475,mid=<245240805.20060821175627@jkart
>.de>,rmid=
> <_W...@murphy>,bayes=1.11668452262847e-11,autolearn=no
>
> this works but not very well. Spamassasin logs to the file above but
> the user=Debian-exim part is always Debian-exim. How can i setup
> Spamamsassin to log the files or deliver the files under the uid of
> the user who received the mails?
This is an Exim question, which you should ask exim-users@exim.org or
pkg-exim4-users@lists.alioth.debian.org about.
> Running sa-stats only let me get stats[2] for the user Debian-exim
> which lists all mails.
>
> So my question is how can i negotiate SA to deliver the mails under
> the UID of the users to get usable logs?
It depends on how you call SpamAssassin from Exim, which in turn partly
depends on whether you want personal user preferences or not. With sa-exim
you can't. With the exiscan ACL condition (spam = <user>) you can, but you
have to make special arrangements to unambiguously decide which user to scan
for if there are many recipients. If you call SA late in the delivery
process, for instance as a transport filter, once for each recipient, then
it's easy.
So please come to the Exim mailing lists and describe your setup in more
detail.
> [1] http://david.hexstream.co.uk/scripts/sa-stats/sa-stats.pl.html
> [2] http://www.plzk.de/stats/spam
--
Magnus Holmgren holmgren@lysator.liu.se
(No Cc of list mail needed, thanks)