Server-Side Rules

How can I add more than one event on my SSR XLM file? I need to make a rule for internal and external mails but i only can add one of them.

If someone need to do the same here it is!
<account qualifiedName="UM_SYSTEM" ownerType="system">
<rulelist event="reception">
<rule description="Reception max recipients" group="all" active="yes" visible="yes">
<condition negation="no" junction="and">
<command tag="reject" />
<parameter>Param X</parameter>
<rulelist event="relay">
<rule description="Relay max recipients" group="all" active="yes" visible="yes">
<condition negation="no" junction="and">
<procCall> RulesPackage.myCondition2</procCall>
<command tag="reject" />
<parameter>Param Y</parameter>
Good Luck!

Similar Messages

  • Server side rule filtering and message colorization

    I've been using server side rule filtering (Sieve) to handle all my mail filtering, mainly because I don't have a .Mac account and I have multiple machines that I access my mail from. This setup works really well except I have not been able to figure out how to color a message.
    I've searched and read through emails, but I haven't seen anything else about this problem. I even found a message that had been colorized by Mail's Junk filter, and found that Mail adds an additional mime part onto the message which is a property list that specifies the color of the message.
    What I really want is some way that I can set a header on my message, which Mail will see and apply that color to the message when it caches it on my Mac. A lot of my messages get moved to specific folders, but I still want to colorize them, and as far as I've seen, Mail's rules only work on messages that end up in the INBOX.
    Although I fear that its not possibly, I figured I'd ask for help if anyone has encountered similar problem and solved it.

    The IMAP-protocol (I suppose that's the one you use, otherwise server side mail filtering won't be visible in does not have any mechanism to transmit colorization information to the client. You have to set up these manually on each client.

  • Calling PL/SQL from Server Side Rule

    Hi there,
    I'm wanting to call a PL/SQL procedure from a server side rule created within collaboration suite using the oesrl command line utility. I have seen examples of the XML rule which should do this together with the appropriate PL/SQL
    &lt;account qualifiedName="UM_SYSTEM" ownerType="system"&gt;
    &lt;rulelist event="relay"&gt;
    &lt;rule description="Retention Rule" active="yes"&gt;
    &lt;condition negation="no" junction="and"&gt;
    &lt;attribute tag="rfc822to"/&gt;
    &lt;operator caseSensitive="no" op="contains"/&gt;
    &lt;command tag="call"/&gt;
    The above should call the Procedure RulesPackage.archive_message when an email to anyone at arrives in OCS. I have written and tested an appropriate package. However, I have been unable to get the rule to execute and call my PL/SQL when I send an email to trigger it.
    I have written rules which do not invoke external packages without any trouble.
    I believe the problem is that I need to register the PL/SQL package with the rules engine somehow, before the rule can find it, but I am uncertain how to do this, or even if that is indeed what I need to do.
    Any help would be most appreciated as the documentation doesn't go into too much detail.
    I am using OCS R2.

    Could you please check the structure of the procedure "RulesPackage.archive_message" ? It may fail due to procedure structure.
    The structure should be similar to the below example
    PROCEDURE archive_message
    (p_event IN NUMBER,
    p_sessionid IN NUMBER,
    p_msgobj IN es_mail.mail_message_obj,
    p_param1 IN VARCHAR2,
    p_param2 IN VARCHAR2,
    p_status OUT NUMBER) AS
    /* Code for Archving */
    Relevant URL: (Please check Step 2 of "A Custom Action Written in Java")

  • User mailboxes have more server-side rule options then shared mailboxes?

    I was hoping to set up some server-side rules to keep a shared mailbox clean.  The goal was to have some rules to move incoming messages to specific folders based off words in the subject.  I opened the shared mailbox in OWA and found the action
    of moving the message to a folder was not available.  At first I figured that's an action that's only available in a client-side rule.  However, I then found that in my user mailbox that action is available server-side.  It would appear there
    are a number of other action that are available server side to user but not shared mailboxes.
    Anybody else notice this?  Is this a bug?
    Single Exchange 2013 SP1 server - nothing fancy.

    I have a test in my environment using Exchange 2013. We can use two methods to create rules in OWA. When I open shared mailbox via OWA to create rules, only one way is possible. I recommend you use this way to create rules in OWA and check the result. Here
    is the detailed steps for your reference.
    Click Setting icon (on the right corner) -> Options -> organize email -> New
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Server side rule - inline forwarding of a message

    We have a solution that generates custom x-header on all emails (via an Outlook Add-in).  Using Outlook, User A creates a server-side rule which forwards messages onto User B.  User B receives a message without the custom
    x-header.  My question is how can I retain the custom x-header, at the moment I cannot think of any way!
    The server-side rule can use 'forward as attachment' which keeps the custom x-header in the attached message, but the 'inline forward' action (where the forward message is embedded into the body of the new message) doesn't.  Requirement is for both
    types of forwarding to function!

    Have you looked at using a Transport Rule instead ?, because Transport Rules allow you to process messages in the Transport Pipeline you should be able to copy the Forward recipient on the message and that will means they will get an exact copy of the

  • Server side rule and procCall - only in es_mail schema

    I am trying to call procedures in the procCall tag of a server side rule, but I cannot make it work for procedures that are not in the es_mail schema.
    I tried creating synonyms and I am dead sure my grants are correct, but as soon as I add a schema name in front of the call it stops working.
    Is this correct, people of Oracle, and why?

    The IMAP-protocol (I suppose that's the one you use, otherwise server side mail filtering won't be visible in does not have any mechanism to transmit colorization information to the client. You have to set up these manually on each client.

  • Exchange/Outlook 2010 Server Side Rule

    Hi guys,
    Does anyone know what happens with regards to rule that forwards email received to a new destination (in this case a contact) but the outbound message size limit is breached.  In normal operation Outlook would pop-up a message indicating but what happens
    in the case of the rule.  Would it fail and retry or what?
    Cheers Andy

    Good question. It seems our enterprise Exchange team have set the inbound message limit to 35MB and the outbound to 25MB. This therefore plays havoc with journaling to an external source.
    Just trying to determine if it would just silently fail or cause anything else.
    Appreciate the help.
    Cheers Andy
    Interesting. Where is that set exactly? On the receive and send connectors or the global limits?
    The global limits should match for the send and receive limits and be equal to the highest allowed message size.
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • How do I define server-side spam rules with Yosemite & Server 4

    Really surprised that this isn't functionality available in the server UI. Poking around in the dovecot/spamassassin docs imply this is possible using sieve, but the configuration looks more complex than I'd like to have to figure out on my own. It seems that sieve might be possible to use. In /Library/Server/Mail/Config/dovecot/conf.d, the option sieve_dir is uncommented, pointing to /Library/Server/Mail/Data/rules/%u. That seems to imply I could create user directories there and apply some sieve rules, has anyone tried this?
    I'd rather not do user-specific rules, I'd prefer to use the default and attempt to move all spam into a spam folder for each user.
    I've seen notes that the webmail client Roundcube provided server-side rules, but I really don't need the web mail client, and various search results seem to raise questions about whether Roundcube is compatible with Sever 4 / Yosemite.
    Any help would be appreciated...

    Was able to get it working with some digging. The basic summary is that you need to create a rules directory for each mail user, and then add a sieve rule in each of the directories you create. I did this manually, which is manageable because I'm using OS X server for my household, and we don't add members to my household that often... :-). Summary of the steps:
    1) Each user has a directory in /Library/Server/Mail/Data/mail that is in UUID format (long hex string with sections broken by - characters).
    2) For each of the users you identify in (1), create an equivalent UUID directory in /Library/Server/Mail/Data/rules
    3) Create a file named "dovecot.sieve" in each of the directories you created in (2). For a basic rule that moves mail marked by SpamAssassin as spam to the Junk folder that should create by default, you can use the following:
         require ["fileinto"];
         # rule:[SPAM]
         if header :contains "X-Spam-Flag" "YES" {
                 fileinto "Junk";
    4) Ensure that all of the directories/files are owned by _dovecot. I marked dovecot.sieve as executable, but I'm not sure that was necessary.
    5) Once you've done steps 1-4, you should start to see evidence that sieve is being used for delivery of mail in /Library/Logs/Mail/mailinfo.log. Grep for "sieve" in that to see activity. If there are errors, you'll likely see notices that there are sieve logs being created in the rules directories you set up in (2). I ran into errors for at least one account that didn't have a Junk folder created; if you hit that just have the user create a folder named Junk to clear it up.
    Hope this helps others...

  • Vacation messages / server side mail rules

    With WebMail depreciated in OS X Server, is there a recommended (incorporated) way for users to configure vacation messages and other server side rules?

    The seive rules are referenced by the imap server on OS X and it is responsible for the mail sort. The old webmail (SquirrelMail) and the newer webmail on Lion (Roundcube) were only writing the rules that the sieve engine of the server were reading.  In other words, the webmail doesn't handle the sorting of the incoming messages, its built in filter settings write the rules that the server uses to sort them.
    In Roundcube, that is the managesieve plugin. By default, the rules get saved in /Library/Server/Mail/Data/rules/[user UniqueID]/dovecot.sieve with the new Roundcube and older rules are default.sieve. Dovecot seems to look for one or the other and uses it.
    So, and I still have to read (and if anyone can answer!) since I've not looked at this since 10.8 server has first come out:  They moved the mailstor moved in ML, but does Dovecot still have sieve rules ENABLED or does that require a .conf change?
    To answer your configuration question:
    if you're comfortable with editing a text file, Roundrube is VERY simple to configure in my opinion. Everything is well commented in the settings files. Almost all of the settings are having it connect to your IMAP and SMTP server, same as an email client's settings.  And that's it, you don't need to compile anything to use it.
    You will need to setup MySQL or ProtegeSQL with it, but they have scripts that setup the tables for you, again, pretty simple.  PERSONALLY, I chose to install MySQL (they have a Mac .pkg install and a System Preference Pane for it).  I did not want to use the ProtegeSQL Apple supplies with OS X because we've all learned this lesson: who knows when they'll abandon THAT and leave us all scrambling for a solution again.
    This way, my SQL install is indepenent, ready for the next OS upgrade without wondering if Apple will take it away, or even transportable to another platform.

  • Editing server-side Sieve via IMAP... does Messaging Server support RFC 5804?

    The Sieve Addon for Thunderird ( mentions the sieve management protocol (RFC 5804) accessible over IMAP. I did not find any mention of this on the CommSuite Wiki, so I guess it is not supported at the moment... or just not published?
    Apparently, most users of this addon use it in conjunction with Dovecot server which does support Sieve server-side filtering, and/or with projects like this to translate between client-side Mozilla filters and server-side Sieve filters: Mozilla filter to sieve converter | Free Communications software downloads at
    I am not sure yet if there is an addon to automatically replicate client-side rules onto the server-side rules as the users edit them in their GUI... but this would be the next logical step

    Hello, thanks for the update despite the lack of forbidden details.. at least, the feature is in the pipeline
    Could you please clarify: did I understand correctly that the managesieve RFC and implementation by the Messaging Server are not compatible with the user's Sieve rules as maintained by Convergence (as of today)? I did not really dig deep into the RFC definition, but does it define that the IMAP server maintains one big script only (and not something like an IMAP mailbox with numerous small scripts, possibly ordered by some attribute)?
    Conversely, would the Messaging Server be able to use large singular sieve scripts pushed by an email client, and would these be useless or invisible to Convergence client?

  • How to run the Server Side Existing rule in Exchange 2010

    Hi All,
    There were requirement to create a auto forward rule for almost more than 5000 users, which we did, but the we want to apply this rules to the messages which are already in the inbox for all those users where we have created the rule.
    Right now the problem what we are facing is for each individual we have to take full access to their mailbox and execute the rule first time and then it works.
    this is becoming challenging for us to making this for all 5000 users. the other problem is those user are not regularly login to this mailbox, they are using some other Org mailbox, so even we can not communicate to all of them.
    Q1) How to run the Server Side Command which should forcefully apply whatever rules is created for that user should execute for the messages which are already in the inbox.
    Q2) or the powershell for for specific rule name, which can apply on the for all the messages which are there in the inbox.
    Any help would be appriciated!
    Thanks in adv champions!

    Hi Ashku,
    If these 5000 users are all users in your Exchange organization, a inbox rule can be created by the following commands:
    Get-Mailbox | foreach {New-InboxRule -Mailbox $_.Name -Name AutoForward -From [email protected] -ForwardTo UserB}
    Based on my test, the Inbox rule created in server side also cannot work on the message that have already been in the Inbox unless users click “Run Rules Now…” in their Outlook client. And the transport rule in Exchange server only works
    during the message sending process.
    Therefore, there may be no feature in Exchange server side to meet your requirement.
    Thanks for your understanding.
    Winnie Liang
    TechNet Community Support

  • Server Side Includes and Divs

    I have a template (dwt) for my site with editable regions for
    menus. I want to use Server Side Includes for the menu, as not all
    the pages will have the same menu.
    I have designed the site template (and pages) with css and
    divs. The area for the SSI is a div of size 145x335. The menu which
    I want to put inside this div will be a div based menu. I havent
    had any luck displaying the Div from the SSI yet. I have been
    looking on Google for help, but not much luck. I can get the Div to
    appear but the formatting doesnt show up.
    Im putting the SSI code in where I want it on the page, but
    im not sure exactly which code to get rid of in the shtml file. I
    know I need to remove body, head parts etc
    My site template uses CSS stored on the document, not an
    external css file.
    Any ideas?

    > Im sure Ive not got it right yet!! My head wont work
    Yes. It's not working well here, either.
    Create your template with the editable region. In it, have
    links to a) the
    general stylesheet for all the pages, and b) the general
    stylesheet for all
    of the includes (these don't really need to be separate
    files). Spawn a
    child page, drop in the desired include, and save that page
    That's it....
    The incude files themselves can be names anything you want -
    I like the
    'monkeybutt' extension, e.g.,
    The include files can make reference to CSS selectors, but
    cannot have
    embedded CSS rules, or links to external CSS files.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    - Template Triage!
    - DW FAQs, Tutorials & Resources - DW FAQs,
    Tutorials & Resources
    - Macromedia (MM) Technotes
    "~Billy~" <[email protected]> wrote in
    news:eq234v$eq6$[email protected]..
    > Ive made myself confused now! I need it spelling out to
    > Ok, a template file (dwt) with its css as an external
    style sheet.
    > Rest of the sites pages made from the template file.
    > Next, the template has one editable region for a choce
    of 2 div based
    > menus to
    > be placed into. Place either of these div menus into the
    template editable
    > region by creating two seperate SHTML files - one for
    each menu with the
    > body/head removed(and with internal or external css?)
    > Next put the SSI code into the body of the template
    where I want the SSI
    > to
    > appear.
    > Im sure Ive not got it right yet!! My head wont work

  • Tabbed panels, Collapsible Panel, and Server Side Include

    I'm having a problem with the way a Server Side Include inside a Collapsible Panel displays.
    Here is how this particular page is set up.
    The page has spry tabbed panels.
    >>A panel has one overall Collapsible panel (the main product tab)
    >>>>Nested in that Collapsible panel are four other collapsible panels (Overview, Features, Screenshots, What's New).
    >>>>>>In each of these four collapsible panels is a server side Include that features that category's content
    E verything works fine as far as opening and closing is concerned. However, the problem is with the display. The content panel doesn't resize with the Include content, and therefore, the Include content extends outside the border of the content panel.
    I'm thinking this is because it is Include content rather than normal content. Is that right?
    Do I fix this by changing the overflow value of one the Tabbed Panel CSS styles? If so, which one should I change, and to what value?
    Or if that's not how to fix it, can anyone tell me how?
    Thanks a lot,

    Hi, I'm using the latest version of Spry. I modified some CSS rules of the tabbed panels, but not the javascript file. I didn't do anything to the Collapsible Panel rules.
    Since first posting this thread, I changed the overflow of the Tabbed Panels Content Group CSS rule to "scroll". That did produce a scroll, but I'd much rather have the panel expand. So, I changed it back the way it was.
    Here's the page I'm working on. Click the Court Solutions tab to get to the problem panel.
    It has different results in IE and FireFox, but doesn't work correctly in either.
    Thanks a lot for all your help,

  • [Announcement: Java server-side web controls] - TICL 1.0 Final Released

    Hello JSP developers,
    We are pleased to announce the immediate availability of TICL (Tag Interface
    Component Library) 1.0 Final Release. TICL is library of server-side user
    interface components accessible through JSP tags. Like a conventional
    desktop toolkit, the components maintain state and manage interaction logic
    with the end-user with little or no assistance from the programmer.
    Read more about TICL at
    If you are already a TICL user, check out the release notes at for the latest changes.
    More info
    One of the major goals of TICL is to bring RAD-like development to the WEB
    platform. Programmers can concentrate on logical functionality and build JSP
    pages by placing TICL components through tags and responding to user events.
    Every component is self-contained and manages interaction with the end-user.
    Visual appearance of components is abstracted into a high-level styles
    framework. In fact, TICL is probably the only server-side Java toolkit that
    rivals Microsoft ASP.NET's web controls.
    The library is tailored more towards WEB application development, rather
    than content only oriented sites. It is designed to quickly build clean,
    robust, well-structured and therefore highly maintainable code. It
    integrates seemlessly into existing JSP applications and it will work on any
    standard compliant JSP 1.1 container (e.g. Tomcat 3.2.1 and above, Resin
    etc.) and with fairly recent versions of the popular browsers.
    Core features are:
    - A powerful and extensible server-side event model. Component-end user
    interaction is encapsulated into a well defined set of server-side events.
    You can of course define event listeners, develop custom events, event
    filters etc.
    - Predefined components like panels, tabbed panels, tree views, DHTML menus,
    table views. Most can perform their interaction with the end-user at the
    browser through DHTML or by making a trip back to server on every user
    action (like expanding a tree node or minimizing a panel) - that is
    components are either "client" or "server" managed.
    - Smart browser handling. A complete framework for dealing with browser
    (user agent) capabilities, including detection of dynamic properties like
    connection speed, screen resolution, available plugins etc.; supporting JSP
    tags; on the fly selection of component rendering based on the current user
    - A high-level styles framework for complete customization of the look&feel
    of components. Styles can be organized into themes. An inheritence mechanism
    of style objects provides for a powerful high-level structuring. The
    framework allows for a clean separation between look&feel and functional
    behaviour of GUI elements. No more copy&paste, no more code cluttering with
    tedious, browser-specific HTML details - consistency of look&feel can be
    easily achieved by maintaining a single TICL style sheet, a simple XML file,
    that is applied to all pages in your WEB application.
    - Full encapsulation of HTML forms, including a file upload component,
    augmented with things such as server-side command handlers, labels and DHTML
    tooltips. Form fields are typed, true server-side components. Not limited to
    the standard HTML form fields, they operate on a high level and custom ones
    can be developed and plugged into the framework.
    - A very powerful and easy to use declarative form validation mechanism
    (both client and server-side). You define validation rules and handlers for
    invalid forms in a clean, declarative way. The same rules you define can be
    applied at the client (through automatic generation of the necessary
    JavaScript) or at the server. Special purpose syntax allows you to easily
    handle interdependencies between field values.
    - A Data Objects framework integrated with TICL forms. Allows you to
    manipulate complex aggregate structures and associate them with forms for
    automatic mapping to/from form field values and data object fields (e.g.
    Java beans). A type mapping framework allows you to map any form field type
    to any Java type.
    - An integration module for the popular Struts framework is provided also.
    For example, it is possible to use the powerful TICL form tags with Struts'
    TICL is FREE for non-commercial and non-govermental use, and for an
    unlimited evaluation period. It comes with an extensive, over 200 pages,
    Reference Manual. To download it, please goto and
    select Downloads from the TICL pulldown menu. If you are not already a TICL
    user, you may need to register first.
    We sincerely hope you will enjoy TICL and are looking forward to your
    Best Regards,
    Borislav Iordanov
    [email protected]
    Kobrix Software Inc.

    This looks quite nice. I'm going to evaluate it now, but I wish it was open-source....
    Judging from the release notes, it's been around for a while. Has anybody had any experience with this product? Is it reliable? Does it scale well?

  • Server-side filtering to subfolder for all users (spamassassin)

    I am trying to integrate a 3rd-party spam filter/virus scanner, it is just spamassassin/amavisd-new running on a front-end box that adds an X-Spam-Flag: YES header to the message before passing it on. This works great on our current postfix/cyrus-imap system using individual cyrus sieve server side filters to look for the flag and move the message into the user's spam folder.
    My question is how to do this in a universal way on OCS, I have been reading through the docs and think server-side filters are the answer, but I can't seem to find a way to set up a system-wide filter that will put the incoming message into the recipients' spam subfolder. Does anyone have any clues on this? I think the key here is to somehow be able to use the recipient name as a variable to pass as a parameter to the moveto action, but I can't see a way to do this. Any pointers would be appreciated.

    You can do this in a single system wide rule, but it's undocumented and technically unsupported.
    First of all, checking the spam-flag in a system side Deliver rule is straightforward:
    <attribute tag="xheader" param="X-Spam-Flag"/>
    <operator caseSensitive="no" op="stringequal"/>
    (Checking on the subject is OK too, if you rewrite it through SpamAssassin.)
    Then to move to a folder, you'll need an external PL/SQL action since the full folder name will vary for each user:
    <command tag="call"/>
    Then the tricky part is the Pl/SQL to do the move, using the undocumented es_ga.g_username variable. This is the only way to know which mailbox context you're currently in for the deliver event at the system level. Without this, you need a separate rule for every user. Here's the bare bones of a procedure that would do it.
    procedure moveMsg(p_eventid in integer,
    p_sessionid in integer,
    p_msgobj in mail_message_obj,
    myparam1 in varchar2,
    myparam2 in varchar2,
    p_status out number)
    this_user varchar2(255);
    this_user := es_ga.g_username;
    mail_folder.move_messages(p_sessionid, mList, '/' || es_ga.g_username || '/ServerMove');
    end MoveToSpam;
    You probably want to add some exception handling, etc. to that ;-) More info on the Pl/SQL API in general is in the Mail Application Dev Guide.

