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

Различия

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

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

Следующая версия
Предыдущая версия
wiki:руководство_по_ubuntu_server:почтовые_сервисы:exim4 [2012/08/29 19:16]
создано
wiki:руководство_по_ubuntu_server:почтовые_сервисы:exim4 [2012/08/29 20:57] (текущий)
[Ссылки]
Строка 6: Строка 6:
 [[wiki:​руководство_по_ubuntu_server:​почтовые_сервисы:​dovecot_server|далее->​]]</​style>​ [[wiki:​руководство_по_ubuntu_server:​почтовые_сервисы:​dovecot_server|далее->​]]</​style>​
  
-Exim4+=====Exim4=====
  
-Exim4 is another Message Transfer Agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. Exim can be installed in place of sendmail, ​although the configuration of exim is quite different to that of sendmail.+Exim4 это другой агент передачи сообщений ​(MTA), разработанный в университете Кембриджа для использования на UNIX системах,​ подключенных к интернету. Exim может быть установлен вместо ​sendmail, ​хотя настройки ​exim сильно отличаются от настроек ​sendmail.
  
-    Installation +====Установка====
-    Configuration +
-    SMTP Authentication +
-    Configuring SASL +
-    References+
  
-Installation+Для установки exim4 выполните следующую команду:​ 
 +<​code>​sudo apt-get install exim4</​code>​
  
-To install exim4, run the following command:+====Настройка====
  
-sudo apt-get install ​exim4+Для настройки Exim4 выполните следующую команду:​ 
 +<​code>​sudo dpkg-reconfigure ​exim4-config</​code>​ 
 +Появится пользовательский интерфейс. Этот интерфейс позволит вам настроить множество параметров. Например,​ в Exim4 файлы настроек разделены между различными файлами. Если вы решите объединить в один файл, вы можете настроить это в данном пользовательском интерфейсе.
  
-Configuration+Все параметры,​ которые вы настроите в пользовательском интерфейсе будут сохранены в файле /​etc/​exim4/​update-exim4.conf. Если вы захотите что-то перенастроить,​ или перезапустите мастера настройки или вручную поправьте данный файл любым редактором. После настройки вам потребуется выполнить следующую команду для создания главного файла настроек:​ 
 +<​code>​sudo update-exim4.conf</​code>​
  
-To configure Exim4, run the following command:+Главный файл настроек будет создан и сохранен в /​var/​lib/​exim4/​config.autogenerated. 
 +<note important>​В любом случае вам не следует редактировать главный файл настроек /​var/​lib/​exim4/​config.autogenerated вручную. Он обновляется автоматически каждый раз по команде update-exim4.conf</​note>​
  
-sudo dpkg-reconfigure ​exim4-config+Вы можете воспользоваться следующей командой для запуска сервиса Exim4: 
 +<​code>​sudo /​etc/​init.d/​exim4 start</​code>​
  
-The user interface will be displayed. The user interface lets you configure many parameters. For example, In Exim4 the configuration files are split among multiple files. If you wish to have them in one file you can configure accordingly in this user interface.+====Аутентификация SMTP====
  
-All the parameters you configure in the user interface are stored in /​etc/​exim4/​update-exim4.conf file. If you wish to re-configure,​ either you re-run the configuration wizard or manually edit this file using your favorite editor. Once you configure, you can run the following command to generate the master configuration file:+Эта секция раскрывает как настроить Exim4 для использования SMTP-AUTH с TLS и SASL.
  
-sudo update-exim4.conf +Первым шагом будет создание сертификата для использования ​TLS. Введите следующее в терминале
- +<​code>​sudo /​usr/​share/​doc/​exim4-base/​examples/​exim-gencert</​code>​ 
-The master configuration file, is generated and it is stored in /​var/​lib/​exim4/​config.autogenerated. +Теперь ​Exim4 нуждается в настройке ​TLS. Отредактируйте ​/​etc/​exim4/​conf.d/​main/​03_exim4-config_tlsoptions, добавив следующее
- +<​code>​MAIN_TLS_ENABLE = yes</code>
-At any time, you should not edit the master configuration file, /​var/​lib/​exim4/​config.autogenerated manually. It is updated automatically every time you run update-exim4.conf +
- +
-You can run the following command to start Exim4 daemon. +
- +
-sudo /​etc/​init.d/​exim4 start +
- +
-SMTP Authentication +
- +
-This section covers configuring Exim4 to use SMTP-AUTH with TLS and SASL. +
- +
-The first step is to create a certificate for use with TLS. Enter the following into a terminal prompt+
- +
-sudo /​usr/​share/​doc/​exim4-base/​examples/​exim-gencert +
- +
-Now Exim4 needs to be configured for TLS by editing ​/​etc/​exim4/​conf.d/​main/​03_exim4-config_tlsoptions ​add the following+
- +
-MAIN_TLS_ENABLE = yes +
- +
-Next you need to configure Exim4 to use the saslauthd for authentication. Edit /etc/​exim4/​conf.d/​auth/​30_exim4-config_examples and uncomment the plain_saslauthd_server and login_saslauthd_server sections:+
  
 +Далее вам потребуется настроить Exim4 на использование **saslauthd** для аутентификации. Вызовите на редактирование /​etc/​exim4/​conf.d/​auth/​30_exim4-config_examples и раскомментируйте секции **plain_saslauthd_server** и **login_saslauthd_server**:​
 +<​code>​
  ​plain_saslauthd_server:​  ​plain_saslauthd_server:​
    ​driver = plaintext    ​driver = plaintext
