MailSieveRuleSource LDAP Attribute



 Syntax 

 directory string (UTF-8) 

 Object Classes 

 inetMailGroup inetMailUser inetManagedGroup 

 OID 

 2.16.840.1.113894.1009.1.101.0.1191.1.1 



Definition

The attribute contains a SIEVE rule (RFC 3028 compliant) used to create a message filter script for a user entry. This attribute can be either single-valued, with the rule containing the complete SIEVE script, or multi-valued, with each rule containing an independently valid piece of the SIEVE script. When there are multiple values, the Messaging Server MTA combines the rules into a single SIEVE script using an ordering parameter (Order) found in a #Rule Info: comment.

Note that when the value of Order is a negative number, the value is ignored, and the rule is processed with other unordered SIEVE rules for this entry, but when the value of Order is zero, the rule is disabled and not processed at all.

The script is applied when a message is ready to be enqueued to the delivery channel. A script has the following form: require &#x5b;"fileinto"&#x5d;; Template=(template-name) Name=(rule name) if header :is "Sender" "owner-ietf-mta-filters@imc.org" { fileinto "filter"; # move to "filter" folder } if header :is "Subject" "SPAM!" { discard; } The MTA option used to name a different attribute for this function is LDAP_FILTER.
 * 1) Rule Info: $Order=(1-infinity, or 0 for disabled)

Example require &#x5b;"fileinto", "reject"&#x5d;; if header :contains "Subject" "New Rules Suggestion" { redirect "rules@sesta.com"; # Forward message } if header :contains "Sender" "porn.com" { discard; # Discard the email, don&#x27;t inform the sender } if size :over 1M { reject text: # Reject message, send multi-line reply back to sender. Please do not send large attachments. Put your file on a server and send the URL. Thank you. . ;} if header :contains "Sender" "barkley@sesta.com" { fileinto "complaints.refs"; # File message into folder }