1

Тема: Dovecot не создает maildir

exim + dovecot + postfixadmin

dovecot-1.2.16
exim-4.74

dovecot.conf

base_dir = /var/run/dovecot/
protocols = imap pop3
protocol imap {
     listen = *:143
   }
protocol pop3 {
     listen = *:110
   }
disable_plaintext_auth = no
#shutdown_clients = yes
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
log_timestamp = "%b %d %H:%M:%S "
#syslog_facility = mail
ssl = no
login_dir = /var/run/dovecot/login
#login_chroot = yes
login_user = dovecot
login_process_size = 64
login_process_per_connection = yes
login_processes_count = 3
login_max_processes_count = 128
login_max_connections = 256
login_greeting = Dovecot ready.
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
login_log_format = %$: %s
mail_location = maildir:/var/mail/exim/%d/%u
mail_debug = yes
mail_log_max_lines_per_sec = 10
verbose_proctitle = yes
first_valid_uid = 25
first_valid_gid = 0
max_mail_processes = 512
mail_process_size = 256
protocol imap {
login_executable = /usr/local/libexec/dovecot/imap-login
mail_executable = /usr/local/libexec/dovecot/imap
imap_max_line_length = 65536
}
protocol pop3 {
login_executable = /usr/local/libexec/dovecot/pop3-login
mail_executable = /usr/local/libexec/dovecot/pop3
pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
postmaster_address = [email protected]
sendmail_path = /usr/sbin/sendmail
auth_socket_path = /var/run/dovecot/auth-master
}
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
auth default {
  mechanisms = plain login
passdb sql {
     args = /usr/local/etc/dovecot-sql.conf
  }
userdb sql {
 args = /usr/local/etc/dovecot-sql.conf
}
  user = nobody
  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = dovecot
      group = dovecot
    }
    client {
         path = /var/run/dovecot/auth-client
      mode = 0660
    }
  }
}

dovecot-sql.conf

driver = mysql
connect = host=localhost dbname=exim user=exim password=password
default_pass_scheme = PLAIN
password_query = SELECT `username` as `user`, `password` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'
user_query = SELECT `maildir` AS `home`, 143 AS `uid`, 143 AS `gid` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'

ls -la /var/mail/ | grep exim

drw-rw----   2 dovecot    dovecot         512 Jan 29 13:40 exim

id dovecot

uid=143(dovecot) gid=143(dovecot) groups=143(dovecot)


Когда в postfixфвьшту создаю пользователя , dovecot не создает папку в /var/mail/exim/
Может что то опустил ?
Спс за ранее!

2

Re: Dovecot не создает maildir

Вообще postfix должен создавать директории. Про довекот не слышал - по крайней мере не пользовался созданием директорий через довекот

3

Re: Dovecot не создает maildir

Alexander пишет:

Вообще postfix должен создавать директории

Вы имелли ввиду ЕКЗИМ???? Я екзим в связке использую!

Добавлено: 30-01-2011 15:11:33

Вот поставил roundcube !
Захожу под  учетной записью созданой в  postfixadmin , выдает  ошибку :
Не удачное соединение с IMPAP сервером!

А еще вот конфиг екзима! Ребята прощу помощи , ибо рехнусь скоро smile

cat /usr/local/etc/exim/configure

primary_hostname = drova.net.ua
hide mysql_servers = localhost/exim/exim/password
domainlist local_domains = ${lookup mysql{SELECT `domain` FROM `domain` WHERE `domain`='${domain}' AND `active`='1'}}
domainlist relay_to_domains = ${lookup mysql{SELECT `domain` FROM `domain` WHERE `domain`='${domain}' AND  `active`='1'}}
hostlist   relay_from_hosts = localhost
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
av_scanner = clamd:/tmp/clamd
qualify_recipient = drova.net.ua
exim_user = mailnull
exim_group = mail
never_users = root
rfc1413_query_timeout = 5s
sender_unqualified_hosts = +relay_from_hosts
recipient_unqualified_hosts = +relay_from_hosts
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
split_spool_directory = true
remote_max_parallel = 15
return_size_limit = 70k
message_size_limit = 64M
helo_allow_chars = _
smtp_enforce_sync = true
log_selector = \
    +all_parents \
    +connection_reject \
    +incoming_interface \
    +lost_incoming_connection \
    +received_sender \
    +received_recipients \
    +smtp_confirmation \
    +smtp_syntax_error \
    +smtp_protocol_error \
    -queue_run
