Re: [exim] How to copy every accepted message to one mailbox…

Top Page
Delete this message
Reply to this message
Author: Marek Zawadzki
Date:  
To: exim-users
Subject: Re: [exim] How to copy every accepted message to one mailbox (system-wide)?
On Mon, Mar 12, 2007 at 04:07:00PM +0000, Jason_Meers wrote:
[...]
> Use a system filter with an entry like this:
>
> # Exim Filter
> unseen deliver     spam-sorter@???    errors_to     
> postmaster@???

>
> Also pay attention to these configuration options:
>
> system_filter = xxxxxx
> system_filter_reply_transport = xxxxxx
> system_filter_user = xxxxx


OK, it now works almost as I wanted (thanks).
One detail though - Exim keeps saving messages to '/var/mail/system-filter'
instead of the mailboxes I've configured in my filter:

    # cat /etc/mail/filters/exim.filter
    unseen save /var/spool/mail/spam
    unseen save /var/spool/mail/notspam


    # grep system_filter /var/lib/exim4/config.autogenerated 
    system_filter = /etc/mail/filters/exim.filter
    system_filter_file_transport = mail_spool
    system_filter_user = Debian-exim
    system_filter_group = mail


    # ls -l /var/spool/mail/spam /var/spool/mail/notspam \
    /var/mail/system-filter
    -rw-rw----  1 Debian-exim mail 12043928 Mar 13 16:02
    /var/mail/system-filter
    -rw-rw----  1 notspam     mail        0 Mar 13 14:23
    /var/spool/mail/notspam
    -rw-rw----  1 spam        mail        0 Mar 13 09:03 
    /var/spool/mail/spam



Does anybody know what is going on?

-marek

--
It's ten o'clock. Do you know where your source code is?