Сервер Dovecot Сравнение версий

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
wiki:руководство_по_ubuntu_server:почтовые_сервисы:dovecot_server [2012/08/30 11:28]
[Сервер Dovecot]
wiki:руководство_по_ubuntu_server:почтовые_сервисы:dovecot_server [2013/01/23 22:21] (текущий)
[Настройка]
Строка 12: Строка 12:
 ====Установка==== ====Установка====
  
-To install ​dovecot, ​run the following command in the command prompt+Для установки **dovecot**выполните следующую команду в терминале
- +<​code>​sudo apt-get install dovecot-imapd dovecot-pop3d</​code>​
-sudo apt-get install dovecot-imapd dovecot-pop3d+
  
 ====Настройка==== ====Настройка====
  
-To configure ​dovecot, you can edit the file /​etc/​dovecot/​dovecot.conf. ​You can choose the protocol you useIt could be pop3, pop3s (pop3 secure), imap and imaps (imap secure). A description of these protocols is beyond the scope of this guideFor further information,​ refer to the Wikipedia ​articles on POP3 and IMAP.+Чтобы настроить **dovecot** вам потребуется отредактировать файл ​/​etc/​dovecot/​dovecot.conf. ​Вы можете выбрать какой протокол использоватьЭто может быть ​pop3, pop3s (безопасный ​pop3), imap или ​imaps (безопасный ​imap). ​Описание этих протоколов находится за пределами рассматриваемых вопросов данного руководстваДля дополнительной информации обратитесь к статьям ​Wikipedia ​по [[http://​en.wikipedia.org/​wiki/​POP3|POP3]] и [[http://​en.wikipedia.org/​wiki/​Internet_Message_Access_Protocol|IMAP]].
  
-IMAPS and POP3S are more secure that the simple ​IMAP and POP3 because they use SSL encryption to connectOnce you have chosen the protocolamend the following line in the file /​etc/​dovecot/​dovecot.conf:​+IMAPS и POP3S более безопасные чем обычные ​IMAP и POP3, поскольку используют ​SSL шифрование для соединенияКак только вы выберете протоколисправьте следующую строку в файле ​/​etc/​dovecot/​dovecot.conf:​ 
 +<​code>​protocols = pop3 pop3s imap imaps</​code>​
  
-protocols = pop3 pop3s imap imaps+Далее выберите формат почтового ящика, который вы собираетесь использовать. **Dovecot** поддерживает форматы **maildir** и **mbox**. Они оба имеют свои преимущества,​ которые обсуждаются на [[http://​wiki.dovecot.org/​MailboxFormat|сайте Dovecot]].
  
-Nextchoose the mailbox you would like to useDovecot supports maildir and mbox formatsThese are the most commonly used mailbox formats. They both have their own benefits and are discussed on the Dovecot web site.+Выбрав тип почтового ящикаизмените в файле <​del>/​etc/​dovecot/​dovecot.conf</​del>​ /​etc/​dovecot/​conf.d/10-mail.conf следующую строку:​ 
 +<​code>​mail_location = maildir:​~/​Maildir # (для maildir)</​code>​ 
 +или 
 +<​code>​mail_location = mbox:​~/​mail:​INBOX=/​var/​spool/​mail/​%u # (для mbox)</​code>​
  
-Once you have chosen your mailbox typeedit the file /etc/​dovecot/​dovecot.conf and change the following line:+<​note>​Вам будет надо настроить ваш MTA (транспортного агента) для передачи входящих сообщений на данный формат ящикаесли он отличается от того, который вы настроили.<​/note>
  
-mail_location = maildir:​~/​Maildir # (for maildir) +Настроив ​dovecot, ​перезапустите сервис ​dovecot ​чтобы проверить свои установки
-or +<​code>​sudo /​etc/​init.d/​dovecot restart</​code>​
-mail_location = mbox:​~/​mail:​INBOX=/​var/​spool/​mail/​%u # (for mbox) +
- +
-You should configure your Mail Transport Agent (MTA) to transfer the incoming mail to this type of mailbox if it is different from the one you have configured. +
- +
-Once you have configured ​dovecot, ​restart the dovecot ​daemon in order to test your setup+
- +
-sudo /​etc/​init.d/​dovecot restart +
- +
-If you have enabled imap, or pop3, you can also try to log in with the commands telnet localhost pop3 or telnet localhost imap2. If you see something like the following, the installation has been successful:+
  
 +Если вы разрешили imap или pop3, вы можете попробовать подключиться с помощью команд
 +<​code>​telnet localhost pop3</​code>​
 +или
 +<​code>​telnet localhost imap2</​code>​
 +Если вы увидите что-то,​ похожее на следующий код, установка успешно завершена:​
 +<​code>​
 bhuvan@rainbow:​~$ telnet localhost pop3 bhuvan@rainbow:​~$ telnet localhost pop3
 Trying 127.0.0.1... Trying 127.0.0.1...
Строка 45: Строка 45:
 Escape character is '​^]'​. Escape character is '​^]'​.
 +OK Dovecot ready. +OK Dovecot ready.
 +</​code>​
 ====Настройка Dovecot SSL==== ====Настройка Dovecot SSL====
  
-To configure ​dovecot ​to use SSL, you can edit the file /​etc/​dovecot/​dovecot.conf ​and amend following lines+Чтобы настроить ​dovecot ​на использование ​SSL, вы должны отредактировать файл ​/​etc/​dovecot/​dovecot.conf ​и исправить следующие строки
 +<​code>​
 ssl_cert_file = /​etc/​ssl/​certs/​ssl-cert-snakeoil.pem ssl_cert_file = /​etc/​ssl/​certs/​ssl-cert-snakeoil.pem
 ssl_key_file = /​etc/​ssl/​private/​ssl-cert-snakeoil.key ssl_key_file = /​etc/​ssl/​private/​ssl-cert-snakeoil.key
 ssl_disable = no ssl_disable = no
 disable_plaintext_auth = no disable_plaintext_auth = no
- +</​code>​ 
-You can get the SSL certificate from a Certificate Issuing Authority or you can create self signed SSL certificateThe latter is a good option for email, ​because ​SMTP clients rarely complain about "​self-signed ​certificates"Please refer to Certificates for details about how to create self signed SSL certificate. Once you create the certificateyou will have a key file and a certificate filePlease copy them to the location pointed in the /​etc/​dovecot/​dovecot.conf ​configuration file.+Вы можете получить ​SSL сертификат в Центре Сертификации или создать самоподписанныйВторой вариант является хорошим выбором для почты ​email, ​поскольку ​SMTP клиенты редко жалуются на самоподписанные сертификаты. Посмотрите в разделе [[wiki:​руководство_по_ubuntu_server:​безопасность:​certificates|Сертификаты]] как создавать самоподписанный сертификатКогда вы создадите сертификату вас будет файл ключа и файл сертификатаСкопируйте их в каталог,​ указанный в файле настройки ​/​etc/​dovecot/​dovecot.conf.
  
 ====Настройка защиты (Firewall) для почтового сервера==== ====Настройка защиты (Firewall) для почтового сервера====
  
-To access your mail server from another computer, you must configure your firewall ​to allow connections to the server on the necessary ports.+Для доступа к вашему очтовому серверу с другого компьютера вам потребуется настроить вашу защиту (firewall) на разрешение доступа к серверу по требуемым портам:​
  
-    ​IMAP - 143 +  -- IMAP - 143 
- +  ​-- ​IMAPS - 993 
-    ​IMAPS - 993 +  ​-- ​POP3 - 110 
- +  ​-- ​POP3S - 995
-    ​POP3 - 110 +
- +
-    ​POP3S - 995+
  
 ====Ссылки==== ====Ссылки====
  
-    See the Dovecot ​website for more information+  -- Смотрите [[http://​www.dovecot.org/​|сайт ​Dovecot]] для дополнительной информации
- +  -- Также страница [[https://​help.ubuntu.com/​community/​Dovecot|Dovecot Ubuntu Wiki]] содержит много подробностей.
-    Also, the Dovecot Ubuntu Wiki page has more details. +
  
 ---- ----