ubuntuserver810:postfix_vs_dovecot
This is an old revision of the document!
Устанавливаем postfix
apt-get update apt-get install postfix postfix-ldap
Запустить конфигуратор дебиана
dpkg-reconfigure postfix
При установке пакетов отвечаем на вопросы конфигуратора
- Общий тип почтовой настройки - Интернет сайт
- Системной почтовое имя - daemon.drivesource.ru
Стартовый конфиг
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = daemon.drivesource.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = daemon.drivesource.ru, drivesource.ru, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
message_size_limit = 0
virtual_mailbox_limit = 0
recipient_delimiter =
inet_interfaces = all
inet_protocols = all
Добавим учетные записи для работы с виртуальными почтовыми ящиками
groupadd -r -g 500 vmail useradd -r -g vmail -u 500 vmail mkdir /var/vmail chown vmail.vmail /var/vmail
Тестируем маппинг
postmap -q svschwartz ldap:/etc/postfix/ldap-aliases.cf
ubuntuserver810/postfix_vs_dovecot.1228083444.txt.gz · Last modified: (external edit)
