27.11.2012 Views

IronPort - advanced configuration guide

IronPort - advanced configuration guide

IronPort - advanced configuration guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6 Using Message Filters to Enforce Email Policies<br />

Signed Rule<br />

Signed Certificate Rule<br />

OL-25137-01<br />

}<br />

}<br />

} else {<br />

}<br />

# User has specified a domain which cannot be authenticated<br />

quarantine("forged");<br />

# User claims to be an completely different user<br />

quarantine("forged");<br />

The signed rule checks messages for a signature. The rule returns a boolean value to indicate if the<br />

message is signed or not. This rule evaluates whether the signature is encoded according to ASN.1 DER<br />

encoding rules and that it conforms to the CMS SignedData Type structure (RFC 3852, Section 5.1.). It<br />

does not aim to validate whether the signature matches the content, nor does it check the validity of the<br />

certificate.<br />

The following example shows a signed rule used to insert headers into a signed message:<br />

signedcheck: if signed { insert-header("X-Signed", "True"); }<br />

The following example shows a signed rule used to drop attachments from unsigned messages from a<br />

certain sender group:<br />

Signed: if ((sendergroup == "NOTTRUSTED") AND NOT signed) {<br />

}<br />

html-convert();<br />

if (attachment_size > 0)<br />

{<br />

}<br />

drop_attachments("");<br />

The signed-certificate rule selects those S/MIME messages where the X.509 certificate issuer or<br />

message signer matches the given regular expression. This rule only supports X.509 certificates.<br />

The rule’s syntax is signed-certificate ( [ ]), where:<br />

is either the quoted string “issuer” or “signer”,<br />

is either == or !=,<br />

Cisco <strong>IronPort</strong> AsyncOS 7.6 for Email Advanced Configuration Guide<br />

6-39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!