Различия
Здесь показаны различия между двумя версиями данной страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
wiki:руководство_по_ubuntu_server:почтовые_сервисы:exim4 [2012/08/29 19:46] [Настройка] |
wiki:руководство_по_ubuntu_server:почтовые_сервисы:exim4 [2012/08/29 20:57] (текущий) [Ссылки] |
||
|---|---|---|---|
| Строка 32: | Строка 32: | ||
| ====Аутентификация 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: | + | Первым шагом будет создание сертификата для использования TLS. Введите следующее в терминале: |
| - | + | <code>sudo /usr/share/doc/exim4-base/examples/exim-gencert</code> | |
| - | sudo /usr/share/doc/exim4-base/examples/exim-gencert | + | Теперь Exim4 нуждается в настройке TLS. Отредактируйте /etc/exim4/conf.d/main/03_exim4-config_tlsoptions, добавив следующее: |
| - | + | <code>MAIN_TLS_ENABLE = yes</code> | |
| - | 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 | ||
| Строка 64: | Строка 61: | ||
| server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}} | server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}} | ||
| .endif | .endif | ||
| - | + | </code> | |
| - | Additionally, in order for outside mail client to be able to connect to new exim server, new 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 package. From 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]]. | ||
| ---- | ---- | ||