LINUX.ORG.RU
ФорумAdmin

Проблемы с Dovecot


0

1

Связка Postfix+Dovecot+Mysql (виртуальные пользователи хранятся в базе mysql ) 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 = posts.dracon753.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/aliases, proxy:mysql:/etc/postfix/mysql-forwards.cf, mysql:/etc/postfix/mysql-email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000


virtual_transport = dovecot
dovecot.conf
protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir
namespace private {
   separator = 
   prefix = INBOX
   inbox = yes
}
mail_privileged_group = mail
protocol imap {
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
auth default {
  mechanisms = plain login
  passdb pam {
  }
  passdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }
  userdb passwd {
  }
  userdb static {
    args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  }
  user = root
  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = vmail
    }
    client {
      path = /var/spool/postfix/private/auth
      mode = 0660
      user = postfix
      group = postfix
    }
  }
}
dict {
}
plugin {
}
root@posts:/home/test/rab/pravconfig#

В логах

ay 17 07:54:36 posts dovecot: Dovecot v1.2.15 starting up (core dumps disabled)
May 17 07:54:36 posts dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (mail)
May 17 07:54:37 posts dovecot: auth(default): new auth connection: pid=2930
May 17 07:54:37 posts dovecot: auth(default): new auth connection: pid=2931
May 17 07:54:37 posts dovecot: auth(default): new auth connection: pid=2928
May 17 07:54:37 posts dovecot: auth(default): new auth connection: pid=2929
May 17 07:54:37 posts dovecot: auth(default): new auth connection: pid=2933
May 17 07:54:37 posts dovecot: auth(default): new auth connection: pid=2932
May 17 07:55:14 posts dovecot: dovecot: Killed with signal 15 (by pid=2944 uid=0 code=kill)

Из-за чего лезет эта гадость - posts dovecot: dovecot: Killed with signal 15 (by pid=2944 uid=0 code=kill)

★★

Кто-то процессу посылает сигнал 15 (TERM), по которому он и выключается. Разбирайся со своим дистрибутивом, телепаты в отпуске.

blind_oracle ★★★★★ ()

Ну покажи, что за процесс такой с пидом 2944.

post-factum ★★★★★ ()

И да, телепаты подсказывают, что проблемы с правами доступа на некоторые каталоги с почтой.

post-factum ★★★★★ ()
Ответ на: комментарий от alikhantara

спасибо вроде докрутил сейчас вылез другой косяк 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 = posts.dracon753.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/aliases, proxy:mysql:/etc/postfix/mysql-forwards.cf, mysql:/etc/postfix/mysql-email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000


virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
master.cf
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
# Добавил след строки 
dovecot unix - n n - - pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}

drac753 ★★ ()
Ответ на: комментарий от drac753

dovecot.conf

protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n/Maildir
namespace private {
   separator = 
   prefix = INBOX
   inbox = yes
}
mail_privileged_group = mail
protocol imap {
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
protocol lda {
  log_path = /home/vmail/dovecot-deliver.log
  auth_socket_path = /var/run/dovecot/auth-master
  postmaster_address = andrey@dracon753.ru
   mail_plugins = cmusieve
  global_script_path = /home/vmail/globalsieverc
}
auth_debug = yes
auth default {
  mechanisms = plain login
  passdb pam {
  }
  passdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }
  userdb passwd {
  }
  userdb static {
    args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  }
  user = root
  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = vmail
    }
    client {
      path = /var/spool/postfix/private/auth
      mode = 0660
      user = postfix
      group = postfix
    }
  }
}
dict {
}
plugin {
}

dovecot-sql.conf
driver = mysql
connect = host=127.0.0.1 dbname=mail user=mailadmin password=123759
default_pass_scheme = PLAIN-MD5
password_query = SELECT email as user, password FROM view_users WHERE email='%u';

отправляю письмо mail root , письмо не доходит в логах
May 18 09:49:05 posts postfix/pickup[1665]: A6CA314722: uid=0 from=<root>
May 18 09:49:05 posts postfix/cleanup[1675]: A6CA314722: message-id=<20110518054905.A6CA314722@posts.dracon753.ru>
May 18 09:49:05 posts postfix/qmgr[1666]: A6CA314722: from=<root@dracon753.ru>, size=304, nrcpt=1 (queue active)
May 18 09:49:05 posts postfix/pipe[1669]: A6CA314722: to=<andrey@dracon753.ru>, orig_to=<root>, relay=dovecot, delay=0.14, delays=0.11/0.01/0/0.03, dsn=4.3.0, status=deferred (temporary failure)
Чёт не могу понять где затык

drac753 ★★ ()
Ответ на: комментарий от Tok

насколько я понял

May 18 09:49:05 posts postfix/pipe[1669]: A6CA314722: to=<andrey@dracon753.ru>, orig_to=<root>, relay=dovecot, delay=0.14, delays=0.11/0.01/0/0.03, dsn=4.3.0, status=deferred (temporary failure)  
pipe нужно врубить режим подробного логирования

