Re: [Exim] Relay problems

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Kevin Reed
Datum:  
To: exim-users
Betreff: Re: [Exim] Relay problems
Roxik said:
> Hi
>
> I'm installed exim 4.30 and worte ACL's. I use exiscan (SA + Clamv) too:
>
> check_rcpt:

[snipped - Wakko already commented on this]

> P.S.
> In check_message pass i use this:
>   warn   message = [SPAM] $h_Subject
>          condition = ${if >{$spam_score_int}{40}{1}{0}}
> Its simple. If spam_score_int are between 40 and 50, then exim add to
> subject text: [SPAM].
> Its work, but add second subject. Is any solution to remove first subject
> line in ACL? Mayby is other solution ?
> Some MUA accept only first subject line and user not see correct subject
> line.


Change this to look like:

# If a message is marked as Spam, set it as a new header
warn    message = X-New-Subject: [SPAM] $h_subject:
        condition = ${if >{$spam_score_int}{40}{1}{0}}


and in your System filter add:

# If X-New-Subject replace real subject...
if "${if def:header_X-New-Subject: {there}}" is there
then
headers remove subject
headers add "Subject: $h_X-New-Subject:"
headers remove X-New-Subject
endif

--
Kevin W. Reed - TNET Services, Inc.
Unoffical Exim MTA Info Forums - http://exim.got-there.com/forums