Feature Request: Header based rules..

Dhawal Doshy dhawal at netmagicsolutions.com
Fri Jan 12 09:22:26 CET 2007


Ken A wrote:
> 
> 
> Dhawal Doshy wrote:
>> Raymond Dijkxhoorn wrote:
>>> Hi!
>>>
>>>> Any thoughts on adding header based rules? say for example:
>>>>
>>>> spam.check.rules:
>>>> header X-MyLocalApp no
>>>>
>>>> OR
>>>>
>>>> virus.scanning.rules:
>>>> header X-Cron no
>>>>
>>>> OR
>>>> use.spamassassin.rules:
>>>> From: mydomain.tld and header X-Auth-MyServer no
>>>
>>> Uh you mean like:
>>>
>>> [root at xxx01 rules]# more spam.actions.rules
>>> FromOrTo:  default deliver header "X-Spam-Flag: YES" forward 
>>> spamtrap at somehost
>>
>> no.. i meant evaluating headers for rules (not adding them)..
> 
> The headers are available as @{$message->{headers}} in the Message 
> Object, so you can use a Custom Function to get the result of a header 
> check and a yes/no result for a rule.

Thanks Ken, writing a custom function would be greek for me.. though the 
list archives did return some simple examples.

The original idea was to scan outgoing authenticated mails for viruses 
and policy violations but skip spam checking (based on the presence of a 
X-Auth-Header)..

We've been doing this using separate servers so far, but for a new low 
volume customer, i can't justify investing in 2 servers and will have to 
do with one server for both incoming / outgoing.

- dhawal


More information about the MailScanner mailing list