Добавьте одну или более опций "-v" к выбранному определению демона в файле /etc/postfix/master.cf и выполните команду «postfix reload». Это заставит демон syslog регистрировать больше событий. master.cf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
# Добавил след строки 
dovecot unix - n n - - pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
гмм так агде этот pipe ?

drac753 ★★ ()
Ответ на: комментарий от drac753

вродеб разобрался детальный лог

May 18 12:32:45 posts postfix/pickup[2579]: ACA2D14736: uid=0 from=<root>
May 18 12:32:45 posts postfix/cleanup[2591]: ACA2D14736: message-id=<20110518083245.ACA2D14736@posts.dracon753.ru>
May 18 12:32:45 posts postfix/qmgr[2580]: ACA2D14736: from=<root@dracon753.ru>, size=294, nrcpt=1 (queue active)
May 18 12:32:45 posts postfix/pipe[2583]: connection established
May 18 12:32:45 posts postfix/pipe[2583]: master_notify: status 0
May 18 12:32:45 posts postfix/pipe[2583]: deliver_request_initial: send initial status
May 18 12:32:45 posts postfix/pipe[2583]: send attr status = 0
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: flags
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: flags
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 3
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: queue_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: queue_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: active
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: queue_id
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: queue_id
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: ACA2D14736
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: offset
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: offset
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 201
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: size
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: size
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 294
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: nexthop
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: nexthop
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: dracon753.ru
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: encoding
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: encoding
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: sender
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: sender
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: root@dracon753.ru
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: envelope_id
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: envelope_id
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: ret_flags
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: ret_flags
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 0
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: time
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: time
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: LYTTTWKoCgAthNNN/HwLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: log_client_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: log_client_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: log_client_address
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: log_client_address
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: log_client_port
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: log_client_port
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: log_protocol_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: log_protocol_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: log_helo_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: log_helo_name
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: sasl_method
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: sasl_method
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: sasl_username
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: sasl_username
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: sasl_sender
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: sasl_sender
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: rewrite_context
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: rewrite_context
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: local
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: recipient_count
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: recipient_count
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 1
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: (list terminator)
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: original_recipient
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: original_recipient
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: root
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: recipient
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: recipient
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: andrey@dracon753.ru
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: offset
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: offset
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 178
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: dsn_orig_rcpt
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: dsn_orig_rcpt
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: (end)
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: notify_flags
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: notify_flags
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 0
May 18 12:32:45 posts postfix/pipe[2583]: dovecot socket: wanted attribute: (list terminator)
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: (end)
May 18 12:32:45 posts postfix/pipe[2583]: deliver_request_get: file active/ACA2D14736
May 18 12:32:45 posts postfix/pipe[2583]: deliver_message: from <root@dracon753.ru>
May 18 12:32:45 posts postfix/pipe[2583]: dict_eval: const  /usr/lib/dovecot/deliver
May 18 12:32:45 posts postfix/pipe[2583]: dict_eval: const  -d
May 18 12:32:45 posts postfix/pipe[2583]: dict_eval: expand ${recipient} -> andrey@dracon753.ru
May 18 12:32:45 posts postfix/pipe[2583]: connect to subsystem private/defer
May 18 12:32:45 posts postfix/pipe[2583]: send attr nrequest = 0
May 18 12:32:45 posts postfix/pipe[2583]: send attr flags = 0
May 18 12:32:45 posts postfix/pipe[2583]: send attr queue_id = ACA2D14736
May 18 12:32:45 posts postfix/pipe[2583]: send attr original_recipient = root
May 18 12:32:45 posts postfix/pipe[2583]: send attr recipient = andrey@dracon753.ru

drac753 ★★ ()
Ответ на: комментарий от drac753

продолжение

May 18 12:32:45 posts postfix/pipe[2583]: send attr offset = 178
May 18 12:32:45 posts postfix/pipe[2583]: send attr dsn_orig_rcpt = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr notify_flags = 0
May 18 12:32:45 posts postfix/pipe[2583]: send attr status = 4.3.0
May 18 12:32:45 posts postfix/pipe[2583]: send attr diag_type = x-unix
May 18 12:32:45 posts postfix/pipe[2583]: send attr diag_text = temporary failure
May 18 12:32:45 posts postfix/pipe[2583]: send attr mta_type = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr mta_mname = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr action = delayed
May 18 12:32:45 posts postfix/pipe[2583]: send attr reason = temporary failure
May 18 12:32:45 posts postfix/pipe[2583]: private/defer socket: wanted attribute: status
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: status
May 18 12:32:45 posts postfix/pipe[2583]: input attribute value: 0
May 18 12:32:45 posts postfix/pipe[2583]: private/defer socket: wanted attribute: (list terminator)
May 18 12:32:45 posts postfix/pipe[2583]: input attribute name: (end)
May 18 12:32:45 posts postfix/pipe[2583]: ACA2D14736: to=<andrey@dracon753.ru>, orig_to=<root>, relay=dovecot, delay=0.12, delays=0.05/0.03/0/0.04, dsn=4.3.0, status=deferred (temporary failure)
May 18 12:32:45 posts postfix/pipe[2583]: flush_add: site dracon753.ru id ACA2D14736
May 18 12:32:45 posts postfix/pipe[2583]: match_hostname: dracon753.ru ~? localhost
May 18 12:32:45 posts postfix/pipe[2583]: match_list_match: dracon753.ru: no match
May 18 12:32:45 posts postfix/pipe[2583]: flush_add: site dracon753.ru id ACA2D14736 status 4
May 18 12:32:45 posts postfix/pipe[2583]: deliver_request_final: send: "" -1
May 18 12:32:45 posts postfix/pipe[2583]: send attr status = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr diag_type = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr diag_text = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr mta_type = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr mta_mname = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr action = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr reason = 
May 18 12:32:45 posts postfix/pipe[2583]: send attr status = 4294967295
May 18 12:32:45 posts postfix/pipe[2583]: master_notify: status 1
May 18 12:32:45 posts postfix/pipe[2583]: connection closed

