Mail Processing > Custom commands
As ARC is only relevant in inbound direction, the Custom Commands described below are used to remove existing ARC seals that have been added to outgoing messages (for example by Microsoft) and which would be invalidated by SEPPmail Secure E-Mail Gateway by signing/encryption. This way, SEPPmail removes pointless ARC signatures by third parties.
The following code can be used for this:
Line |
Code |
|---|---|
01 |
# Begin: Custom commands for all e-mails BEFORE encryption |
02 |
log (1,'Begin: Custom commands for all e-mails BEFORE encryption'); |
03 |
# Begin: Delete DKIM headers |
04 |
log(1,'Begin: Delete DKIM headers'); |
05 |
rmheader('DKIM-Signature'); |
06 |
rmheader('ARC-Authentication-Results'); |
07 |
rmheader('ARC-Message-Signature'); |
08 |
rmheader('ARC-Seal'); |
09 |
log(1,'End: Delete DKIM headers'); |
10 |
# End: Delete DKIM headers |
11 |
log(1,'End: Custom commands for all e-mails BEFORE encryption'); |
12 |
# End: Custom commands for all e-mails BEFORE encryption |