Adding Signature based on header?
dhawal at netmagicsolutions.com
Wed Apr 4 10:43:39 IST 2007
Steve Freegard wrote:
> Hi Dhawal,
> Dhawal Doshy wrote:
>> Steve Freegard wrote:
>>> Hi Dhawal/Paul,
>>> Dhawal Doshy wrote:
>>>> Has anyone on the list written a header based custom function that
>>>> can be trivially modified for such a purpose?
>>> No - but if one of you can mail me some examples - I have some code in
>>> MailScanner that does something similar that I should be able to
>>> modify and put on the Wiki as this would seem to be pretty useful in a
>>> lot of cases.
>> Would this be enough?? See the part "(Authenticated sender:
>> dhawal at netmagicsolutions.com)"
>> Return-Path: <dhawal at netmagicsolutions.com>
>> Received: (qmail 2963 invoked from network); 3 Apr 2007 14:47:12 -0000
>> Received: from db.netmagicians.com (220.127.116.11)
>> by netmagicsolutions.com with SMTP; 3 Apr 2007 14:47:12 -0000
>> Received: from db.netmagicians.com (db.netmagicians.com [18.104.22.168])
>> (Authenticated sender: dhawal at netmagicsolutions.com)
>> by db.netmagicians.com (Postfix) with ESMTP id 0934B40109F
>> for <dhawal at netmagicsolutions.com>; Tue, 3 Apr 2007 20:15:26 +0530
>> Message-Id: <20070403144528.0934B40109F at db.netmagicians.com>
>> Date: Tue, 3 Apr 2007 20:15:26 +0530 (IST)
>> From: dhawal at netmagicsolutions.com
>> To: undisclosed-recipients:;
>> Thanks a ton, Steve..
> I've done an initial version which is attached and that I have done some
> basic testing with, it takes a list of trusted IPs and the regexps that
> should be checked against the headers from the trusted IPs to see if the
> connection is authenticated.
> Any problems - run set my($debug) = 1; and run MailScanner --debug to
> see what it is doing.
Wow.. i'll be modifying this for "spam checks" as well since i need to
skip spam checks on authenticated mail.
Will test it completely and let you know..
More information about the MailScanner