|
|
Line 1: |
Line 1: |
− | [[Scalix Wiki]] -> [[How-Tos]] -> '''Public Folders''' | + | [http://www.cnhhgc.com 钢管] |
− | | + | [http://www.beidougg.com/cpjs.asp 钢管] |
− | == Creating Public Folder with the SAC plugin ==
| + | [http://www.beidougg.com/zxdd1.asp 钢管] |
− | There exists the [[Administration Plugins|addpf]] plugin to create public folders from the admin interface.
| + | [http://www.cnhhgc.com/ 钢管] |
− | | + | [http://www.cnhhgc.com/cpzy2.asp 钢管] |
− | == Managing eMail Addresses for Public Folder ==
| + | [http://www.cnhhgc.com/ggbook/ 钢管] |
− | To assign an eMail address to a public folder, use the following steps:
| + | [http://www.miaoyuan.com/blog/user1/JSQC931/archives/2007/25309.html 钢管] |
− | First, you need to find out the name of your primary mailnode. At the shell prompt, type the following command to find out your system's default mailnode:
| + | [http://www.3wtime.com/blog/user1/JSQC931/archives/2007/17707.html 钢管] |
− | omshowmn
| + | [http://www.abc434.com/blog/user/JSQC931/archives/2007/35304.html 钢管] |
− | If multiple mailnodes are listed, the one marked with the double star ("**") is the primary, as in
| + | [http://www.guanzhilu.com 乒乓球桌] |
− | ** scalix,demo
| + | [http://www.guanzhilu.com 篮球架] |
− | scalix,training
| + | [http://www.guanzhilu.com 体育器材] |
− | The mailnode is displayed in "positional format", i.e. it's components are separated by comma (","). There can be up to four components. These are named OU1-OU4, from left to right. Using this naming, the mailnode can also be rewritten in "tagged attribute" format. For example, if your mailnode is ''scalix,demo'', it can also be written as ''OU1=scalix/OU2=demo''; if it's only ''mynode'', it is rewritten ''OU1=mynode'' and if it is ''scalix,hq,sales'', it can be rewritten ''OU1=scalix/OU2=hq/OU3=sales''. You will need to specify the mailnode in tagged attribute format in the next command.
| + | [http://www.guanzhilu.com 健身器材] |
− | To add the address to the folder, use the following command syntax:
| + | [http://jsqc91.blog.hexun.com/14019680_d.html 健身器材] |
− | omaddent -e "S=+BB/<Mailnode>/DDT1=BB/DDV1=<Folder>/IA=<SMTP Address>/CN=<Display>"
| + | [http://www.sp-btob.com/u/JSQC91/archives/2007/15788.html 健身器材] |
− | In this command line,
| + | [http://jizhouren.com/u/JSQC91/archives/2007/9509.html 健身器材] |
− | * ''<Mailnode>'' represents your primary mailnode,
| + | [http://www.dzsb.com 探伤机] |
− | * ''<Folder>'' represents the Name of your public folder,
| + | [http://www.dzsb.com/product04.asp 探伤机] |
− | * ''<SMTP Address>'' is the Internet address you want to use and
| + | [http://www.dzsb.com/product05.asp 探伤机] |
− | * ''<Display>'' is the name of the address entry as it will appear in your address book.
| + | [http://www.dzsb.com/product03.asp 探伤机] |
− | For example, use
| + | [http://www.wzhj.com.cn 二手房] |
− | omaddent -e "S=+BB/OU1=scalix/OU2=demo/DDT1=BB/DDV1=Orders/IA=orders@scalix.com/CN=Orders Basket"
| + | [http://www.wzhj.com.cn/inc.htm 二手房] |
− | to add the Internet address orders@scalix.com to a Top-level public folder called Orders. You will also see an entry in your Outlook and SWA address books, so that internal users can also send email to the folder.
| + | [http://www.wzhj.com.cn/news.asp?type=1 二手房] |
− | To specify a subfolder, use the ">" syntax, i.e. use "Orders>Incoming" to specify a subfolder called incoming under the top-level "Orders" folder. This can be nested.
| + | [http://www.wzhj.com.cn/news_n.asp?id=166&type=1 二手房] |
− | To avoid displaying the entry in the addressbook, add <pre>/EX-CDA-DIRECTORY=1</pre> to the end of the attribute list when adding the entry.
| + | [http://www.wzhj.com.cn 北京二手房] |
− | To specify multiple Internet addresses for a single folder, use the <pre>IA=<SMTP Address 1>=<SMTP Address 2>=...</pre> syntax when specifying the Internet address.
| + | [http://www.wzhj.com.cn/news_n.asp?id=169&type=1 北京二手房] |
− | To change the address for a folder that already has an address assigned, use the following command syntax:
| + | [http://www.wzhj.com.cn/inc.htm 北京二手房] |
− | ommodent -e "S=+BB/<mailnode>/DDT1=BB/DDV1=<Folder>" -n "IA=<New SMTP Address>"
| + | [http://www.wzhj.com.cn/news.asp?type=1 北京二手房] |
− | This, with different parameter values for the -n option, can also be used to change the display name or the "exclude from addressbook" attribute. To remove the "exclude from addressbook" attribute, set it to an empty value, i.e.
| + | [http://www.58779677.com/blog/u/JSQC95/archives/2007/4062.html 北京二手房] |
− | -n EX-CDA-DIRECTORY=
| + | [http://www.dtfdxx.com/blog/oblog4/u/1798/archives/2007/10517.html 北京二手房] |
− | Finally, to remove an email address from a public folder completely and let it disappear from the internal address book, delete the directory entry using the following command syntax:
| + | [http://www.windowchina.com/blog/u/JSQC95/archives/2007/8572.html 北京二手房] |
− | omdelent -e "S=+BB/<mailnode>/DDT1=BB/DDV1=<Folder>"
| + | [http://www.zcld.net/ 门禁] |
− | | + | [http://www.zcld.net/Downloads.asp 门禁] |
− | == Managing Permissions for Public Folders ==
| + | [http://www.zcld.net/shownews.asp?newsId=722 门禁] |
− | | + | [http://www.zcld.net/product.asp 门禁] |
− | Permissions for Public Folders are managed with Access Control Lists (ACL). In addition to mailclients which are able to set permissions we can set, display and modify ACLs from the command-line.
| + | [http://www.zcld.net/ 门禁系统] |
− | | + | [http://www.zcld.net/product.asp 门禁系统] |
− | As there are several other types of resources which will work with ACLs too we have to specify the resource which we want to manipulate.
| + | [http://www.zcld.net/services.asp 门禁系统] |
− | The resource name for Public Folders is "bulletin", abbreviated "bb".
| + | [http://www.zcld.net/Downloads.asp 门禁系统] |
− | | + | [http://www.yiyaoren.org/user1/JSQC94/archives/2007/2007102614516.html 门禁系统] |
− | The invoker of the ACL-commands has to have at least configuration capability for the specified resource.
| + | [http://www.anchuangms.com/blog/user1/4140/archives/2007/22825.html 门禁系统] |
− | | + | [http://old.sghgz.cn/blog/user1/3633/archives/2007/20085.html 门禁系统] |
− | To display the defined permissions for a folder "My Folder" we can use
| + | [http://www.bjlzhh.cn/ 风淋室] |
− | omshowacl -t bb -l ":My Folder"
| + | [http://www.bjlzhh.cn/company/show.php?noid=24 洁净工作台] |
− | | + | [http://www.bjlzhh.cn/company/show.php?noid=78 洁净工作台] |
− | Please note the colon at the beginning of the foldername.
| + | [http://www.bjlzhh.cn/company/index.php?sortid=23 高效过滤器] |
− | | + | [http://www.bjlzhh.cn/company/show.php?noid=32 高效过滤器] |
− | To view the permissions of a nested folder "My Subfolder" below "My Folder" we use
| + | [http://www.bjlzhh.cn/index1.php 净化工程] |
− | omshowacl -t bb -l ":My Folder>My Subfolder"
| + | [http://www.bjlzhh.cn/server/show.php?noid=65 净化工程] |
− | | + | [http://www.bjlzhh.cn/company/index.php?noid=3 传递窗] |
− | omshowacl will also work with direct reference numbers, but this is more useful for people who use IP-adresses instead of hostnames. Reference numbers can be used be in scripts too.
| + | [http://www.bjlzhh.cn/company/show.php?noid=78 传递窗] |
− | | + | [http://www.bjlzhh.cn/company/show.php?noid=32 净化厂房] |
− | Lets have a look at the output of omshowacl. A folder with standard permissions will look like this:
| + | [http://www.qinfang.com.cn/blog/u/4218/archives/2007/13634.html 净化工程] |
− | Scalix Administrators config read see delete attach
| + | [http://wwrose.lun123.com/user1/JSQC96/archives/2007/10830.html 净化工程] |
− | Local Users none
| + | [http://www.jskz.net/oblog4/u/jsqc96/archives/2007/169.html 净化工程] |
− | Default read see attach
| + | [http://www.zbavinfo.cn 监控设备] |
− | | + | [http://www.zbavinfo.cn 硬盘录像机] |
− | We can see the predefined groups with their actual permissions.
| + | [http://www.zbavinfo.cn 远程监控] |
− | see: can only see the subject of the Public Folder
| + | [http://www.zbavinfo.cn/html/disuqiu.htm 智能球摄像机] |
− | read: can open the Public Folder and access the content
| + | [http://www.hualinhang.com 会计服务] |
− | attach: can put some things into the Public Folder and delete own stuff
| + | [http://www.xglzj.com 血管瘤] |
− | delete: can throw away things other people have attached
| + | [http://www.officebj.net 北京写字楼] |
− | config: can rename, delete Folders, set ACLs, can not add items
| + | [http://www.ytbaixin.com.cn 钢格板] |
− | | + | [http://www.qianyuangx.com 国学] |
− | Modification is possible with the ommodacln command (mind the "n").
| + | [http://www.ydtieju.com 平面磨床] |
− | ommodacln -t bb -l ":My Folder" -g Default -c delete.
| + | [http://www.flower-bf.com 鲜花] |
− | | + | [http://www.flower-bf.com/xhgjfkhb.htm 鲜花] |
− | == Allow Attachements to be sent to Public Folder from outside world == | + | [http://www.flower-bf.com/cxhtxhwyy.htm 鲜花] |
− | | + | [http://www.flower-bf.com/xhkdhbjsj.htm 鲜花] |
− | use
| + | [http://www.flower-bf.com/rbxhmxgd.htm 鲜花] |
− | | + | [http://www.flower-bf.com/xhdcyzfy.htm 鲜花] |
− | omlistbbs -b
| + | [http://www.jnhtyy.com 升降机] |
− | to get the BB-number and
| + | [http://www.jnhtyy.com 升降平台] |
− | | + | |
− | ommodacln -t bulletin -b <TheNumberFromAbove> -g default -c +attach
| + | |
− | | + | |
− | to change the Permission of the Folder.
| + | |
− | | + | |
− | | + | |
− | | + | |
− | to be continued..
| + | |
− | | + | |
− | == Maintaining Public Folders ==
| + | |
− | Here is a list of command line tools for maintaining and modifying Scalix public folders (aka Bulletin Boards). See the man page for each command for further details.
| + | |
− | | + | |
− | * '''omaddbb''' - add a Bulletin Board
| + | |
− | * '''omdelbb''' - delete a Bulletin Board
| + | |
− | * '''omlistbbs''' - list Bulletin Boards
| + | |
− | * '''omshowbb''' - show details of a Bulletin Board
| + | |
− | * '''ommodbb''' - modify a Bulletin Board
| + | |
− | | + | |
− | == Public Folder Replication in Multi-Server Configurations == | + | |
− | t.b.d.
| + | |
− | | + | |
− | == Simple wrapper script for more convenience ==
| + | |
− | As I start using scalix I see many somehow cryptic commands which often caused trouble for some users, me included. As I did not find anything compareable I started this one. It is based upon the advanced bash scriptung guide template for getopt_simple. I am in no way a bash professional so please bare with me, don't complain, edit it so it is more useful, less erroneous, more userfriendly, less sluggish written, more convinient and of course more powerful.
| + | |
− | I really urge the wiki-community to modify this script!
| + | |
− | | + | |
− | --TCWardrobe 12:30, 29 August 2006 (PDT)
| + | |
− | | + | |
− | #!/bin/bash
| + | |
− | # create-email-folder.sh a convinient way to add
| + | |
− | # an emailable folder for scalix
| + | |
− | #
| + | |
− | # Author: Michael Schmitt
| + | |
− | # Contributors:
| + | |
− | #
| + | |
− | # copy, use, edit, enhance it or throw it away. Do
| + | |
− | # whatever you want as long as nobody is hurt...
| + | |
− | # and of course it is covered by the GPL ;)
| + | |
− | # template used was getopt_simple from
| + | |
− | # http://www.tldp.org/LDP/abs/html/
| + | |
− |
| + | |
− | echo Usage: create-email-folder.sh -n=foldername -m1=mailnode1 -m2=mailnode2 -e=e-mailaddress
| + | |
− | echo Note: -m1 and -m2 represent your mailnode as m1,m2 syntax
| + | |
− | echo as I am to dumb to parse the output of omshowmn in a smart way
| + | |
− |
| + | |
− | create_folder()
| + | |
− | {
| + | |
− | echo "create_folder()"
| + | |
− | echo "Parameters are '$*'"
| + | |
− | until [ -z "$1" ]
| + | |
− | do
| + | |
− | echo "Processing parameter of: '$1'"
| + | |
− | if [ ${1:0:1} = '-' ]
| + | |
− | then
| + | |
− | tmp=${1:1} # Strip off leading '-' . . .
| + | |
− | parameter=${tmp%%=*} # Extract name.
| + | |
− | value=${tmp##*=} # Extract value.
| + | |
− | echo "Parameter: '$parameter', value: '$value'"
| + | |
− | eval $parameter=$value
| + | |
− | fi
| + | |
− | shift
| + | |
− | done
| + | |
− | }
| + | |
− |
| + | |
− | # Pass all options to create_folder().
| + | |
− | create_folder $*
| + | |
− |
| + | |
− | echo "Foldername is '$n'"
| + | |
− | echo "Mailnode1 is '$m1'"
| + | |
− | echo "Mailnode2 is '$m2'"
| + | |
− | echo "Mailaddress is '$e'"
| + | |
− |
| + | |
− | omaddent -e "S=+BB/CN=$n/OU1=$m1/OU2=$m2/DDT1=BB/DDV1=$n/IA=$e"
| + | |
− | exit 0
| + | |