Hello Jan,
Jan Suchanek, 16.09.2006 (d.m.y):
> I am using an exim SMTP server with SpamAssassin. SpamAssassin does it
> work quite good so I want to move all message with a SPAM tag
> (*****SPAM*****) to an special folder. I tied following:
>
> router:
>
> delspam:
> condition = "${if match {$h_subject:}{^\*\*\*\*\*SPAM\*\*\*\*.*} {0}{1}}"
> driver = accept
> transport = rmspam
> no_more
>
> transport:
>
> rmspam:
> driver = appendfile
> file = /var/log/exim/spam/${local_part}_spam
>
>
> the condition in the router returns:
>
> "failed to expand condition "${if match {$h_subject:}{^*****SPAM****.*}
> {0}{1}}" for delspam router: regular expression error in
> "^*****SPAM****.*": nothing to repeat at offset 1
>
> What is wrong here?
>
> The other question is: I am writing the SPAM Mails in a file but the
> normal delivery works with lmtp. Is there a way to manipulate the
> localpart so I can send the SPAM to an special Mail-Account?
You mention lmtp deliveries: Does your exim deliver local mails to a
cyrus box?
If so, I would let sieve do the job on the cyrus side.
Regards,
Christian Schmidt
--
Der Jüngling, der keine Tränen vergossen hat, ist ein Wilder. Der
Greis, der nicht lachen will, ist ein Narr.
-- George de Santayana