Replace existing signature

Hi,

my Ciphermail system works great. Just one thing I couldn’t get running by now.

We are using a local CA to create user certificates (also used for PDF and other signature stuff), unfortunately Outlook grabs the certificate we issue by this (or any possible local available certificate) and is using this automatically if we reply a signed or encrypted message. Means the mails get signed (and encrypted replied) with an certificate Ciphermail doesn’t know, and so it’s not decrypted.

My wish would be now, that this signature of internal, but outgoing, message is stripped and replaced by a signature made of Ciphermail. Until now I haven’t found any way to do so.

For inbound mails I don’t want to change the behavior - means the they should be decrypted but still be delivered signed as received.

Could you maybe help?

Thanks in advance!

Is there no solution or way to achieve this?

This is not supported out-of-the-box

I ave not tested this but it should probably work if you let the signed outgoing email be handled by a special SMIMEHandler mailet

<mailet match="All" class="SMIMEHandler">
	<removeSignature>true</removeSignature>
	<addInfo>false</addInfo>
	<decrypt>false</decrypt>
	<decompress>false</decompress>
	<handledProcessor> NEXT-PROCESSOR-AFTER-HANDLING </handledProcessor>
</mailet>

The mali flow is configured in an xml file (config.xml). The mailflow is defined with matchers and mailets. You need to modify the config.xml maliflow file to add the above matcher at some point in the mail flow (in the external mail flow before signing)

I am sorry, but I do not understand what you are talking about :speak_no_evil_monkey:
Where do I find the xml file and what is a a special SMIMEHandler mailet?