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

Различия

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

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

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
wiki:руководство_по_ubuntu_server:почтовые_сервисы:exim4 [2012/08/29 19:25]
[Установка]
wiki:руководство_по_ubuntu_server:почтовые_сервисы:exim4 [2012/08/29 20:57] (текущий)
[Ссылки]
Строка 13: Строка 13:
  
 Для установки exim4 выполните следующую команду:​ Для установки exim4 выполните следующую команду:​
-<​code>​sudo apt-get install exim4<​code>​+<​code>​sudo apt-get install exim4</code>
  
 ====Настройка==== ====Настройка====
  
-To configure ​Exim4, run the following command:+Для настройки ​Exim4 выполните следующую команду: 
 +<​code>​sudo dpkg-reconfigure exim4-config</​code>​ 
 +Появится пользовательский интерфейс. Этот интерфейс позволит вам настроить множество параметров. Например,​ в Exim4 файлы настроек разделены между различными файлами. Если вы решите объединить в один файл, вы можете настроить это в данном пользовательском интерфейсе.
  
-sudo dpkg-reconfigure ​exim4-config+Все параметры,​ которые вы настроите в пользовательском интерфейсе будут сохранены в файле /​etc/​exim4/​update-exim4.conf. Если вы захотите что-то перенастроить,​ или перезапустите мастера настройки или вручную поправьте данный файл любым редактором. После настройки вам потребуется выполнить следующую команду для создания главного файла настроек:​ 
 +<​code>​sudo update-exim4.conf</​code>​
  
-The user interface will be displayedThe user interface lets you configure many parametersFor example, In Exim4 the configuration files are split among multiple filesIf you wish to have them in one file you can configure accordingly in this user interface.+Главный файл настроек будет создан и сохранен в /​var/​lib/​exim4/​config.autogenerated. 
 +<note important>​В любом случае вам не следует редактировать главный файл настроек /​var/​lib/​exim4/​config.autogenerated вручнуюОн обновляется автоматически каждый раз по команде update-exim4.conf</​note>​
  
-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
- +<​code>​sudo /​etc/​init.d/​exim4 start</​code>​
-sudo update-exim4.conf +
- +
-The master configuration file, is generated and it is stored in /​var/​lib/​exim4/​config.autogenerated. +
- +
-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==== ====Аутентификация SMTP====
  
-This section covers configuring ​Exim4 to use SMTP-AUTH ​with TLS and SASL. +Эта секция раскрывает как настроить ​Exim4 для использования ​SMTP-AUTH ​с TLS и 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 authenticationEdit /​etc/​exim4/​conf.d/​auth/30_exim4-config_examples and uncomment the plain_saslauthd_server and login_saslauthd_server sections:+Первым шагом будет создание сертификата для использования TLS. Введите следующее в терминале:​ 
 +<​code>​sudo /​usr/​share/​doc/​exim4-base/​examples/​exim-gencert</​code>​ 
 +Теперь ​Exim4 нуждается в настройке TLSОтредактируйте ​/​etc/​exim4/​conf.d/​main/03_exim4-config_tlsoptions,​ добавив следующее: 
 +<​code>​MAIN_TLS_ENABLE = yes</​code>​
  
 +Далее вам потребуется настроить 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
Строка 69: Строка 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>​
  
 ====Настройка SASL==== ====Настройка SASL====
  
-This section provides details on configuring the saslauthd ​to provide authentication for Exim4.+В этой секции раскрываются детали по настройке ​saslauthd ​чтобы обеспечить аутентификацию для ​Exim4.
  
-The first step is to install the sasl2-bin ​packageFrom a terminal prompt enter the following+Для начала установим пакет **sasl2-bin**В терминале введите следующее
- +<​code>​sudo apt-get install sasl2-bin</​code>​ 
-sudo apt-get install sasl2-bin +Чтобы настроить **saslauthd** отредактируйте файл настройки ​/​etc/​default/​saslauthd ​и замените 
- +<​code>​START=no</​code>​ на  
-To configure ​saslauthd ​edit the /​etc/​default/​saslauthd ​configuration file and set START=no ​to: +<​code>​START=yes</​code>​ 
- +Далее пользователя **Debian-exim** требуется включить в группу **sasl** чтобы ​Exim4 мог использовать сервис **saslauthd**
-START=yes +<​code>​sudo adduser Debian-exim sasl</​code>​ 
- +Теперь запустите сервис ​saslauthd:​ 
-Next the Debian-exim ​user needs to be part of the sasl group in order for Exim4 to use the saslauthd ​service+<​code>​sudo /​etc/​init.d/​saslauthd start</​code>​ 
- +Теперь ​Exim4 настроен на SMTP-AUTH ​с использованием ​TLS и SASL аутентификации.
-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.+
  
 ====Ссылки==== ====Ссылки====
  
-    See exim.org for more information. 
- 
-    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]].
  
 ---- ----