Lina, Patrick wrote:
> Hi,
>
> I'm a new user to this mailinglist and beginning SA learner.
> We have a site-wide postfix/spamassassin server, which tags
> spam and sends it to our internal Exchange server.
> Currently I'd like to train our bayes database with spam/ham
> but don't have a sufficient recent supply of either.
> I'd like to gather a bunch of emails which get tagged by the
> current 'rules only' SA config, with a big score (say 15 and
> more) and feed those to bayes.
> To get these mails, I somehow have to redirect them to a
> seperate inbox.
>
> Is there some way for SA to rewrite the header of mail with
> a 15+ score so I get a copy (Bcc:) of those emails?
>   
No. In general SA has absolutely no power to directly alter message
delivery. It cannot delete, bounce, redirect, copy or an email.

SA could rewrite the headers all it wants and it will not directly alter
delivery of the message. It could even over-write the To: header and it
would change nothing.

Despite appearances, the headers have nothing to do with message
delivery, that's all handled by the envelope, which is merely contents
of the 'rcpt to' SMTP  command. That's how Bcc actually works. There is
no Bcc header, a Bcc is just a recipient that exists in the 'rcpt to'
command, but never appears in the To: or Cc: text headers. The To, and
Cc headers are essentially nothing but decorative text generated by the
sender.

However, SA has no access to the envelope, so what you need to do is get
some other part of your mail chain that has control of the envelope, ie:
postfix, to change the recipient list based on the presence of SA tagging.

Reply via email to