Задача внутри сетевой почтовый сервер (Postfix+dovecot)
postfix
main.cf# 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 (Debian/GNU)
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: Название вашего компьютера + его доменная часть
myhostname = virdebian.kagaz.local
mydomain = virdebian.kagaz.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#параметр, значение которого добавляется к адресу от
#правителя или получателя, если он указан не полностью
myorigin = virdebian.kagaz.local
# Список доменов, через которые будет осуществляться локальная доставка
mydestination = virdebian.local, virdebian.kagaz.local, localhost.kagaz.local, localhost
relayhost =
mynetworks = 192.168.3.0/24,127.0.0.0/8
#mailbox_command = procmail -a "$EXTENSION"
#mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
########################################
#Если не вставит этот кусок не стартует dovecot
# Формат почтового ящика, возможен вариант Mailbox
home_mailbox = mbox
# Каталоги для хранения почты и очереди Postfix
mail_spool_directory = /var/mail
queue_directory = /var/spool/postfix
######################################
# Настройки SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = virdebian.kagaz.local
# Файл-сокет для обмена информацией с Dovecot;
# путь указывается относительно queue_directory
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
# Используем тип dovecot
smtpd_sasl_type = dovecot
dovecot
dovecot.conf
base_dir = /var/run/dovecot
protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
syslog_facility = mail
ssl_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
ssl_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
login_user = dovecot
mail_location = mbox:/var/mail
mail_privileged_group = mail
mail_full_filesystem_access = no
first_valid_uid = 500
protocol imap {
}
protocol pop3 {
pop3_uidl_format = XuXv
}
protocol managesieve {
}
auth_debug = yes
auth_debug_passwords = yes
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
user = root
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
passdb passwd {
}
userdb passwd {
}
}
dict {
}
plugin {
}
Логи
mail.err
Nov 18 09:53:17 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:53:28 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:53:28 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:53:31 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:53:31 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:53:35 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:53:35 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:53:37 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:53:37 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:57:03 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:57:03 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:59:13 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:59:13 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:59:18 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:59:18 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Nov 18 09:59:34 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:59:34 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
mail.info
Nov 18 10:17:09 virdebian postfix/pickup[31431]: 80ED15CD25: uid=0 from=<root>
Nov 18 10:17:09 virdebian postfix/cleanup[31822]: 80ED15CD25: message-id=<20101118071709.80ED15CD25@virdebian.kagaz.local>
Nov 18 10:17:09 virdebian postfix/qmgr[31432]: 80ED15CD25: from=<root@virdebian.kagaz.local>, size=706, nrcpt=1 (queue active)
Nov 18 10:17:09 virdebian postfix/local[31824]: 80ED15CD25: to=<test@virdebian.kagaz.local>, orig_to=<root>, relay=local, delay=0.2, delays=0.14/0.04/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 18 10:17:09 virdebian postfix/qmgr[31432]: 80ED15CD25: removed
mail.log
ov 18 10:17:09 virdebian postfix/pickup[31431]: 80ED15CD25: uid=0 from=<root>
Nov 18 10:17:09 virdebian postfix/cleanup[31822]: 80ED15CD25: message-id=<20101118071709.80ED15CD25@virdebian.kagaz.local>
Nov 18 10:17:09 virdebian postfix/qmgr[31432]: 80ED15CD25: from=<root@virdebian.kagaz.local>, size=706, nrcpt=1 (queue active)
Nov 18 10:17:09 virdebian postfix/local[31824]: 80ED15CD25: to=<test@virdebian.kagaz.local>, orig_to=<root>, relay=local, delay=0.2, delays=0.14/0.04/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 18 10:17:09 virdebian postfix/qmgr[31432]: 80ED15CD25: removed
mail.warn
Nov 18 09:59:34 virdebian dovecot: POP3(test): mkdir(/var/mail/.imap) failed: Permission denied
Nov 18 09:59:34 virdebian dovecot: POP3(test): file_dotlock_create(/var/mail/inbox) failed: Permission denied (euid=1000(test) egid=1000(test) missing +w perm: /var/mail) (under root dir /var/mail -> no privileged locking)
Подскажите где накосячил?