drac753 ★★ ()
Ответ на: комментарий от drac753

один касяк нашёл

mail_plugins = cmusieve
cmusieve нужно заменить на sieve
в логах довекота dovecot.log
2011-05-18 15:44:58 auth-worker(default): Info: mysql: Connected to 127.0.0.1 (mail)
2011-05-18 15:44:59 auth(default): Info: new auth connection: pid=3216
2011-05-18 15:44:59 auth(default): Info: new auth connection: pid=3214
2011-05-18 15:44:59 auth(default): Info: new auth connection: pid=3217
2011-05-18 15:44:59 auth(default): Info: new auth connection: pid=3215
2011-05-18 15:44:59 auth(default): Info: new auth connection: pid=3218
2011-05-18 15:44:59 auth(default): Info: new auth connection: pid=3219
2011-05-18 15:45:09 auth(default): Info: master in: USER        1       andrey@dracon753.ru     service=deliver
2011-05-18 15:45:09 auth(default): Info: passwd(andrey@dracon753.ru): lookup
2011-05-18 15:45:09 auth(default): Info: passwd(andrey@dracon753.ru): unknown user
2011-05-18 15:45:09 auth(default): Info: master out: USER       1       andrey@dracon753.ru     uid=5000        gid=5000        home=/home/vmail/dracon753.ru/andrey
2011-05-18 15:45:57 auth(default): Info: master in: USER        1       andrey@dracon753.ru     service=deliver
2011-05-18 15:45:57 auth(default): Info: passwd(andrey@dracon753.ru): lookup
2011-05-18 15:45:57 auth(default): Info: passwd(andrey@dracon753.ru): unknown user
2011-05-18 15:45:57 auth(default): Info: master out: USER       1       andrey@dracon753.ru     uid=5000        gid=5000        home=/home/vmail/dracon753.ru/andrey
2011-05-18 15:45:57 auth(default): Info: master in: USER        1       andrey@dracon753.ru     service=deliver
2011-05-18 15:45:57 auth(default): Info: passwd(andrey@dracon753.ru): lookup
2011-05-18 15:45:57 auth(default): Info: passwd(andrey@dracon753.ru): unknown user
2011-05-18 15:45:57 auth(default): Info: master out: USER       1       andrey@dracon753.ru     uid=5000        gid=5000        home=/home/vmail/dracon753.ru/andrey
2011-05-18 15:50:56 auth(default): Info: master in: USER        1       andrey@dracon753.ru     service=deliver
2011-05-18 15:50:56 auth(default): Info: passwd(andrey@dracon753.ru): lookup
2011-05-18 15:50:56 auth(default): Info: passwd(andrey@dracon753.ru): unknown user
2011-05-18 15:50:56 auth(default): Info: master out: USER       1       andrey@dracon753.ru     uid=5000        gid=5000        home=/home/vmail/dracon753.ru/andrey

плюс
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: Loading modules from directory: /usr/lib/dovecot/modules/lda
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: auth input: uid=5000
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: auth input: gid=5000
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: auth input: home=/home/vmail/dracon753.ru/andrey
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: Namespace: type=private, prefix=INBOX, sep=, inbox=yes, hidden=no, list=1, subscriptions=yes
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: maildir: data=/home/vmail/dracon753.ru/andrey/Maildir
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Info: maildir++: root=/home/vmail/dracon753.ru/andrey/Maildir, index=, control=, inbox=/home/vmail/dracon753.ru/andrey/Maildir
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Error: namespace configuration error: list=yes requires prefix=INBOX to end with separator
2011-05-18 15:50:56 deliver(andrey@dracon753.ru): Fatal: Namespace initialization failed

Почта всё также не доходит

drac753 ★★ ()
Ответ на: комментарий от drac753

ПООООООБЕДААААААА

коментим весь это кусок 
namespace private {
separator = .
prefix = INBOX
inbox = yes
}
подправлям mail_location = maildir:/home/vmail/%d/%n/Maildir до вида
mail_location = maildir:/home/vmail/%d/%n 
И усё работает

drac753 ★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.