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 Mail.app 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...

Similar Messages

  • How to configure oracle 6i report server run time component with application server

    we got oracle 6i report server for developing the web based reports for our undergoing product. we r succesed in developing the web based reports using oracle 6i report server.But we r facing problems while deploying the product with oracle reports at clients place,why because the client does not have the oracle 6i report server. To solve this problem we have to configure the oracle 6i report server run time component with application server at client side , but we are unable to configure this component(that is CGI handler).

    You can run multiple instances of Reports Server in 6i.
    In tnsnames.ora, for each server, have a different name and each listening to different port.
    For example,
    server1.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1949))
    server2.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1950))
    Also, if you want to know about Reports Server Clustering, you may refer to "Publishing Reports" document on OTN:
    http://otn.oracle.com/docs/products/reports/pdf/A73173_01.pdf

  • Server side tracking on non-OSX server

    Does anyone aware of attempts of reproducing server side tracking on non-MacOSX server platform?
    Our primary storage is based on opensolaris + zfs, giving us a lot of advantages. But synchronization of mobile users always takes some serious amount of time.
    Obviously re-exporting home directories through OSX server doesn't change something, because server side tracking requires filesystem to be local on server.
    I can guess that protocol should be relatively simple and doable on other unixes (as soon you get some way to track filesystem changes).

    while part of it may be technically feasible, i've never seen or heard anything about implementing server side tracking on a non-os x server. at the very least, the server runs sshd on an alternate port for client communication. beyond that, i don't know what magic is involved.
    in practice, i haven't seen it work reliably on os x server, though i haven't done any testing with this enabled on 10.6 server yet. it may not be worth pursuing.

  • SQL Server 2012 Standard compatibility with Windows Server 2012 R2 Standard

    Hi,
    Is SQL Server 2012 Standard compatibility with Windows Server 2012 R2 Standard.
    In volume licensing portal Windows Server 2012 R2 Standard is not provided in the list of OS supported for SQL server 2012.

    Hi Ajit,
    Besides other post, please also note that
    Service Pack 1 or
    a later update is needed for the support of SQL 2012 on Windows Server 2012 R2.
    For more details about how to use SQL Server in Windows Server 2012 R2, please review the following KB article.
    http://support.microsoft.com/en-us/kb/2681562
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • 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!
    Ashku

    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.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • 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.

  • Enabling server-side load balancing with Oracle 10g RAC

    Hi, all.
    I created a RAC database on vmware by using DBCA.
    By default, remote_listener and tnsname.ora have been configured.
    The followings are part of dba_services from my RAC database.
    NAME, GOAL, ENABLED, CBL_GOAL
    SYS$BACKGROUND NONE NO SHORT
    SYS$USERS NONE NO SHORT
    DEVDB NO LONG
    By default(created by DBCA), server-side load balancing is enabled for
    the RAC database, DEVDB??
    --> GOAL of DEVDB is null, but CBL_GOAL IS LONG.
    After creating a RAC db by using "DBCA", do I need to do something
    for server-side load balancing??
    If so what I need to do?? How can I test it??
    And what is beneficial in enabling server-side loadbalancing ??
    Is it good in the real world??
    Thanks for reading.
    Best Regards.
    Message was edited by:
    user507290

    [urgent] 10gR2 RAC Load Balancing Configuration (client and server side)!!
    [urgent] 10gR2 RAC Load Balancing Configuration (client and server side)!!
    Virag

  • VLV & Server Side Sort Query with ODSEE 11g

    Hi
    We are trying to integrate Microsoft FIM with ODSEE.. When FIM does a Full Import it with VLVControl and SortControl ON it gets the following error
    1100 objects were returned on import, exceeding the configured page size in the Run Profile of 500. Only the first 500 objects were processed. Import aborted.
    Now looking at ODSEE Logs it does the following
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 - SRCH base="<BASENAME>" scope=2 filter="<FILTER NAME>" attrs="<LONG LIST OF ATTRIBUTES>"
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:40 (0)
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:4 (0)
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:40 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:6412 (0)
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:685 (0)
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  SORT dn
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 -  VLV 0:499:0:0 1:232 (0)
    [27/Mar/2015:08:29:41 +1100] conn=1 op=1 msgId=402743 - RESULT err=0 tag=101 nentries=1100 etime=1
    [27/Mar/2015:08:29:55 +1100] conn=3 op=2 msgId=402744 - UNBIND
    Ofcourse as we can see it is returning 1100 but FIM is expecting only 500.. Microsoft suggests that VLV index and server side sort is not correctly configured on our end. What could be going wrong here? We have both the supported controls ON in ODSEE. I have created a vlvindex entry in dse.ldif matching the SORT dn and vlvbase,vlvscope and vlvfilter
    Not well versed with VLV and sort index..

    Hello,
    Could you try to perform an equivalent search with the ldapseatch that comes with DSEE and check how many entries are returned ?
    See ldapsearch(1) (Sun Java System Directory Server Enterprise Edition 6.2 Man Page Reference) , option -G
    If the ldapsearch returns more than 500 entries, I would encourage you to contact the Oracle Support.
    -Sylvain
    Please mark this response as correct or helpful when appropriate to make it easier for others to find it

  • Server side database access with Applets?

    Does anyone know how to do this without any JDBC or any other expensive, server heavy and special requirements?
    Who could be interested in this?
    Am i the only one?
    Most internet hosts, rented i mean, do not give many possibilities you have PHP and not much more to access a MySql or other database engine.
    If you want to build an aplication, a decent one, you must use java Applet because server side Java is not very interesting and is very expensive.

    Personally, I think server-side Java is very interesting and would disagree that a decent web application necessarily requires applets.
    I use Supplehost for their reliable and inexpensive Java hosting service.
    Many sites and applications make use of cross-browser DHTML and Java server technologies (JSP and servlets) are ideal for building and delivering data-driven DHTML pages.
    Of course applets have their advantages but, without a server providing access to data in a database, they're effectively working just as a static web page.
    There are other interfaces to databases: for example, Microsoft SQL Server provides the means to interrogate SQL databases through the underlying web server and to have the results returned in XML format.
    For me, J2EE provides the best tools for developing data-driven applications and the question over which client should do the presenting is more often one of how best to cater for the intended audience: cross-browser DHTML is best in some circumstances, applets in others, Macromedia Flash in others.
    Check out Supplehost's site: you get SSH and secure FTP access to a shared server, can install and run servlets and JSP applications and upload, configure and restart your applications very easily:
    http://www.supplehost.com
    Chris.

  • How to Sync the session timeout of Portal with CMS Server

    Hi Experts,
    We have a custom application build on our portal which will launch the reports of InfoView. It works fine untill the portal session timeout. Whenever the session timeout occurs and reloads it I am unable to launch the reports and getting the below exception.
    com.crystaldecisions.sdk.exception.SDKException$OCAFramework: Unable to reconnect to the CMS server_ip:6400. The session has been logged off or has expired. (FWM 01002)
    Portal is configured with SSO. Please adviese how to set the settings of session timeout in such way that Portal sync  session timeout with CMS server.
    Thanks in Advance,
    Chinaa.

    Hi ,
    There is no such option to sync Portal timout with CMS server.
    To resolve your problem you have only option to set your CMS server timout to MAX value.
    Thanks
    Anil

  • How do I use my own domain name  with Mac server with iWeb

    For a number of years I have had my own domain name that when typed into a browser it would redirect the browser to my site on the .Mac server. I hear with iLife ’08 I can have my own domain name hosted by .Mac so I know longer have to have the long addresses for each pages the I have now for my site (i.e. the http://web.mac.com/thewildhearts/WildheartPhotography/NatureGalleries.html). How do I go about getting my domain name (wildheartphotography.com) so that Mac will host it and do I need to notify the current host that Mac will be hosting my site now?
    Thanks. I really appreciate the help I get from this forum.
    Pat

    It's very easy, really. You go to your domain control and redirect the address. IPower, for example points the domain name very easily: you just type in the URL of your site and it will point to your mac server.
    I've used GoDaddy before and it is a bit more difficult to "point".

  • How to align the text in justify format with SQL Server Reporting Services?

            How to align the text in justify format In SQL server Reporting Services? Is there any code to do so?

    Hi,
    I'm afraid that if you want to have this kind of functionality, you will need to write a custom control. Here is an example: http://msdn2.microsoft.com/en-us/library/ms345265.aspx. The issue with custom controls is that it needs to be known by all the reportservers that will render your report.
    Greetz,
    Geert
    Geert Verhoeven
    Consultant @ Ausy Belgium
    My Personal Blog

  • Anyone witnessed Server Side Copy in action with Yosemite Server 4.0.3?

    Hi,
    Just curious if anyone can validate the following for me before I upgrade.
    1. Client is Mac OS X 10.10.2 client
    2. Server is Mac OS X 10.10.2 running Server 4.0.3
    3. Server is sharing out two shares via SMB only which for argument sake have faster I/O than gigabit network.
         /Volumes/ShareA
         /Volumes/ShareB
    4. Client mounts both shares with read and write ability.
    5. Client duplicates a 10GB file on ShareA.
       a).  Does ServerSideCopy kick in here and thus the task is very quick? or
       b). does the data have to traverse the network still?
    6. Client copies a 10GB file from ShareA to ShareB
    a).  Does ServerSideCopy kick in here as well and thus the task is very quick? or
    b).  Once again, does the data have to traverse the network still?
    Thanks,

    Yes, sorry. 5a.
    Now, the test might have been a bit superficial. I did a
    dd if=/dev/zero of=10g.dat bs=1 count=0 seek=10g
    to create the original file, so it was a sparse file full of zeroes. However, I can confirm that the duplicate (5a) was fast and the copy (6b) was slow.
    I just retried with
    dd if=/dev/urandom of=10g.dat bs=1m count=10k
    and I can confirm that 5 does not go over the network (i.e., 5a is confirmed as true), but 6b remains true (does go over the network).
    The duplicate of the file with random data was much slower than that of the sparse, zero-filled file, but it absolutely did not do either duplicate over the network.

  • How to : Configure Project Server 2010 to work with Exchange Server 2013

    Hi everybody. I have a problem. I did integration success project server 2010 with exchange server 2010. But now my customer use exchange server 2013. So my question is "Have a way to integration project server 2010 with exchange server 2013 ?"

    I haven't seen any document with Project 2010 and Exchange 2013. You could still try the old document with Project 2010 and Exchange 2010.
    http://technet.microsoft.com/en-us/library/ff468700(v=office.14).aspx
    It might just work.
    Thanks Gaurav Wason MCITP, PMP

  • Yosemite server: no CardDAV-Sync with Yosemite clients

    Hi everybody,
    this drives me really mad:
    We had a Lion server (older Mac mini) with Calendar and Contacts services running with no issues. We used global accounts to share company's events and contacts between Macs and iOS devices.
    We started using Yosemite on the clients. Even two new clients (iMac and MacBook Air) came into place with Yosemite already pre-installed. Again: Everything works together.
    We bought a new Mac mini to switch to Yosemite and OS X Server 4. We didn't any migration and started from scratch: DNS, Open Directory etc.. On one client machine (Yosemite) we just exported the calendars into *.ics-files and the contacts (groups) into *.vcf-files.
    On the new server we created network accounts with an exported text file and NOT via an OD archive of the old server, the new server has a different hostname/IP address, both servers didn't disturb each other.
    The migration took place at one client again: Importing each *.ics-file into the new account works as expected. Every appointment or event was then synched to every client (OS X, iOS) from the new server.
    But: While importing the contacts into the global network account of the new server seems to have been worked, the syncing down to the Yosemite clients breaks and didn't finish. Mavericks clients and iOS clients sync within a few seconds without any problem: They have the same amount of contacts and groups. The Yosemite clients sync far longer and are missing about 100 or 200 (it differs from machine to machine) entries and do not show any group at all.
    Even a completely new created local account with fresh configuration of Contacts.app shows this behavior on Yosemite clients. But ONLY with the new server.
    This is really strange, isn't it?
    Has anyone got similar experiences? And solved this issue, probably?
    Best regards,
    Olaf

    I am experiencing a similar problem with both CalDAV and CardDAV.  The existing accounts seem to work as long as you don't try to add a new one.  When you try to add a new CarDAV or CalDAV account, a OS X Server account is added instead.  The new account gives you the options of selecting Calendar, Contacts, etc. but it's not working.  I'm not sure how to work around this yes, but Apple Support suggested copying the files from a working Library into the one that is not working, but I have not had success doing this.  This is a known bug that needs to be fixed. If you figure out a work around please let me know [email protected] thanks.

