特殊:Badtitle/NS100:Courier:修订间差异
小 New page: {{From|https://help.ubuntu.com/community/Courier}} {{Languages|php5}} == Introduction == Courier is one of the most known mail delivery agent. It only supports Maildir mailboxes and ca... |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Courier}} | {{From|https://help.ubuntu.com/community/Courier}} | ||
{{Languages| | {{Languages|UbuntuHelp:Courier}} | ||
== Introduction == | == Introduction == | ||
第64行: | 第64行: | ||
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. | 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 | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年5月14日 (一) 11:49的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Courier }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/af | • {{#if: UbuntuHelp:Courier|Afrikaans| [[::Courier/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ar | • {{#if: UbuntuHelp:Courier|العربية| [[::Courier/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/az | • {{#if: UbuntuHelp:Courier|azərbaycanca| [[::Courier/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/bcc | • {{#if: UbuntuHelp:Courier|جهلسری بلوچی| [[::Courier/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/bg | • {{#if: UbuntuHelp:Courier|български| [[::Courier/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/br | • {{#if: UbuntuHelp:Courier|brezhoneg| [[::Courier/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ca | • {{#if: UbuntuHelp:Courier|català| [[::Courier/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/cs | • {{#if: UbuntuHelp:Courier|čeština| [[::Courier/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/de | • {{#if: UbuntuHelp:Courier|Deutsch| [[::Courier/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/el | • {{#if: UbuntuHelp:Courier|Ελληνικά| [[::Courier/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/es | • {{#if: UbuntuHelp:Courier|español| [[::Courier/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/fa | • {{#if: UbuntuHelp:Courier|فارسی| [[::Courier/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/fi | • {{#if: UbuntuHelp:Courier|suomi| [[::Courier/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/fr | • {{#if: UbuntuHelp:Courier|français| [[::Courier/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/gu | • {{#if: UbuntuHelp:Courier|ગુજરાતી| [[::Courier/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/he | • {{#if: UbuntuHelp:Courier|עברית| [[::Courier/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/hu | • {{#if: UbuntuHelp:Courier|magyar| [[::Courier/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/id | • {{#if: UbuntuHelp:Courier|Bahasa Indonesia| [[::Courier/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/it | • {{#if: UbuntuHelp:Courier|italiano| [[::Courier/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ja | • {{#if: UbuntuHelp:Courier|日本語| [[::Courier/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ko | • {{#if: UbuntuHelp:Courier|한국어| [[::Courier/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ksh | • {{#if: UbuntuHelp:Courier|Ripoarisch| [[::Courier/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/mr | • {{#if: UbuntuHelp:Courier|मराठी| [[::Courier/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ms | • {{#if: UbuntuHelp:Courier|Bahasa Melayu| [[::Courier/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/nl | • {{#if: UbuntuHelp:Courier|Nederlands| [[::Courier/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/no | • {{#if: UbuntuHelp:Courier|norsk| [[::Courier/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/oc | • {{#if: UbuntuHelp:Courier|occitan| [[::Courier/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/pl | • {{#if: UbuntuHelp:Courier|polski| [[::Courier/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/pt | • {{#if: UbuntuHelp:Courier|português| [[::Courier/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ro | • {{#if: UbuntuHelp:Courier|română| [[::Courier/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/ru | • {{#if: UbuntuHelp:Courier|русский| [[::Courier/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/si | • {{#if: UbuntuHelp:Courier|සිංහල| [[::Courier/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/sq | • {{#if: UbuntuHelp:Courier|shqip| [[::Courier/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/sr | • {{#if: UbuntuHelp:Courier|српски / srpski| [[::Courier/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/sv | • {{#if: UbuntuHelp:Courier|svenska| [[::Courier/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/th | • {{#if: UbuntuHelp:Courier|ไทย| [[::Courier/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/tr | • {{#if: UbuntuHelp:Courier|Türkçe| [[::Courier/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/vi | • {{#if: UbuntuHelp:Courier|Tiếng Việt| [[::Courier/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/yue | • {{#if: UbuntuHelp:Courier|粵語| [[::Courier/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/zh | • {{#if: UbuntuHelp:Courier|中文| [[::Courier/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/zh-hans | • {{#if: UbuntuHelp:Courier|中文(简体)| [[::Courier/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Courier | UbuntuHelp:Courier | {{#if: | :}}Courier}}/zh-hant | • {{#if: UbuntuHelp:Courier|中文(繁體)| [[::Courier/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Courier|: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.