On Tuesday 13 March 2007 16:57, Marek Zawadzki wrote:
> On Tue, Mar 13, 2007 at 04:51:24PM +0100, Magnus Holmgren wrote:
> [...]
>
> > > # 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
> >
> > That's a bit weird. I take it there is no occurrence of "system-filter"
> > in the config?
>
> No, nothing like that in there.
>
> > Can you show the full contents of the system filter
>
> Well, all I have is above.
>
> > as well as the mail_spool transport options?
>
> There you go:
>
> ### transport/30_exim4-config_mail_spool
>
> # This transport is used for local delivery to user mailboxes in
> # traditional
> # BSD mailbox format.
> #
> mail_spool:
> debug_print = "T: appendfile for $local_part@$domain"
> driver = appendfile
> file = /var/mail/$local_part
There you go. Since the "save" filter command doesn't redirect to a *mail*
address, $local_part is still set to "system-filter". Since the system filter
sets the file to save to properly, you need a transport that doesn't override
it (I guess mail_spool is also used for normal local deliveries). The default
address_file should work.
--
Magnus Holmgren holmgren@???
(No Cc of list mail needed, thanks)