MailDomainSieveRuleSource LDAP Attribute



 Syntax 

 directory string (UTF-8), single-valued 

 OID 

 2.16.840.1.113894.1009.1.101.0.1067.1.1 



Definition

SIEVE filter for all users in the domain. There are two possible forms for the value of this attribute: a single value that contains the complete sieve script (RFC 3028 compliant), and multiple values, with each value containing a piece of the sieve script (not RFC 3028 compliant).

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; }
 * 1) $Rule Info: Order=(1-infinity, or 0 for disabled)

Multi-valued Form
Multiple SIEVE scripts per user can be stored in LDAP. To enable the user interface to handle several smaller rules scripts, rather than one script containing all the domain&#x27;s rules, this attribute takes multiple values (that is, multiple rules). The server looks at every rule in.

To provide ordering and possible user interface editing information, there is an optional SIEVE comment line in each rule. This line has the following format: All rules that have a  line will be processed first by the Messaging Server. If, then this rule is not used in the SIEVE evaluation. Otherwise, the rules are processed in the order provided (1 having highest priority). To accommodate SIEVE rules that might not have been entered using the Rule Info extension, any other rules found are run by the server, in order received from LDAP after all rules with corresponding order values have been processed.
 * 1) $Rule Info: Order=(1-infinity, or 0 for disabled)

MTA Override Option
The MTA option that overrides this attribute&#x27;s value is LDAP_DOMAIN_ATTR_FILTER.

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" "domainadminstrator@sesta.com" { fileinto "complaints.refs"; # File message into folder }