Re: [Exim] Conditional drive me nuts!

Pàgina inicial
Delete this message
Reply to this message
Autor: Scott M. Nolde
Data:  
A: Marc Perkel
CC: exim-users
Assumpte: Re: [Exim] Conditional drive me nuts!
Marc Perkel(marc@???)@2002.06.11 11:08:04 +0000:
>
> Thanks Scott - but I tried that - and I get message looping as if it
> doesn't see the $recieved_protocol information.
>
> One thing I should say is - I'm running virtual email - and I don't have
> real users in my /etc/passwd file. If that makes a difference.
>
> Why doesn't the $recieved_protocol test work for me?
>
> Scott M. Nolde wrote:
>
> ># Spam Assassin
> >spamcheck_director:
> >    # When to scan a message :
> >    #   -   it isn't already flagged as spam
> >    #   -   it isn't already scanned
> >    #   -   it didn't originate locally (as long as I don't harbor
> >    #       spammers :-))
> >    condition = "${if and { \
> >                        {!def:h_X-Spam-Flag:} \
> >                        {!eq {$received_protocol}{spam-scanned}} \
> >                        {!eq {$received_protocol}{local}} \
> >                        } {1}{0}}"
> >    driver = smartuser
> >    transport = spamcheck

> >


Well, that works for me.  The spamcheck transport looks like this for me:
spamcheck:
    driver = pipe
    command = "/usr/local/bin/spamc -f | /usr/local/sbin/exim -oMr \
              spam-scanned -i -f \"${if eq {${sender_address}}{}  \
              {mailer-daemon}{${sender_address}}}\" -- \"\\$LOCAL_PART\""
    use_shell = true
    home_directory = "/etc/mail/spamassassin"
    current_directory = "/tmp"
# must use a privileged user to set $received_protocol on the way back in!
    user = sendmail
    group = mail
    path = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
    log_output = true
    return_fail_output = true
    prefix =
    suffix =
    check_string =
    escape_string =
    return_path_add = false


And another few checks:
- is spamd running?
- is the spamassassin director the first director?
- and can you provide some debugs if any of the above don't weork?
--
Scott Nolde
GPG Key 0xD869AB48