RE: [exim] Per-User SpamAssassin config

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Richard Hobbs
Data:  
Para: 'Oliver Egginger', exim-users
CC: 
Assunto: RE: [exim] Per-User SpamAssassin config
Hello,

I have found our latest problem - we have a mail loop! Here's the command
used to send the mail back to exim once it's been checked (I think):

/usr/sbin/exim4 -oMr spam-scanned -bS

And here are the router and transport in full, which I am using:

THE ROUTER:
# spamassassin stuff
sa_router:
   no_verify
   check_local_user
   # When to scan a message :
   # - it isn't already flagged as spam from Spamassassin
   # - it isn't already scanned
   # - it isn't local
   # - it isn't from one internal domain user to another
   condition = "${if and { \
                         {!def:h_X-Spam-Flag:} \
                         {!eq {$received_protocol}{spam-scanned}} \
                         {!eq {$received_protocol}{local}} \
                         {!eq {$sender_address_domain}{$domain}} \
                         } \
                         {1}{0}}"
   driver    = accept
   transport = sa_spamcheck
   local_parts = /etc/spamassassinUsers
# end of spamassassin stuff


THE TRANSPORT:
# spamassassin stuff
sa_spamcheck:
driver = pipe
command = /usr/sbin/exim4 -oMr spam-scanned -bS
use_bsmtp = true
transport_filter = /usr/bin/spamc
home_directory = "/tmp"
current_directory = "/tmp"
user = spamcheck
group = spamcheck
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =
# end of spamassassin stuff

Also, we are using exim-daemon-light as our MTA.

Any ideas??

Thanks in advance,
Richard.

-- 
Richard Hobbs (Systems Administrator)
Toshiba Research Europe Ltd. - Speech Technology Group
Web: http://www.toshiba-europe.com/research/
Email: richard.hobbs@???
Tel: +44 1223 376964        Mobile: +44 7811 803377 


> -----Original Message-----
> From: Oliver Egginger [mailto:oliver.egginger@dvz.fh-giessen.de]
> Sent: 20 July 2005 12:48
> To: Richard Hobbs
> Cc: exim-users@???
> Subject: RE: [exim] Per-User SpamAssassin config
>
> > I can change the transport all I like, but spamd still runs
> as root.
> > Should this be the case?
>
> Yes. Thats necessary for binding to port 783.
>
> > Also, what about the autolearn failure? What can do to get
> autolearn working
> > in spamd?
>
> Dimmish. You don't post an error message which is specific enough. May
> be insufficient rights of access to the bayes database for
> the sa-learn
> tools.
>
> - oliver
>
>
>
>
>
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by MCI's Internet
> Managed Scanning Services - powered by MessageLabs. For
> further information visit http://www.mci.com
>




_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com