Maybe you are looking for

  • J1IEX capture excise invoice error.

    what i had done was; 1st - create an import PO and my pricing procedure used was SAP CIN standard JIMPOR. 2nd - PO created under 12345, i proceed to MIRO to post the invoice under 11111. *note that GR was not being done at this point. 3rd - next i pr

  • How do set image files to open in 32-bit version of PS instead of 64-bit?

    I recently got a new laptop with windows 8, it is horrible.  Aside from that I was able to install my CS5 , I pinned my 32 bit to the task bar but for some reason whenever I am in bridge and want to open an image (s)  it goes to open the 64 bit photo

  • How do you activate WCF?

    I am new to SCCM 2012 and I am trying to install Configuration Manager so that we can test if this is the right product for our environment.  We need to push 3rd party application updates to all our networked workstations and WSUS will not allow anyt

  • IVL License and validity date

    Hello Experts, How do you apply an IVL license to a sales order that was placed before the validity date of the license?  The business scenario that I have is a sales order was placed in September, and it required a license.   We applied for the lice

  • Bug in Firmware v5.0616.2.0.3 of N70

    I don't know, if the firmware-engineerings of Nokia also reading this forum . . . Since v5 of the firmware of the N70, i discovered 2 problems: 1. When sending a portrait-picture via mms, de picture is crippled to landscape ! :-( 2. The "Series60Skin