Public folders for users to identify spam

It looks like it should work, but ...
I have SL server providing IMAP mailboxes for users, and that all works fine.  As it is now, for a user to notify SpamAssassin that it didn't classify a message properly, they have to actively redirect the message to the junkmail or notjunkmail account.  This is a PITA and a) they can't be bothered and b) the email address to which they're to redirect or forward the improperly classified message is subject to errors.
What I'd like is a pair of public mailboxes that they can just drag misclassified messages to, so I set up a public namespace containing two mailboxes, JunkMail and NotJunkMail.  They're visible to all the users I want them to be and the permissions seem right.  The plan is to whip up a launchd job to digest the contents of these mailboxes in the middle of the night, much like the stock sa-learn job.
The problem is that when I try to drag a sample email message from my inbox to the JunkMail foler, I get an error that says <bold>Blah blah blah</bold> The IMAP command "UID COPY" (to Public.JunkMail) failed for the mailbox "wherever I drag from" with server error: Character not allowed in mailbox name '.'.
I've tried changing the 'separator' in the namespaces to bot '/' and '.', with no discernible difference in behavior or message.  I've set all of the mail logging levels to DEBUG to no avail.  I've made the public mail boxes world-writable.  Nothing seems to help, or even change the client-side behavior.
If someone more knowledgeable about dovecot and its IMAP configuration can point me in the right direction, I'd appreciate it greatly.
Thanks,
  - Ted

This is a followup to let people know how I got it to work.
My supposition is that when dovecot evaluates whether a user can write into a folder it does not do a full group membership expansion to determine the user's rights, so making the folders in question writable by the shared 'mailusers' group (that all human mail users are members of) was not adequate.
Instead, I had to add ACLs to the target folders granting explicit rights to each individual user.  My nightly spam-training script uses the approach of stopping the mail server, moving any folders that might contain trainable messages aside, replacing those folders with empty versions of themselves, then restarting the mail server.
I had been using a more elaborate approach that evaluated whether there was anything to process before stopping the mail server, but with the ACL approach that also meant comparing the current group membership with what users had been set on the folders' ACLs.  After I had written the script to do that, I decided the slight increase in efficiency wasn't worth the added complexity - bouncing my mail server in the middle of the night isn't even marginally problematic for my users, but YMMV.  Instead, by just replacing the folders each night with their ACLs generated from the current group membership, membership changes are incorporated within 24 hours, which is good enough for me.
Anyway, this Bash snippet shows the crux of what I'm doing now:
readonly    SP='[:space:]'
readonly    UserList="$(dscl  '/LDAPv3/127.0.0.1' \
    '-read' "/Groups/$UserGroup" 'Member' | sed -En \
    "s!^[$SP]*Member[$SP]*:[$SP]*(.+)[$SP]*\$!\\1!p")"
readonly    ServerStatus="$(serveradmin status mail \
    | sed -En 's!^[^"]*"([^"]+)".*$!\1!p' \
    | tr '[:upper:]' '[:lower:]')"
[[ "$ServerStatus" != 'running' ]] \
    || serveradmin stop mail > /dev/null
for d in "$PublicSpamPath" "$PublicHamPath"
do
    [[ ! -d "$d" ]] || mv "$d" "$d.$ScanSuffix"
    mkdir -m 2755 "$d"
    chgrp "$UserGroup" "$d"
    for n in $UserList
    do
        chmod +ai "$n allow $UserAcls" "$d"
    done
    mkdir -m 2755 "$d/cur" "$d/new" "$d/tmp"
    chgrp "$UserGroup" "$d/cur" "$d/new" "$d/tmp"
done
[[ "$ServerStatus" != 'running' ]] \
    || serveradmin start mail > /dev/null
If this helps, you're welcome.

