[Dovecot] Error while set mailQuota=0 with mbox and LDAP backend

Zhang Huangbin zhbmaillistonly at gmail.com
Fri May 23 23:39:25 EEST 2008


Hi, all.

I have OpenLDAP(+qmail.schema), Dovecot, Postfix installed on RHEL 5.1
(x86_64), and they works fine with mbox format.

The problem is if i set 'mailQuota=0' in LDAP, postfix can't send mail
to recipient user. But it works fine with 'mailQuota != 0', such as
'10240'(10M).

What's wrong with my mail server setting? How can i solved this issue?

Thanks very much.


Bellow is the mail log from /var/log/maillog:

---------------- /var/log/maillog -------------
# mail -s "h" postmaster at a.cn < /etc/hosts && tail -0f /var/log/maillog
May 23 20:29:35 rh6 postfix/pickup[1608]: 8E8B884949: uid=0 from=<root>
May 23 20:29:35 rh6 postfix/cleanup[1896]: 8E8B884949: 
message-id=<20080524002935.8E8B884949 at rh6.bibby.org>
May 23 20:29:35 rh6 postfix/qmgr[1616]: 8E8B884949: 
from=<root at rh6.bibby.org>, size=467, nrcpt=1 (queue active)
May 24 00:29:35 rh6 postfix/smtpd[1901]: connect from 
localhost.localdomain[127.0.0.1]
May 24 00:29:35 rh6 postfix/smtpd[1901]: CFE838494A: 
client=localhost.localdomain[127.0.0.1]
May 23 20:29:35 rh6 postfix/cleanup[1896]: CFE838494A: 
message-id=<20080524002935.8E8B884949 at rh6.bibby.org>
May 23 20:29:35 rh6 postfix/qmgr[1616]: CFE838494A: 
from=<root at rh6.bibby.org>, size=1076, nrcpt=1 (queue active)
May 24 00:29:35 rh6 postfix/smtpd[1901]: disconnect from 
localhost.localdomain[127.0.0.1]
May 24 00:29:35 rh6 postfix/smtp[1898]: 8E8B884949: 
to=<postmaster at a.cn>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.35, 
delays=0.07/0/0.01/0.27, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 
CFE838494A)
May 23 20:29:35 rh6 postfix/qmgr[1616]: 8E8B884949: removed
May 23 20:29:35 rh6 postfix/pickup[1608]: E47BA84949: uid=2000 from=<>
May 23 20:29:35 rh6 postfix/cleanup[1896]: E47BA84949: 
message-id=<dovecot-1211588975-866451-0 at rh6.bibby.org>
May 23 20:29:35 rh6 postfix/qmgr[1616]: E47BA84949: from=<>, size=2085, 
nrcpt=1 (queue active)
May 23 20:29:35 rh6 postfix/pipe[1902]: CFE838494A: 
to=<postmaster at a.cn>, relay=dovecot, delay=0.12, delays=0.01/0/0/0.11, 
dsn=2.0.0, status=sent (delivered via dovecot service)
May 23 20:29:35 rh6 postfix/qmgr[1616]: CFE838494A: removed
May 24 00:29:36 rh6 postfix/smtpd[1901]: connect from 
localhost.localdomain[127.0.0.1]
May 24 00:29:36 rh6 postfix/smtpd[1901]: 390468494F: 
client=localhost.localdomain[127.0.0.1]
May 23 20:29:36 rh6 postfix/cleanup[1896]: 390468494F: 
message-id=<dovecot-1211588975-866451-0 at rh6.bibby.org>
May 23 20:29:36 rh6 postfix/qmgr[1616]: 390468494F: from=<>, size=2522, 
nrcpt=1 (queue active)
May 24 00:29:36 rh6 postfix/smtpd[1901]: disconnect from 
localhost.localdomain[127.0.0.1]
May 24 00:29:36 rh6 postfix/smtp[1898]: E47BA84949: 
to=<root at rh6.bibby.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.34, 
delays=0.02/0/0.01/0.31, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 
390468494F)
May 23 20:29:36 rh6 postfix/qmgr[1616]: E47BA84949: removed
May 23 20:29:36 rh6 postfix/local[1951]: 390468494F: 
to=<root at rh6.bibby.org>, relay=local, delay=0.04, delays=0.01/0/0/0.03, 
dsn=4.3.0, status=deferred (temporary failure. Command output: Can't 
open log file /var/log/sieve.log: Permission denied )

------------ End maillog ---------------

Bellow is my dovecot setting(dovecot -n):

----------- dovecot -n --------------
# 1.0.13: /etc/dovecot.conf
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps
ssl_cert_file: /etc/pki/dovecot/certs/dovecotCert.pem
ssl_key_file: /etc/pki/dovecot/private/dovecotKey.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: mbox:/%Lh/%Ld/%Ln:INBOX=/%Lh/%Ld/%Ln/inbox:INDEX=MEMORY
mbox_write_locks: dotlock fcntl
mbox_min_index_size: 10240
mbox_very_dirty_syncs: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  user: vmail
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 432
      user: vmail
      group: vmail

----------- End dovecot -n --------------

Bellow is /etc/dovecot-ldap.conf:

-------------- /etc/dovecot-ldap.conf ---------------
hosts           = 127.0.0.1:389
ldap_version    = 3
auth_bind       = yes
dn              = cn=vmail,dc=osspinc,dc=com
dnpass          = passwd
base            = o=%d,o=domains,dc=osspinc,dc=com
scope           = subtree
deref           = never
user_filter     = (&(mail=%u)(objectClass=qmailUser)(accountStatus=active))
pass_filter     = (mail=%u)
pass_attrs      = userPassword=password
user_global_uid = 2000
user_global_gid = 2000
default_pass_scheme = CRYPT
user_attrs      = 
homeDirectory=home,mailMessageStore=dirsize:mail,mailQuota=quota=dirsize:storage
-------------- End /etc/dovecot-ldap.conf ---------------

transport entry in Postfix master.cf:

----------- /etc/postfix/master.cf ----------------
dovecot unix    -       n       n       -       -      pipe
  flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d 
${recipient} -f ${sender}
----------- End /etc/postfix/master.cf ----------------


-- 
Best Regards.

Zhang Huangbin

- Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x:
  http://rhms.googlecode.com/



More information about the dovecot mailing list