How to Wiki Database (change log)
http://[222:a8e4:50cd:55c:788e:b0a5:4e2f:a92c]
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.7 KiB
96 lines
2.7 KiB
====== Домашний почтовый сервер ====== |
|
Пример конфигурации почтового сервера для одного пользователя с доступом из Yggdrasil на базе [[wpru>Dovecot|Dovecot]] и [[wpru>Postfix|Postfix]]. |
|
|
|
===== Создаем пользователя почты ===== |
|
<code> |
|
useradd -m -d /home/franco -s /bin/false franco |
|
echo "root: franco@corelli.ygg" >> /etc/aliases |
|
</code> |
|
|
|
=====Настройка Dovecot===== |
|
Конфигурационный файл: ''/etc/dovecot/dovecot.conf'' |
|
<code> |
|
mail_location = maildir:~/Maildir:LAYOUT=fs |
|
protocols = imap |
|
disable_plaintext_auth = no |
|
|
|
userdb { |
|
driver = passwd |
|
} |
|
auth_username_format = %n |
|
passdb { |
|
driver = pam |
|
} |
|
|
|
service auth { |
|
unix_listener /var/spool/postfix/private/auth { |
|
mode = 0666 |
|
user = postfix |
|
group = postfix |
|
} |
|
} |
|
|
|
ssl = no |
|
|
|
namespace inbox { |
|
inbox = yes |
|
mailbox Drafts { |
|
special_use = \Drafts |
|
auto = subscribe |
|
} |
|
mailbox Junk { |
|
special_use = \Junk |
|
auto = subscribe |
|
} |
|
mailbox Trash { |
|
special_use = \Trash |
|
auto = subscribe |
|
} |
|
mailbox Sent { |
|
special_use = \Sent |
|
auto = subscribe |
|
} |
|
} |
|
</code> |
|
|
|
=====Настройка Postfix===== |
|
Конфигурационный файл: ''/etc/postfix/main.cf'' |
|
|
|
<code> |
|
smtpd_banner = $myhostname ESMTP MS_Exchange/OpenVMS |
|
biff = no |
|
appenddot_mydomain = no |
|
readme_directory = no |
|
compatibility_level = 2 |
|
smtpd_use_tls = no |
|
|
|
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination |
|
myhostname = corelli.ygg |
|
mydomain = corelli.ygg |
|
alias_maps = hash:/etc/aliases |
|
alias_database = hash:/etc/aliases |
|
myorigin = $mydomain |
|
mydestination = corelli.ygg, localhost.localdomain, localhost |
|
relayhost = |
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
|
mailbox_size_limit = 0 |
|
recipient_delimiter = + |
|
inet_interfaces = all |
|
inet_protocols = all |
|
|
|
smtpd_sasl_auth_enable = yes |
|
smtpd_sasl_type = dovecot |
|
smtpd_sasl_path = private/auth |
|
|
|
home_mailbox = Maildir/ |
|
mailbox_command = |
|
</code> |
|
|
|
Почтовый клиент [[wpru>Mozilla_Thunderbird|Thunderbird]] подключается к нему автоматически (хоть красочно ругается на отсутствие шифрования).\\ |
|
Дельта Чат<sup>[[#Ссылки|[см. ссылки]]]</sup> требует задания параметров подключения явно, но подключается. |
|
|
|
====== Ссылки ====== |
|
DOVECOT. The Secure IMAP server (EN): https://www.dovecot.org/ \\ |
|
The Postfix Home Page (EN): http://www.postfix.org/ \\ |
|
Мессенджер Delta Chat: https://delta.chat/ru/ \\ |
|
Thunderbird: https://www.thunderbird.net/ru/
|
|
|