Re: [Exim] Re: system filter using procmail?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Soon-Son Kwon
Fecha:  
A: exim-users
Asunto: Re: [Exim] Re: system filter using procmail?
Hello...I have been trying to apply procmail to exim but still a long way.

I followed your technique as following(based on your homepage) :-)
I added comment where I changed anything.

With this configuration, every incoming message were added to
/var/spool/mail/mail.

I think this has something to do with the following

    user = mail


Does anyone know how to modify it so that it can be delivered to
the proper user's mbox or forwarded to the specified address
defined in the /etc/aliases?

And any option needed when invoking procmail in the spamcheck part?

Thanks very much.

---
Edit /etc/exim/exim.conf to include scanning (filtering) by spamassassin
in the delivery of a message.
In the Transports section add the following (order is irrelevant) :


# Spam Assassin
spamcheck:
    driver = pipe


    command = /usr/sbin/exim -oMr procmail-scanned -bS # changed here
    transport_filter = /usr/bin/procmail #changed here


    bsmtp = all


    home_directory = "/tmp"
    current_directory = "/tmp"


    # 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 =


Insert the following at the top of the Directors section :


# Spam Assassin
spamcheck_director:

    # do not use this director when verifying a local-part at SMTP-time
    no_verify


    # 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 { {!eq {$received_protocol}{procmail-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}" #changed here
    driver = smartuser
    transport = spamcheck





On Tue, Jul 23, 2002 at 09:51:55AM -0500, Derrick 'dman' Hudson wrote:
> --
> On Tue, Jul 23, 2002 at 12:05:13PM +0900, Soon-Son Kwon wrote:
> | Hello folks...
> |
> | Is there anyone using procmail for filtering all the incoming messages
> | instead of using exim's builtin system message filter facility?
>
> Not me. It is possible to do, however, following the same (general)
> technique as my spamassassin docs or as drweb instructs you to do.
> (Note: I don't use drweb either, I'm assuming based on what I saw of
> someone else's config)


I am really curious to see that config... :-)
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
           (o_             **WTFM**
(o_  (o_   //\
(/)_ (/)_  V_/_        http://kldp.org
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*