Maybe you are looking for

  • Ipod Nano error message when trying to synch

    Im having problems with my ipod nano it keeps giving me the error "The ipod cannot be synched.The required folder cannot be found" Also gives me "some of the items in the itunes library were not copied to the ipod because one or more errors occurred"

  • Plugin_loader message after upgrading to 1.4.1

    Since upgrading to v 1.4.1 (win) I get the following notebook message in My Documents folder, named plugin_loader: "Failed to load plugin at path C:\Program Files\Adobe\Photoshop Lightroom\sdk_tests.dll because the SDK version it requires isn't suppo

  • Ai version to version file problem

    I've never experienced this issue with Photoshop files, but when I open a .ai file in Illustrator CS6 that was created in Illustrator CC, all my layers are flattened into one.  Is there another format I need to save in to prevent this?

  • Can't upload my podcast

    Hi, So I have created my podcast, made a website for it, I use blubrry to add the episodes, I have tested it, it works but I can't seem to upload/submit my feed to itunes. Everytime I try to submit it, It keeps saying "We are experiencing technical d

  • Sound Card for laptops?

    Hi. Sorry if this question has been asked before, I cannot find it. I have an Acer aspire 5570-2997, 1.73 ghz, 2GB DDR2, 160 GB HDD, intel graphics media accelerator 950, windows vista 32 bit home premium. I use my laptop to record music, and am wond