Страница 1 из 1

dovecot2 + exim + ldap

Добавлено: 2012-07-27 12:53:25
J.Korvin
Здравствуйте, настроена связка dovecot2 + exim + ldap доставка с exim через /usr/local/libexec/dovecot/deliver. Проблема в том что папки создаются с права 700, а нужно чтобы создавались с правами 744. Не могу понять как настроить. Спасибо.

Код: Выделить всё

Debug: Namespace : Using permissions from /home/mail_data/mailquote/users: mode=0700 gid=-1

Код: Выделить всё

ldap_delivery:
    driver = pipe
    current_directory = /
    command = /usr/local/libexec/dovecot/deliver
    message_prefix =
    message_suffix =
    log_output
    delivery_date_add
    envelope_to_add
    return_path_add
    group = mail
    temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78

Код: Выделить всё

# 2.1.8: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 7.2-RELEASE amd64  ufs
auth_mechanisms = plain login
auth_socket_path = /var/run/dovecot/auth-userdb
base_dir = /var/run/dovecot/
debug_log_path = /var/log/dovecot/dovecot_debug.log
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot/dovecot.log
login_greeting = POP&IMAP server -=Liu Kang=-
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
mail_access_groups = mail
mail_debug = yes
mail_gid = 6
mail_home = /home/mail_data/mailquote/%n
mail_location = maildir:/home/mail_data/mailquote/%n:INDEX=/home/mail_data/mailnoquote/%n/index:CONTROL=/home/mail_data/mailnoquote/%n/control
mail_plugins = " quota fts fts_squat trash zlib"
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave spamtest spamtestplus
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 = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  fts = squat
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size from
  quota = dict:user::noenforcing:file:/home/mail_data/mailnoquote/%n/dovecot-quota
  quota_rule = *:storage=500MB
  quota_rule2 = Trash:ignore
  sieve = /home/mail_data/mailnoquote/%n/.dovecot.sieve
  sieve_dir = /home/mail_data/mailnoquote/%n/sieve
  sieve_extensions = +spamtest +spamtestplus +relational +comparator-i;ascii-numeric
  trash = /usr/local/etc/dovecot/dovecot-trash.conf.ext
}
postmaster_address = postmaster@domail.ru
protocols = imap pop3 lmtp sieve
quota_full_tempfail = yes
service auth {
  unix_listener auth-client {
    group = mail
    mode = 0666
    user = mailnull
  }
}
service dict {
  unix_listener dict {
    group = mail
    mode = 0755
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  inet_listener lmtp {
    address = 127.0.0.1
    port = 124
  }
  unix_listener lmtp {
    mode = 0666
  }
}
service managesieve-login {
  inet_listener sieve_deprecated {
    port = 2000
  }
  service_count = 1
  vsz_limit = 64 M
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
ssl_cert = </usr/local/etc/ssl/dovecot.crt
ssl_key = </usr/local/etc/ssl/dovecot.key
syslog_facility = /var/log/dovecot/dovecot.log
userdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins = " quota fts fts_squat trash zlib quota sieve"
}
protocol lda {
  mail_plugins = " quota fts fts_squat trash zlib sieve quota"
}
protocol imap {
  imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
  imap_idle_notify_interval = 2 mins
  imap_logout_format = in=%i out=%o
  imap_max_line_length = 64 k
  mail_max_userip_connections = 10
  mail_plugins = " quota fts fts_squat trash zlib quota imap_quota fts fts_squat  mail_log notify imap_zlib"
}
protocol pop3 {
  mail_max_userip_connections = 15
  mail_plugins = " quota fts fts_squat trash zlib quota fts fts_squat"
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %08Xu%08Xv
}

Re: dovecot2 + exim + ldap

Добавлено: 2012-11-18 19:02:38
Alex Keda
странные права какие-то, для папок - 744
может правильно не создаются с ними?

Re: dovecot2 + exim + ldap

Добавлено: 2012-11-20 14:58:09
skeletor
Если сильно надо - создавайте новый класс в login.conf, с нужными правами и помещайте в него юзера, который создаёт папки. Не уверен, что сработает, но можете попробовать.