Пример конфигурации почтового сервера для одного пользователя с доступом из Yggdrasil на базе Dovecot и Postfix.
useradd -m -d /home/franco -s /bin/false franco echo "root: franco@corelli.ygg" >> /etc/aliases
Конфигурационный файл: /etc/dovecot/dovecot.conf
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
}
}
Конфигурационный файл: /etc/postfix/main.cf
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 =
Почтовый клиент Thunderbird подключается к нему автоматически (хоть красочно ругается на отсутствие шифрования).
Дельта Чат[см. ссылки] требует задания параметров подключения явно, но подключается.
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/
