Hi Bernhard,
This is currently not possible 'out of the box'. It is however
possible to manually modify an XML file containing the mail
handling rules. You can for example add a trigger specifically for
PDF encryption. I can send you some documentation on what to add to
the config.xml file to trigger PDF encryption with a subject
trigger.
i'd appreciate it if you could send me this documentation
By adding the following lines to the configuration file
/usr/share/djigzo/conf/james/SAR-INF/config.xml PDF encryption will be
skipped if the subject trigger is not specified:
<mailet
match="MailAttributeEvaluator=matchOnError=false,#{runtime.mustEncrypt}!='true'"
class="GotoProcessor">
<processor> checkMustEncrypt </processor>
</mailet>
The above lines should be added at the start of the checkPDFEncrypt
processor:
<processor name="checkPDFEncrypt">
<mailet match="All" class="Log">
<comment> checkPDFEncrypt </comment>
</mailet>
<!-- only PDF encrypt when the subject trigger is set -->
<mailet
match="MailAttributeEvaluator=matchOnError=false,#{runtime.mustEncrypt}!='true'"
class="GotoProcessor">
<processor> checkMustEncrypt </processor>
</mailet>
<mailet
match="SenderEvaluateUserProperty=matchOnError=true,#{user.pdf.encryptionAllowed}!='true'"
class="GotoProcessor">
<log> Sender PDF encryption is not allowed </log>
<processor> checkMustEncrypt </processor>
</mailet>
I have attached the complete config.xml with these changes. You can
replace the existing config.xml with this new version if you are using
Djigzo version 1.4.0 or 1.4.1 (make sure you create a copy of the
existing config.xml).
What the easiest way would be to copy the new config.xml to Djigzo
depends on your client system. If using Linux you can use SSH or use vi
to change the config.xml file yourself. If using Windows, the easiest
would be to install WinSCP (http://winscp.net/eng/index.php).
i've got a further question about encryption mode:
is there a way to automatically reject incoming unencrypted email, so
that only encrypted emails are processed and forwarded?
That depends what you mean with reject. The Djigzo encryption engine
functions as an after-queue filter. That means that the message is
already accepted by the MTA before the encryption engine handles the
email. The message can therefore not be rejected before accepting. The
message can only be 'bounced' back (i.e., a message that reports that
the message was not encrypted).
Kind regards,
Martijn
config.xml (79.6 KB)
···
On 01/07/2011 12:34 PM, Bernhard Heinzle wrote:
Hi Martin,
many thanks for your advice.
This is currently not possible 'out of the box'. It is however possible
to manually modify an XML file containing the mail handling rules. You
can for example add a trigger specifically for PDF encryption. I can
send you some documentation on what to add to the config.xml file to
trigger PDF encryption with a subject trigger.
i'd appreciate it if you could send me this documentation
i've got a further question about encryption mode:
is there a way to automatically reject incoming unencrypted email, so
that only encrypted emails are processed and forwarded?
kind regards,
bernhard
_______________________________________________
Users mailing list
Users(a)lists.djigzo.com
http://lists.djigzo.com/lists/listinfo/users
--
Djigzo open source email encryption