URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 90330
[ Назад ]

Исходное сообщение
"Postfix+doecot проблема с получение отправкой писем "

Отправлено drac753 , 18-Ноя-10 10:37 
Задача внутри сетевой почтовый сервер (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)


Подскажите где накосячил?


Содержание

Сообщения в этом обсуждении
"Postfix+doecot проблема с получение отправкой писем "
Отправлено Гектор Зажигайло , 18-Ноя-10 15:56 
меня немного смущает missing +w perm

"Postfix+doecot проблема с получение отправкой писем "
Отправлено drac753 , 19-Ноя-10 11:03 
разобрался проблема была в отсутствии доступа исправил так mail_access_goups = mail но почта всеравно не уходит! в логе

Nov 19 10:47:38 virdebian dovecot: auth(default): new auth connection: pid=2235
Nov 19 10:47:38 virdebian dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=pop3#011secured#011lip=192.168.3.25#011rip=192.168.3.53#011lport=995#011rport=1242#011resp=AHRlc3QAMTIz
Nov 19 10:47:38 virdebian dovecot: auth-worker(default): pam(test,192.168.3.53): lookup service=dovecot
Nov 19 10:47:39 virdebian dovecot: auth-worker(default): pam(test,192.168.3.53): #1/1 style=1 msg=Password:
Nov 19 10:47:39 virdebian dovecot: auth(default): client out: OK#0111#011user=test
Nov 19 10:47:39 virdebian dovecot: auth(default): master in: REQUEST#0111#0111771#0111
Nov 19 10:47:39 virdebian dovecot: auth(default): passwd(test,192.168.3.53): lookup
Nov 19 10:47:39 virdebian dovecot: auth(default): master out: USER#0111#011test#011system_groups_user=test#011uid=1000#011gid=1000#011home=/home/test
Nov 19 10:47:39 virdebian dovecot: pop3-login: Login: user=<test>, method=PLAIN, rip=192.168.3.53, lip=192.168.3.25, TLS
Nov 19 10:47:39 virdebian dovecot: POP3(test): Effective uid=1000, gid=1000, home=/home/test
Nov 19 10:47:39 virdebian dovecot: POP3(test): mbox: data=~/mail:INBOX=/var/mail/test
Nov 19 10:47:39 virdebian dovecot: POP3(test): fs: root=/home/test/mail, index=, control=, inbox=/var/mail/test
Nov 19 10:47:39 virdebian dovecot: POP3(test): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0


outlok ругается так


Произошла неопознанная ошибка. Учетная запись: '192.168.3.25', Сервер: '192.168.3.25', Протокол: SMTP, Ответ сервера: '421 Cannot connect to SMTP server 192.168.3.25 (192.168.3.25:25), connect error 10060', Порт: 25, Защита (SSL): Да, Ошибка сервера: 421, Код ошибки: 0x800CCC67