> How can we add the Date field or how can we set X-Envelope-From in > order to put this sender address on a whitelist?
Since Postfix normally adds the Date header if there is no date header yet I assume that in your case the MPA sends the email to Amavis directly and not to Postfix. So the "normal" setup is: Postfix -> MPA -> Postfix but your setup is: Postfix -> MPA -> Amavis -> Postfix So once your message is received by Postfix after handling, a Date header will always be added. There are two options: 1. Tell Amavis not to complain for missing date headers. 2. Add a missing date header when creating the notification message from the template. Option 1. I'm not sure whether you can tell Amavis not to complain when a missing date header is found. You mention adding some sort of header. Extra headers can be added to the template (in this case the notification template). Option 2. In principle you can add a Date header when the message is generated from the template. This requires the current date. The problem is that the current version of the template engine does not provide such a function. You can however upgrade to a newer release. Download the Freemarker release from http://freemarker.org/freemarkerdownload.html Extract freemarker.jar and replace the existing jar. In the template you can now use set the header with: Date: ${.now?string("EEE, d MMM yyyy HH:mm:ss Z")} (the ,now function is only supported with newer releases of freemarker) Note for other readers. The date header is added automatically after the email is handled. Only if you need to handle the email internally with some other mail filter, you might need to add the date header if the internal system complains that the date header is missing. Kind regards, Martijn Brinkers On 04/01/2014 12:45 PM, Stefan Michael Guenther wrote: > Hi, > > our Amavis installation doesn't like the notifications, that are send by > Djigzo: > > Return-Path: <> > Delivered-To: bad-header-quarantine > X-Envelope-From: <> > X-Envelope-To: <[email protected]> > X-Envelope-To-Blocked: > X-Quarantine-ID: <hfQFZ41K3zN2> > X-Amavis-Alert: BAD HEADER SECTION Missing required header field: "Date" > Received: from sysrv ([127.0.0.1]) > by localhost (sysrv.xxxx.yy [127.0.0.1]) (amavisd-new, port 10024) > with ESMTP id hfQFZ41K3zN2 for <[email protected]>; > Tue, 1 Apr 2014 08:58:17 +0200 (CEST) > X-Keep-Djigzo-DKIM-Signature: v=1; d=djigzo; > > b=dOZyMsCFBtPDQCsU1CO/8mFXxSo+lQLafvS/VQ6s63UafMxu42FrhbLd5ZNM4M9o9aXOYIs9HMGbO+8/i11ej1ZW2JSCGxGyX1SdSr+wQZ28yPkUhCP9AogCCnNfXwFXRIUedlfGj0IB5fXnUSwlE9NHfk73O+pNnRJhspZwlt7XaV5MVDb7KyPgwOVYk4RqrI3D0RTYonLi2cseEb1nsTGMHfCVPFd3Gsihsyc/WWqOXNB2VmjD34TGv2hw5xxSXkjkZENCc45OuOXkqpV8FzwxW7+uyFNHOaWkcd5F+UvV5JjDegLDxxqNQPaUUoXGmEnYJe6EBwTpIgrhgv+dig==; > s=selector; c=relaxed/relaxed; a=rsa-sha256; > bh=ElBn5McqNPA4SyPuae4y17CzLonvGoxwlEf8sl5p2Yo=; > h=X-Keep-Djigzo-Auto-Submitted; > X-Keep-Djigzo-Auto-Submitted: > D51D19D2753B573A1CAB8281FEBF2824EBC064AABC3AC2E3892C9342E537E35E > From: <postmaster> > To: <[email protected]> > Subject: Eine Mail wurde verschluesselt > In-Reply-To: <5d30b997-39ce-4622-b7db-cd1678194a11@sysrv> > Mime-Version: 1.0 > Content-Type: text/plain; charset=UTF-8; format=flowed > Content-Transfer-Encoding: quoted-printable > Auto-Submitted: auto-replied > Message-ID: <1172732320.141.1396335444114.JavaMail.djigzo@sysrv> > > How can we add the Date field or how can we set X-Envelope-From in order to > put this sender address on a whitelist? > > This is a manually installed Djigzo 2.3.1-7 on a Ubuntu 10.04. LTS > > Regards, > > Stefan > > _______________________________________________ > Users mailing list > [email protected] > https://lists.djigzo.com/lists/listinfo/users > -- DJIGZO email encryption _______________________________________________ Users mailing list [email protected] https://lists.djigzo.com/lists/listinfo/users
