特殊:Badtitle/NS100:Courier
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Courier }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/af | • {{#if: php5|Afrikaans| [[::Courier/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ar | • {{#if: php5|العربية| [[::Courier/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/az | • {{#if: php5|azərbaycanca| [[::Courier/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::Courier/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/bg | • {{#if: php5|български| [[::Courier/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/br | • {{#if: php5|brezhoneg| [[::Courier/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ca | • {{#if: php5|català| [[::Courier/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/cs | • {{#if: php5|čeština| [[::Courier/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/de | • {{#if: php5|Deutsch| [[::Courier/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/el | • {{#if: php5|Ελληνικά| [[::Courier/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/es | • {{#if: php5|español| [[::Courier/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/fa | • {{#if: php5|فارسی| [[::Courier/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/fi | • {{#if: php5|suomi| [[::Courier/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/fr | • {{#if: php5|français| [[::Courier/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/gu | • {{#if: php5|ગુજરાતી| [[::Courier/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/he | • {{#if: php5|עברית| [[::Courier/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/hu | • {{#if: php5|magyar| [[::Courier/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/id | • {{#if: php5|Bahasa Indonesia| [[::Courier/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/it | • {{#if: php5|italiano| [[::Courier/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ja | • {{#if: php5|日本語| [[::Courier/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ko | • {{#if: php5|한국어| [[::Courier/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ksh | • {{#if: php5|Ripoarisch| [[::Courier/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/mr | • {{#if: php5|मराठी| [[::Courier/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ms | • {{#if: php5|Bahasa Melayu| [[::Courier/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/nl | • {{#if: php5|Nederlands| [[::Courier/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/no | • {{#if: php5|norsk| [[::Courier/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/oc | • {{#if: php5|occitan| [[::Courier/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/pl | • {{#if: php5|polski| [[::Courier/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/pt | • {{#if: php5|português| [[::Courier/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ro | • {{#if: php5|română| [[::Courier/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/ru | • {{#if: php5|русский| [[::Courier/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/si | • {{#if: php5|සිංහල| [[::Courier/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/sq | • {{#if: php5|shqip| [[::Courier/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/sr | • {{#if: php5|српски / srpski| [[::Courier/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/sv | • {{#if: php5|svenska| [[::Courier/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/th | • {{#if: php5|ไทย| [[::Courier/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/tr | • {{#if: php5|Türkçe| [[::Courier/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/vi | • {{#if: php5|Tiếng Việt| [[::Courier/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/yue | • {{#if: php5|粵語| [[::Courier/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/zh | • {{#if: php5|中文| [[::Courier/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/zh-hans | • {{#if: php5|中文(简体)| [[::Courier/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}Courier}}/zh-hant | • {{#if: php5|中文(繁體)| [[::Courier/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:Courier|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Courier/zh | | {{#ifexist: Courier/zh | | {{#ifeq: {{#titleparts:Courier|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Courier|1|-1|}} | zh | | }}
Introduction
Courier is one of the most known mail delivery agent. It only supports Maildir mailboxes and can be integrated with external databases (LDAP, MySQL, etc.).
You will find a complete description on how to setup a virtual Postfix + Courier mail system on UbuntuHelp:PostfixCompleteVirtualMailSystemHowto. A simpler setup is described at UbuntuHelp:PostfixAmavisNewClamAVSpamAssassin. To setup email in a generic way, look at the Ubuntu manual, for example at the the ubuntu servierguide/email (6.06).
In this howto, a basic Courier installation will be described: it will deliver mail to local existing users, mailbox will be situated in home directory. User accounts can be on an NFS file system (this is on of the advantage of Courier).
Installation
For installing courier, install the following packages: courier-imap courier-imap-ssl
(see InstallingSoftware)
If you want pop3 support, also install courier-pop
and courier-pop-ssl
packages.
Configuration
The configuration options are all located in /etc/courier/imapd
for imap daemon and in /etc/courier/imapd-ssl
for imap-ssl daemon. For a first installation, the default options perfectly match most of the needs. So no modification will be done.
Authentication
Courier authenticates using PAM out of the box.
Maildir setup
Basically, Maildir folders are located in the user home directory. That's a good idea to create Maildir for future users:
maildirmake /etc/skel/Maildir maildirmake /etc/skel/Maildir/.Drafts maildirmake /etc/skel/Maildir/.Sent maildirmake /etc/skel/Maildir/.Trash maildirmake /etc/skel/Maildir/.Templates
Then, for an existing user:
cp -r /etc/skel/Maildir /home/myuser/ chown -R myuser:usergroup /home/myuser/Maildir chmod -R 700 /home/myuser/Maildir
Test
You can easily test that your recent installation is working:
telnet localhost imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information. imap login user password imap OK LOGIN Ok.
Where user and password are local accounts with a Maildir directory. If it does not work you will get an error message, and do not forget to check /var/log/mail.log
Administration & Maintainance
Administering a Courier IMAP/POP mail server does not really require some specific administration tasks. For each user connecting correspond a process of the system (in fact a process per Maildir directory open). For backup, only backing up user accounts (as usual ;-)) is necessary.
CategoryDocumentation