Re: [Exim] Spamassassin Problem

Pàgina inicial
Delete this message
Reply to this message
Autor: Marc MERLIN
Data:  
A: exim-users
Assumpte: Re: [Exim] Spamassassin Problem
On Sun, Mar 31, 2002 at 01:16:25PM +0200, Patrick von der Hagen wrote:
> On my system, it does not.


Ok, so that's something for me to fix then.

> Which userid is running spamassassin? Is this user an "trusted user"?


On Sun, Mar 31, 2002 at 03:41:13PM -0600, dman wrote:
> I'm not using exim3 any more. Do note that the user specified in the
> "user=" option on the transport must be a trusted user to set the
> envelope sender and to set the received_protocol.
>
> Are you using the recent config submitted by Nigel that uses BSMTP or
> are you using the old one that uses a shell and the "-f" option to
> exim?


Let me paste what I'm using again:
# Spam Assassin
spamcheckbatch:
    driver = pipe
    command = /usr/sbin/exim -oMr spam-scanned -bS
    transport_filter = /usr/bin/spamc -p 784
    bsmtp = all
    home_directory = "/etc/mail/spamassassin"
    current_directory = "/etc/mail/spamassassin"
    # must use a privileged user to set $received_protocol on the way back in!
    user = mail
    group = mail
    return_path_add = false
    log_output = true
    return_fail_output = true
    prefix =
    suffix =


moremagic.m.o:/etc/mail# grep trust /etc/mail/exim.conf
trusted_users = mail:merlin

I'm sure that the older version with -f would work, but I'm getting a syntax
error on it:
spamcheck:
    driver = pipe
    command = "/usr/sbin/exim -i -oMr spam-scanned -f ${if {eq {${sender_address}}{}} {mailer-daemon} {${sender_address}} } -- ${local_part}"
    transport_filter = /usr/bin/spamc -p 784
    home_directory = "/etc/mail/spamassassin"
    current_directory = "/etc/mail/spamassassin"
    # must use a privileged user to set $received_protocol on the way back in!
    user = mail
    group = mail
    log_output = true
    return_fail_output = true


LOG: 0 MAIN PANIC
== xxx@??? T=spamcheck defer (0): Expansion of "${if" from command
"/usr/sbin/exim -i -oMr spam-scanned -f ${if {eq {${sender_address}}{}}
{mailer-daemon} {${sender_address}} } -- ${local_part}" in spamcheck transport
failed: condition name expected, but found ""

I've tweaked exim quite a bit, but I can't seem to solve the syntax error

Marc
--
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking


Home page: http://marc.merlins.org/ | Finger marc_f@??? for PGP key