Innovators in Mail server, Webmail and appliance solutions

 

July 2, 2008

 Creating public folders

This is a tutorial on how to setup AtMail with public-folders. An example scenario, your a company with over 10 employees and you need a global Support and Sales folder.

This folder should be shared and accessible to selected users, with the ability to use IMAP or Webmail to access the shared folders.

Public folders are vital to improve work flow, help consolidate email messages from clients, and provide a central repstitory of messages that can be searched.

So how do we do this in AtMail?

Pre-requirements:

  • AtMail 5.4 or above
  • Full mail-server mode required
  • Step 1:

    Define a CSV file of users you wish to share a public folder with, e.g

    publicfolder.csv:

    Support, ben@company.org
    Support, jason@company.org
    Support, andyg@company.org

    Where the above user@company.org is a real user on AtMail, has an account and mailbox already created.Upload the CSV file to the server and execute the script batch-publicfolder.php

    cd /usr/local/atmail/webmail/modules/
    php batch-publicfolder.php < /tmp/publicfolder.csv

    Once executed, for each user on the system the following will be returned.

    Creating public folder for Support for user@company.org
    Creating PublicFolder /usr/local/atmail/users/shared/.Support
    Adding maildir /usr/local/atmail/users/shared/.Support
    Adding maildir /usr/local/atmail//users/u/s/user@company.org/shared-folders/SharedFolder/Support
    Creating Symlink  /usr/local/atmail//users/u/s/user@company.org/shared-folders/SharedFolder/Support to  /usr/local/atmail//users/u/s/user@company.org/.Support
    Adding  /usr/local/atmail//users/u/s/user@company.org/SharedFolder/PremiumSupport/shared

    Step 2:

    Once the public-folder is created, an email alias must be setup to direct the messages into the public folder created.

    Visit the AtMail Webadmin > Email > Email Aliases and define the alias-name, and the directory of the new public folder ( In this example, the directory is named /usr/local/atmail/users/shared/.Support )

    picture-7.png

    Step 3:

    Once the alias and public folders are created, simply email the support@company.org email, and messages will be stored on the Shared folder.

    Each user that logs in via IMAP or Webmail will analyze the shared folder, and symlink each message to the users personal maildir. This is required to keep message flags ( unread/read/replied ) status for each user, while simply referring to the public-folder email on disk via a symlink.


    Filed under: Exim, Groupware, Linux version, PHP version — info @ 9:10 pm

    No Comments »

    No comments yet.

    RSS feed for comments on this post. TrackBack URI

    Leave a comment