Строка 76: Строка 61:
    ​server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}    ​server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
    ​.endif    ​.endif
- +</​code>​ 
-Additionallyin order for outside mail client to be able to connect to new exim servernew user needs to be added into exim by using the following commands. +Дополнительночтобы внешний почтовый клиент имел возможность соединиться с вашим новым ​exim серверомтребуется добавить нового пользователя в exim, используя следующие команды:​ 
- +<​code>​sudo /​usr/​share/​doc/​exim4/​examples/​exim-adduser</​code>​ 
-sudo /​usr/​share/​doc/​exim4/​examples/​exim-adduser +Новый файл паролей должен быть защищен от пользователей с помощью следующих команд:​ 
- +<​code>​
-Users should protect the new exim password files with the following commands. +
 sudo chown root:​Debian-exim /​etc/​exim4/​passwd sudo chown root:​Debian-exim /​etc/​exim4/​passwd
 sudo chmod 640 /​etc/​exim4/​passwd sudo chmod 640 /​etc/​exim4/​passwd
- +</​code>​ 
-Finally, update the Exim4 configuration and restart the service+В конце обновите настройки ​Exim4 и перезапустите сервис
 +<​code>​
 sudo update-exim4.conf sudo update-exim4.conf
 sudo /​etc/​init.d/​exim4 restart sudo /​etc/​init.d/​exim4 restart
 +</​code>​
  
-Configuring ​SASL +====Настройка ​SASL====
- +
-This section provides details on configuring the saslauthd to provide authentication for Exim4. +
- +
-The first step is to install the sasl2-bin package. From a terminal prompt enter the following:​ +
- +
-sudo apt-get install sasl2-bin +
- +
-To configure saslauthd edit the /​etc/​default/​saslauthd configuration file and set START=no to: +
- +
-START=yes +
- +
-Next the Debian-exim user needs to be part of the sasl group in order for Exim4 to use the saslauthd service: +
- +
-sudo adduser Debian-exim sasl +
- +
-Now start the saslauthd service: +
- +
-sudo /​etc/​init.d/​saslauthd start+
  
-Exim4 is now configured with SMTP-AUTH using TLS and SASL authentication. +В этой секции раскрываются детали по настройке saslauthd чтобы обеспечить аутентификацию для ​Exim4.
-References+
  
-    See exim.org for more information.+Для начала установим пакет **sasl2-bin**. В терминале введите следующее:​ 
 +<​code>​sudo apt-get install sasl2-bin</​code>​ 
 +Чтобы настроить **saslauthd** отредактируйте файл настройки /​etc/​default/​saslauthd и замените 
 +<​code>​START=no</​code>​ на  
 +<​code>​START=yes</​code>​ 
 +Далее пользователя **Debian-exim** требуется включить в группу **sasl** чтобы Exim4 мог использовать сервис **saslauthd**:​ 
 +<​code>​sudo adduser Debian-exim sasl</​code>​ 
 +Теперь запустите сервис saslauthd:​ 
 +<​code>​sudo /etc/init.d/saslauthd start</​code>​ 
 +Теперь Exim4 настроен на SMTP-AUTH с использованием TLS и SASL аутентификации.
  
-    There is also an Exim4 Book available.+====Ссылки====
  
-    Another resource is the Exim4 Ubuntu Wiki page. 
  
 +  -- Смотрите [[http://​www.exim.org/​|exim.org]] для дополнительной информации.
 +  -- Также доступна книга [[http://​www.uit.co.uk/​content/​exim-smtp-mail-server|Exim4 Book]].
 +  -- Еще один ресурс - страница [[https://​help.ubuntu.com/​community/​Exim4|Ubuntu Wiki]].
  
 ---- ----