Re: [exim] Per-User SpamAssassin config

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nigel Wade
Date:  
À: exim-users
Sujet: Re: [exim] Per-User SpamAssassin config
Richard Hobbs wrote:
> Hello,
>
>
>>-----Original Message-----
>>From: exim-users-bounces@???
>>[mailto:exim-users-bounces@exim.org] On Behalf Of Nigel Wade
>>Sent: 20 July 2005 17:25
>>To: exim-users@???
>>Subject: Re: [exim] Per-User SpamAssassin config
>>
>>Richard Hobbs wrote:
>>
>>>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.
>>>
>>
>>Is "spamcheck" a trusted user? If not it won't be able to set
>>the protocol
>>on the exim command.
>
>
> Trusted in what sense, exactly? The user is a system user with a home
> directory, but a user with no shell (in /etc/passwd) and no password (in
> /etc/shadow).
>


The trusted_user setting in exim.conf. Only trusted users can do certain
things, one of them being setting the protocol.

http://exim.org/exim-html-4.50/doc/html/spec_5.html#SECT5.2

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555