LinuxForum.Fans
Тема

Проблемы с Dovecot

Автор: psu 2 сообщений 1989 просмотров
#324187

Всем привет!
Использую Postfix + Dovecot и собственно проблема в следующем:

text
Jun  7 16:57:15 mail dovecot: pop3(user): Error: Sync failed for mbox file /var/spool/vmail/somedomain/user: Expunged message reappeared to mailbox (UID 3622 < 3641, seq=2, idx_msgs=0)
Jun  7 16:57:15 mail dovecot: pop3(user): Error: Sync failed for mbox file /var/spool/vmail/somedomain/user: Expunged message reappeared to mailbox (UID 3622 < 3641, seq=2, idx_msgs=0)
Jun  7 17:09:47 mail dovecot: pop3(user): Error: Sync failed for mbox file /var/spool/vmail/somedomain/user: Expunged message reappeared to mailbox (UID 3594 < 3666, seq=1, idx_msgs=0)

Такое при каждом опросе почты, но только у тех пользователей, у кого либо стоит галочка "Оставлять копии писем на сервере" для pop3, либо у тех, кто использует imap. В общем, если почта хранится на сервере, то при каждом опросе все письма дублируются :( (Не зависит от агента)

postconf -n:

text
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost
myhostname = mail.somedomain.ru
mynetworks = 127.0.0.0/8, 192.168.100.0/24
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP (Debian / GNU)
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_helo_access hash:/etc/postfix/helo.list, check_sender_access hash:/etc/postfix/ext_sender, reject_unauth_destination, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_recipient, reject_non_fqdn_sender, reject_non_fqdn_hostname, reject_invalid_hostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/spool/vmail/
virtual_mailbox_domains = somedomain.ru
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000

doveconf -n:

text
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-686-pae i686 Debian 7.0 ext4
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
disable_plaintext_auth = no
info_log_path = /var/log/dovecot/info_log
listen = *
mail_gid = 5000
mail_location = mbox:/var/spool/vmail/somedomain:INBOX=/var/spool/vmail/somedomain/%u
mail_privileged_group = vmail
mail_uid = 5000
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = scheme=CRYPT username_format=%u /etc/dovecot/users
  driver = passwd-file
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap pop3"
service auth {
  group = postfix
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
  }
  user = postfix
}
ssl = no
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
}
valid_chroot_dirs = /var/spool/vmail

Подскажите куда копать

#325898

Любопытно.. " Expunged message reappeared to mailbox" это что: "Удаленное сообщение появилось в почтовом ящике" !!!?

Если коротко, то "So it means that something expunged the messages outside Dovecot.

So.. If the mboxes are changed only using Dovecot, this really shouldn't
be happening. Typically it could only happen when eg. copying an older
backup of the mbox file over the new changed one.
"
т.е. точно никто кроме dovecot не лезет в ящик, например скрипт бэкапа..

Войдите или зарегистрируйтесь, чтобы ответить.