syslog_timestamp = no
begin acl
acl_check_rcpt:
  accept  hosts = :
  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]
  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
  accept  local_parts   = postmaster
          domains       = +local_domains
  accept  hosts         = +relay_from_hosts
          control       = submission
          control       = dkim_disable_verify
  accept  authenticated = *
          control       = submission
          control       = dkim_disable_verify
  require message = relay not permitted
          domains = +local_domains : +relay_to_domains
  require verify = recipient
  deny    message       = rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text
          dnslists      = black.list.example
   warn    dnslists      = black.list.example
           add_header    = X-Warning: $sender_host_address is in a black list at $dnslist_domain
           log_message   = found in $dnslist_domain
  accept
acl_check_data:
   deny    malware    = *
           message    = This message contains a virus ($malware_name).
   warn    spam       = nobody
           add_header = X-Spam_score: $spam_score\n\
                        X-Spam_score_int: $spam_score_int\n\
                        X-Spam_bar: $spam_bar\n\
                        X-Spam_report: $spam_report
  accept
begin routers
dnslookup:
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more
system_aliases:
  driver = redirect
  allow_fail
  allow_defer
 data = ${lookup mysql{SELECT `goto` FROM `alias` WHERE `address`='${quote_mysql:$local_part@$domain}' OR `address`='${quote_mysql:@$domain}'}}
dovecot_user:
  driver = accept
  condition = ${lookup mysql{SELECT `goto` FROM `alias` WHERE `address`='${quote_mysql:$local_part@$domain}' OR `address`='${quote_mysql:@$domain}'}{yes}{no}}
  transport = dovecot_delivery
begin transports
remote_smtp:
  driver = smtp
dovecot_delivery:
  driver = pipe
  command = /usr/local/libexec/dovecot/deliver -d $local_part@$domain
  message_prefix =
  message_suffix =
  delivery_date_add
  envelope_to_add
  return_path_add
  log_output
  user = mailnull
address_pipe:
  driver = pipe
  return_output
address_reply:
  driver = autoreply
begin retry
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
auth_plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = ${lookup mysql{SELECT `username` FROM `mailbox` WHERE `username` = '${quote_mysql:$auth2}' AND `password` = '${quote_mysql:$auth3}'}{yes}{no}}
  server_prompts = :
  server_set_id = $auth2
auth_login:
  driver = plaintext
  public_name = LOGIN
 server_condition = ${lookup mysql{SELECT `username` FROM `mailbox` WHERE `username` = '${quote_mysql:$auth1}' AND `password` = '${quote_mysql:$auth2}'}{yes}{no}}
server_prompts = Username:: : Password::
 server_set_id = $auth1
auth_cram_md5:
  driver = cram_md5
  public_name = CRAM-MD5
server_secret = ${lookup mysql{SELECT `password` FROM `mailbox` WHERE `username` = '${quote_mysql:$auth1}'}{$value}fail}
  server_set_id = $auth2    

4

Re: Dovecot не создает maildir

Читайте в конфиге довекота, умеет ли он создавать директории. Если Вы это найдете, то я снимаю шляпу.

5

Re: Dovecot не создает maildir

Alexander пишет:

то я снимаю шляпу

та нах оно мне нада!  big_smile

Мне бы лучше ваша помощь в решении!

Добавлено: 02-02-2011 16:17:16

Любители exim dovecot! Хелп! Проблема актуальна! ....  cool

6

Re: Dovecot не создает maildir

Нужно довекот прописать в master.cf как деливери агента. Вместо virtual (к примеру)

Для виртуальных юзеров

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=mail:postfix argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}

Подробней можно здесь дочитать
http://wiki.dovecot.org/LDA/Postfix

7 (15-03-2011 19:59:41 отредактировано tima)

Re: Dovecot не создает maildir

Как успехи с довекотом?
Я в связке exim-dovecot использую только exim'овский local-delivery transport.
Ехиму-ехимово - доставка почты в ящик, а довекоту-довекотово - передача почты юзеру.
Папку в /var/mail/exim/ создает exim при доставке первой почты.
Конфиги нужны?

Re: Dovecot не создает maildir

Должно помоч!

protocol lda {
   mail_plugins = autocreate
}