[Mimedefang] mimedefang 3.3, filter_sender and md_dkim_verify()

Ralph Hayon ralph at naturalwireless.com
Sat Apr 22 15:14:50 EDT 2023


Got it. What I needed was set as Global variables - $Sender and 
$RelayHostname

This gave me what I needed for my test.

Thank you for the assistance!

Ralph

On 4/21/2023 6:13 PM, Bill Cole via MIMEDefang wrote:
> On 2023-04-21 at 17:47:59 UTC-0400 (Fri, 21 Apr 2023 17:47:59 -0400)
> Ralph Hayon via MIMEDefang <mimedefang at lists.mimedefang.org>
> is rumored to have said:
>
>> Ok, thanks.
>>
>> If that is the case, how can I do the same with mimedefang ?
>>
>> Is there a way to easily extract the select fields I need from 
>> INPUTMSG (sender, host, etc) after filter_begin()?
>
> See the section  "GLOBAL VARIABLES SET BY MIMEDEFANG.PL" in the man 
> page for mimedefang-filter.
>
> The filter_begin() function (as well as later functions) is passed a 
> MIME::Entity object as an argument. See "perldoc MIME::Entity" and 
> "perldoc MIME::Head" for details of how to extract the whole header 
> block and specific header values.
>
> If you are more comfortable working directly with text, you also have 
> access to the INPUTMSG and HEADERS files in the mimedefang working 
> directory.
>
>
>>
>> Thanks.
>>
>> Ralph
>>
>> On 4/21/2023 4:56 PM, Dianne Skoll via MIMEDefang wrote:
>>> On Fri, 21 Apr 2023 16:55:10 -0400
>>> Ralph Hayon <ralph at naturalwireless.com> wrote:
>>>
>>>> To confirm, with mailmunge, md_dkim_verify() should properly work
>>>> with filter_sender() since mailmunge is consistent for all callbacks.
>>> No.  You can't do any DKIM-checking until you have the message body and
>>> that can't happen until filter_begin at the earliest.
>>>
>>> However, the way you get the sender is $ctx->sender in filter_sender,
>>> filter_recipient, and filter_begin... the accessor is consistent across
>>> all the callbacks.
>>>
>>> Regards,
>>>
>>> Dianne.
>>>
>>> _______________________________________________
>>> NOTE: If there is a disclaimer or other legal boilerplate in the above
>>> message, it is NULL AND VOID.  You may ignore it.
>>>
>>> MIMEDefang mailing list MIMEDefang at lists.mimedefang.org
>>> https://lists.mimedefang.org/mailman/listinfo/mimedefang_lists.mimedefang.org 
>>>
>>
>>
>> -- 
>> ***************************************
>> Ralph Hayon
>> Natural Wireless
>>
>> 60 Saddle River Ave, Unit B
>> South Hackensack, New Jersey 07606
>>
>> email:     ralph at naturalwireless.com
>> www:    naturalwireless.com
>>
>> office: 201-438-2865 x 403
>> fax:    201-438-1803
>> cell:     201-315-7397
>>
>>        Natural Wireless
>> An Ultra Internet Service Provider
>> ***************************************
>>
>>
>> _______________________________________________
>> NOTE: If there is a disclaimer or other legal boilerplate in the above
>> message, it is NULL AND VOID.  You may ignore it.
>>
>> MIMEDefang mailing list MIMEDefang at lists.mimedefang.org
>> https://lists.mimedefang.org/mailman/listinfo/mimedefang_lists.mimedefang.org 
>>
>
>

-- 
***************************************
Ralph Hayon
Natural Wireless

60 Saddle River Ave, Unit B
South Hackensack, New Jersey 07606

email: 	ralph at naturalwireless.com
www:	naturalwireless.com

office: 201-438-2865 x 403
fax:	201-438-1803
cell: 	201-315-7397

        Natural Wireless
An Ultra Internet Service Provider
***************************************




More information about the MIMEDefang mailing list