Similar Messages

  • Enable legacy public folders for Exchange 2013 prior to migration?

    We're about ready to migrate to Exchange 2013 from 2010. We have a public folder database on 2010 that users can't see once migrated to 2013. If I run through the commands according to the technet article "Configure legacy public folders where user
    mailboxes are on Exchange 2013 servers" (https://technet.microsoft.com/en-us/library/dn690134(v=exchg.150).aspx), will users who's mailboxes are still on Exchange 2010 be able to see these public folders?

    I know they've made alot of changes recently in how legacy public folders are handled in Exchange 2013 (mostly CU7), but I haven't had to do anything more than just setting the proper public folder database on the Exchange 2013 databases.
    That being said, looking over the article you are not doing any moves, and it looks eerily similar to this blog post:
    http://blogs.technet.com/b/exchange/archive/2014/11/07/on-premises-legacy-public-folder-coexistence-for-exchange-2013-cumulative-update-7-and-beyond.aspx
    So I don't think this would hurt Public Folder access for your users in your legacy environment.
    Did you deploy CU7?  If so, then do what both articles say.  If not try using Set-MailboxDatabase -Identity <2013 db name> -PublicFolderDatabase <PF DB NAME>
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread

  • Configure legacy public folders where user mailboxes are on Exchange 2013 servers

    Hello all,
    I have mailboxes on an exchange 2013 server than need access to public folders on a 2010 server before I migrate them over.  I followed the commands in the TechNet article with the subject "Configure legacy public folders where user mailboxes
    are on Exchange 2013 servers" (sorry, I wasn't allowed to insert a link because I wasn't verified?).  The problem is when I run the last command of "Set-OrganizationConfig -PublicFoldersEnabled Remote -RemotePublicFolderMailboxes ProxyMailbox1,ProxyMailbox2,ProxyMailbox3"
    on the 2013 server, using the mailbox name I had created, it says it cannot be found.  Of course I checked and the mailbox exists, is configured properly, and so is the new database.  The 2013 EAC also sees the mailbox with no issues. 
    Can someone tell me why I am getting this error?
    Thanks,
    Shaibal

    Hi Mavis,
    Thank you for your response.  I am the full domain admin, and check and was part of both groups mentioned above.  Also, I have only one 2010 server with public folder, and so the command I am running on the 2013 looks like this: Set-OrganizationConfig
    -PublicFoldersEnabled Remote -RemotePublicFolderMailboxes PFMailbox1. I even just created a second user and mailbox using the console instead of the shell, and still no luck.
    Below is the error I get:
    [PS] C:\Windows\system32>Set-OrganizationConfig -PublicFoldersEnabled Remote -RemotePublicFolderMailboxes PFMailbox2
    Couldn't find object "PFMailbox2". Please make sure that it was spelled correctly or specify a different object.
        + CategoryInfo          : NotSpecified: (:) [Set-OrganizationConfig], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=ZOR-EXCHANGE01,RequestId=cc567b2f-34d8-41ba-9261-143223566e06,TimeStamp=3/5/2015
        4:36:10 PM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 2EF24201,Microsoft.Exchange.Management.Sys
      temConfigurationTasks.SetOrganizationConfig
        + PSComputerName        : zor-exchange01.zubatkin.lan

  • Downsize Public Folders for Migration to Office 365

    To migrate public folders, I have been following this link: http://technet.microsoft.com/en-us/library/jj983799%28v=exchg.150%29.aspx
    However, this customer's public folders are exceeding well over 50GB. There are contacts and a calendar. I am looking for assistance/advice on downsizing public folders for migrating to Office 365.
    Exchange 2007
    Server: Windows Server 2008 Standard

    Hi,
    To reduce the public folder's size prior to the migration, you can try to delete the old content or split it into multiple smaller public folders.
    Here is a related article for your reference.
    Public Folders and Exchange Online
    http://blogs.technet.com/b/exchange/archive/2013/05/02/public-folders-and-exchange-online.aspx
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Access refused in public folders when user is in a Group

    Hi, 
    We have a Exchange 2003 server and an Exchange 2010 server
    The Public folders are on the 2003.
    Since 2 or 3 days, there is a access issue in juste ONE public folder: SOME users cannot access to the folder anymore if there are in a group (it asks for a login and a password -> if the user enters them, it doesn't work)
    BUT the issue is just for some users not all and there are in the SAME group.
    The issue is the same with both distribution or security group (and universal).
    Please Help

    Hi,
    From your description, I recommend you follow the steps below for troubleshooting:
    1. Please run the Get-PublicFolderAdministrativePermission -Identity "xxx" -User "xxx" cmdlet to check these users' permissions for the public folder.
    2. If they don't have the related permissions, please use the Add-PublicFolderClientPermission -Identity "xxx" -AccessRights xxx -User xxx cmdlet to add the permissions for them.
    For more information, here are some articles for your reference.
    View Public Folder Administrative Permission Settings
    http://technet.microsoft.com/en-us/library/aa998587(v=exchg.141).aspx
    Add Permissions for Client Users to Access Public Folder Content
    http://technet.microsoft.com/en-us/library/aa998834(v=exchg.141).aspx
    Hope it helps.
    If you need further assistance, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Problems moving public folders for 2k3 to 2k7 migration

    Hello,
    i'm having problems with moving the public folder from the 2k3 to 2k7, following the steps i've found on mig docs and googling for this issue and i cant seem to solve it, letme detail:
    There are only 3 user created public folders, all with contacts, they weight less than a MB combined.
    So first thing, iin E2k3 ESM i right click the public folder store and select "move all replicas", it works succesfully.
    if i expand the pf store and check replicas i see a ton of system folders with 2 replicas.
    i also check every user folder, change the replication to always and urgent and resend changes/synch content from 2k3 to 2k7
    Now according to migration documents the "pf instances" should empty by itself after some time....
    well it's been a day and in fact i see more items than before on the 2k3, if i expand the instances on the 2k7 i see 4/5 folders, none of the user ones!.
    I also ran the moveallreplicas.ps1 script.
    if i run Get-publicfolder -recurse |fl name,replicas i only get:
    Name     : IPM_SUBTREE
    Replicas : {}the next step is apparantely to move the public folder "folder" itself from the 2k3 admin group to the 2k7, i can do that and it gives no error but i'm worried that if i decommision the 2k3 that it will all fail horribly.
    ¿whats going on, how can i move this thing for once?

    Hi,
    Make sure you have added the Exchange 2007 in the Replication tab list of all folders in Exchange Server 2003.
    In Exchange 2003, please increase the logging level to Maximum on the diagnostic logging categories: Replication Incoming Messages and Replication Outgoing Messages.
    Here is a related article which can help you for your reference.
    How to troubleshoot public folder replication problems in Exchange 2000 Server and in Exchange Server 2003
    http://support.microsoft.com/kb/842273/en-us
    Another useful article:
    Some Public Folder content is not replicating from Exchange 2003 to Exchange 2007
    http://blogs.technet.com/b/dblanch/archive/2009/04/10/some-public-folder-content-is-not-replicating-from-exchange-2003-to-exchange-2007.aspx
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • How do I create Local Network Home Folders for Users from an Active Directory binding?

    My situation is this... I run an iMac lab at my school.  I have a server set up to manage the network user accounts in the lab.  Currently, I can sucessfully create Local Network Users and log in to them from any of the iMacs.  My school has an Active Directory set up for all the students on campus.  What I'd like to be able to do is configure the server to allow the students to use their user names and passwords from their school accounts to log in to the iMacs and have it automatically build a network user folder on the server for them to use during the lab. 
    So far, I have been able to configure access for the Active Directory accounts to use the services on the server, mainly File Sharing, but I cannot figure out how to allow them to log into a user account on the client's machines using their same Active Directory credentials.  I have even attempted to allow the user accounts to create mobile accounts, but that's not working out either.  Entering indivual network user accounts into the server for every student every semester will be a nightmare.  I'm sure there's a way to do it automatically using the exisitng Active Directory structure.
    The live server is running 10.8.5 Server still, but I've also got a clone running OS X Server in case it matters.  Please help!

    ok reinstalled everything dns seems to be working have done sudo changeip -checkhostname and it says that both names match but then i started open directory and can't seem to get Kerberos started, i've tried changing it to stand alone then back again but it does nothing. I'm wondering why this would happen? i've tried adding a kerberos record but it doesn't do it just does nothing so i don't know what i'm doing wrong. I wondered if it might be a problem with the two network cards and dns as on ethernet one it is getting the dns name xserve.xxxx.ac.uk (which matches what the college server wants to call us) but on ethernet 2 gets xserve-2.local because it tells me that it already exists on ethernet one and renames it to this. I need to set up NAT so have ethernet coming in on port one and out again on port two. I wonder if my dns is backwards as its got the 192. address the NAT uses but its linked to the ethernet port one dns maybe this is the problem. would this cause open directory not to start kerberos?

  • Public folders not replicated

    I have an Exchange 2007 and two Exchange 2010 servers.  The 2007 server used to house all mail until and upgrade to 2010, everything was moved over, so I assume since I didn't do the move and Public folders show as being on the 2007 server as well
    as the two 2010 servers.  However when I shutdown the 2007 server Public folders begin to not work for users.  How can I get rid of the old server without screwing up the Public Folders for users?

    Hi,
    Based on the description, you have moved mailboxes to Exchange 2010, and the public folders on Exchange 2007 have been replicated to Exchange 2010. If you shutdown the Exchange 2007 server, Exchange 2010 users can't access public folders. If I misunderstood
    your concern, please let me know.
    Please run the Get-PublicFolderStatistics cmdlet to check the result.
    And please check if you specify the public folder database on Exchange 2010 as the default public folder database for mailbox database on Exchange 2010 server.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support
    That is correct.  If I run the command all I get is the name of folders item count and last access time, this is if I run it from the 2010 server.  It currently looks like the default is on the 2007 server.  Would switching the default to the
    replicated DB on the 2010 server allow me to completely remove the 2007 server?

  • Users unable to create or delete folders in migrated public folders using Outlook

    We have an Exchange 2013 CU3 environment migrated from Exchange 2007.
    The public folder migration was completed over the weekend.
    The environment has several public folder mailboxes.
    Post migration users are unable to create/delete new sub folders,  or modify permissions using Outlook on any of the migrated public folders.  Users can however create new top level folders using outlook. They can also create and delete new posts
    in migrated public folders.
    Admins are able to create folders and set permissions on migrated folders using the EAC.
    Test User accounts used for testing are set to use the Primary Hierarchy mailbox as their default public folder mailbox.
    Test Users have been given Owner permissions from the root down on the folders we are testing with.
    We have tested with Outlook 2010 and 2013 getting the same "Cannot create the folder" error.

    Further testing
    We moved a top level folder from a secondary PF mailbox to the primary PF mailbox using the New-PublicFolderMoveRequest command in powershell.
    After the move completed we could create new folders under the moved top level folder.
    The top level folder that was moved had it's own sub-folders that we did not move to the primary mailbox. (We didn't move the whole branch.. Just the top level folder)
    We still cannot create or modify the existing sub-folders after moving the top level folder.
    We then moved the newly created sub-folder to a secondary PF mailbox.
    At that point we could no longer create sub-folders in the folder form outlook.
    From what I can tell you can only create new sub-folders in folders homed to the primary PF mailbox when using outlook.
    Is this a bug or as designed?
    According to this Tech ed presentation Clients connecting to a secondary PF mailbox should have folder changes proxy to the primary PF mailbox.. (See slide 10)
    http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/OUC-B329#fbid=
    Update : 2-5-2014
    Not much new to report other than it appears that users need to be homed to the primary PF mailbox to delete calendar meetings.
    Opened a ticket with Premier support.
    Update 2-11-2014
    Premier support continues to look into the issue. No ideas as to the cause yet.
    2-24-13
    Still no resolution from support or even a clue what is causing this.

  • Announcing Office 365 compliance toolset for public folders

    Announcing compliance toolset for public foldersWe are pleased to announce that the Office 365 archiving and eDiscovery toolset is being extended to include public folders. Customers can now place public folder content on hold to preserve it for legal or regulatory requirements. They can perform eDiscovery functions on public folder data, including search, preview and export. Entire public folders or specific content (based on keywords) can be preserved immutably. They can delete aged items out of public folders. And all administrative activities on public folders are fully audited. Throughout all these operations, users can continue to interact with public folder data without any change in their experienceTo perform an eDiscovery search on public folders, you simply specify “public folders” as the source. If you choose to put public...
    This topic first appeared in the Spiceworks Community

    Hi,
    Please see the step 1 in the following article:
    Configure Legacy On-Premises Public Folders for a Hybrid Deployment
    http://technet.microsoft.com/en-us/library/dn249373(v=exchg.150).aspx
    Thanks,
    Simon Wu
    TechNet Community Support

  • Exchange 2013 User cannot view public folders

    Good morning,
    User was able to view public folders, then lost connection to public folders.  User cannot view public folders in OWA. 
    Verified proper permissions.   No changes have been made to the user account in AD, exchange. 

    Did you do a fresh install of Exchange, meaning there was no version of Exchange installed previously? If not, have you moved Public Folders over to Exchange 2013 yet?  If the answer to this question is no, then you will not be able to view Public
    Folders in OWA until they are migrated over Exchange 2013.

  • Cannot Open Some Public Folders on MacBook

    I have several users using my macbook. Each user has their own user account. For user accounts created before "Personal File Sharing" was switched on, other users (except for root) cannot open the "Public" or "Drop" folders. Public and Drop folders for user accounts created after "Personal File Sharing" was switched on may be opened by all users. Both the pre- and post- "Personal File Sharing"-switched-on folders have the correct permissions settings.
    The only work-around I can think of to ensure every user has Public and Drop folders that every other user can open is to delete the pre-"Personal File Sharing"-switched-on user-accounts and create new ones.
    Any other suggestions? Is there some other setting I need to change?
    Help much appreciated.
    MacBook   Mac OS X (10.4.9)  

    When you say "cannot open the "Public" or "Drop" folders, do you mean that the folders are available in the list of shares but cannot be opened, or that the folders aren't available at all? I'm not sure if this is related to your problem, or what accounts for the different behaviours, but it seems in "Tiger", new accounts are often created with an empty 'sharedDir' property. This property in the user record specifies which of the user's folders is to be shared for non-user access in AFP, and usually has a value of "Public". The "Public" folders of users without this property set will not appear in the list of available "shares" that appears after connecting to an AFP server.
    To see what the current value of 'sharedDir' is on a given account, try opening "/Applications" > "Utilities" > "Terminal.app" and entering the command below, substituting 'username' with the user's "short name":<pre>nicl . -read /users/username sharedDir</pre>
    The expected output is 'sharedDir: Public', but if it is just 'sharedDir:' or 'No such key: sharedDir', then that would explain why those users' "Public" folders aren't available for personal file sharing. To set the value to "Public", make sure you are logged in to an "admin" account and try this command:<pre>sudo /usr/bin/nicl . -create /users/username sharedDir Public</pre>
    Substitute a user's name as above, and enter your "admin" password when prompted (your password will not be visible as you enter it - just press the <Return> key after you are done).

  • Having issues seeing public folders in Exchange 2013.

    We have an multi-tenant Exchange 2013 environment and are currently trying to set up up Public Folders for use with one of our tenants.  
    I have created the primary public folder mailbox and then created a public folder for the Tenant and assigned the necessary permissions to user account I would like to access the folder from (in this case "owner" permissions).  However I cannot
    see the public folder from Outlook.  This is the case with both Outlook 2007 and Outlook 2013.  I have made sure I am in the folder view (Cntrl + 6) but I see no public folders to speak of.  I am able to log into OWA and add the public folder
    to the favourite list by right clicking and selecting "add public folder", I am also able to access the public folders using a third party mobile app for iPhone called "Public Folders".  I've also tried creating completely new profiles
    in both versions of Outlook but I cannot see the public folders that way either.
    We are currently using a third party wildcard certificate with our multi-tenant environment, not sure if that would have an impact on what we are doing here but thought I'd throw that in just in case. 

    Hi,
    Do you mean the public folder still cannot be seen even you logged the Outlook 2007 good user on an Outlook 2013 machine?
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Exchange 2010 - Decommissioning Exchange 2007 Coexistence and Removal of Public Folders

    We are about to decommission exchange 2007, currently in coexistence with Exchange 2010.
    We do not want to use ANY public folders in exchange 2010 going forward. Will do this after decom of 2007:
    http://technet.microsoft.com/en-us/library/dd876883(v=exchg.141).aspx
    I see this in the outlook connection status in outlook:
    I have changed all Exchange 2010 mailbox databases to use a temporary 2010 public folders db named "public1" so that it is not communicating with the 2007 mailbox virtual server. However, the exact same connection status appears after I changed
    the 2010 mailbox DBs to use a 2010 public folder db instead of the old 2007.
    Question is, is it safe to decom the 2007 environment now? Is it normal to still have a connection to 2007  in "connection status" in outlook when the users mailbox is on a 2010 mailbox db? Is this connection related to public folders or something
    else that needs modified before decom?
    Thanks,
    Josh

    So, that wasn't the answer. I switched the Public folder DB on each mailbox database to a exchange 2010 server, PF DB, but hadn't actually moved any data from 2007 to 2010. 
    I didnt realize this is needed when we don't use public folders except for free-busy, default, etc.
    What is the correct way to move the default public folders to a 2010 public folder?
    I'm using the below URL as a template to migrate this info to a 2010 PF db.
    https://www.simple-talk.com/sysadmin/exchange/upgrade-from-exchange-2007-to-exchange-2010---part-ii/
    "The user Public Folders then need to be replicated to the Exchange 2010 Public Folder database as well. It is possible to manually configure
    all Public Folders with a new replication partner, but it’s better to use PowerShell scripts that Microsoft delivers with Exchange Server 2010. Open the Exchange Management Shell and navigate to the Scripts directory
    by entering the CD $ExScripts command,
    and execute the following script:
    AddReplicaToPFRecursive.ps1 -Server 2007MBX -TopPublicFolder "\" 
    -ServerToAdd 2010MBX"
    My question is, do I have to do this "3rd step" since I don't think i have any custom "user public folders". Is this the user's free busy that I have to migrate, or is this author referring to custom PF db info?
    Do I have to have public folders for free-busy and default exchange services at all in 2010?

  • Trouble viewing calendar in public folders

    The Exchange server at my work has a calendar in the public folders for each department (probably over 30 calendars total). I have one user who cannot view the calendar for her department, but she doesn't seem to have any issues viewing the calendar for
    any other department.
    When she opens this specific calendar, it doesn't generate any errors. It simply loads a calendar with no appointment entries. Earlier this year, we replaced this person's computer that was running Windows XP and Office 2003 with a computer running Windows
    7 and Office 2010, and we still see the same issue.
    The technician in charge of our Exchange server is the only one who has access to set these permissions, but he said he doesn't see anything wrong with the user's profile. He also doesn't seem to really understand the issue that I'm describing. Does
    anyone know what would cause this and what I could suggest the other technician to check?

    Hi,
    Based on your description, only one user can't view the calendar for her own department. Others can see the the calendar for her department. You have checked Outlook is in online mode, but OWA works well.
    Please open Outlook in safe to check result.
    Please check the connection status by holding the CTRL button down while right-clicking the Outlook icon in the task bar.
    Please grant this user the owner permissions to the affected calendar folder to check result.
    Without losing several years worth of archived emails, I recommend you export these serverl years messages to a pst file just in case.
    Best regards,
    Belinda Ma
    TechNet Community Support

Maybe you are looking for