[Dovecot] user_global_* ldap deliver

Noel Leistad noel at metc.net
Wed Aug 12 18:19:09 EEST 2009


Searched archive, but failed to find... :-(

"deliver" does not honor user_global_* from dovecot-ldap.conf or userdb
static{}
also
it looks like delivery attempts being made to %n/Maildir/cur ??

one other curious thing, use of ${recipient} in master.cf|deliver
command causes the "passdb ldap" lookups to be completely ignored? only
checks passdb and ignores userdb compleletely?

IF I put noel(at)metc(dot)net into passwd.dovecot using passdb flatfile,
auth and delivery seem to work.

Thanks for any direction. I lament I couldn't get farther on my own.

Noel

----------------------------------
from maillog:

<snip after service restart>
Aug 12 09:44:46 metc1-g5 dovecot: auth(default): new auth connection:
pid=4672
Aug 12 09:44:46 metc1-g5 dovecot: auth(default): new auth connection:
pid=4673
Aug 12 09:57:35 metc1-g5 postfix/qmgr[22189]: 0DEDECC28F:
from=<root at mail.metc.net>, size=288, nrcpt=1 (queue active)
Aug 12 09:57:35 metc1-g5 postfix/qmgr[22189]: AE252CC28D:
from=<root at mail.metc.net>, size=284, nrcpt=1 (queue active)
Aug 12 09:57:35 metc1-g5 dovecot: auth(default): master in: USER       
1       noel    service=deliver
Aug 12 09:57:35 metc1-g5 dovecot: auth(default): passwd(noel): lookup
Aug 12 09:57:35 metc1-g5 dovecot: auth(default): master out: USER      
1       noel    system_user=noel        uid=3669        gid=201
home=/users/noel
Aug 12 09:57:35 metc1-g5 deliver(noel):
stat(/mailstore/noel/Maildir/cur) failed: Permission denied
Aug 12 09:57:35 metc1-g5 deliver(noel):
stat(/mailstore/noel/Maildir/cur) failed: Permission denied
Aug 12 09:57:35 metc1-g5 dovecot: auth(default): master in: USER       
1       skibums service=deliver
Aug 12 09:57:35 metc1-g5 dovecot: auth(default): passwd(skibums): lookup
Aug 12 09:57:35 metc1-g5 dovecot: auth(default): master out: USER      
1       skibums system_user=skibums     uid=1008        gid=201
home=/users/skibums
Aug 12 09:57:35 metc1-g5 deliver(skibums):
stat(/mailstore/skibums/Maildir/cur) failed: Permission denied
Aug 12 09:57:35 metc1-g5 postfix/pipe[13954]: 0DEDECC28F:
to=<noel at metc.net>, relay=dovecot, delay=1242, delays=1242/0.01/0/0.04,
dsn=4.3.0, status=deferred (temporary failure)
Aug 12 09:57:35 metc1-g5 deliver(skibums):
stat(/mailstore/skibums/Maildir/cur) failed: Permission denied
Aug 12 09:57:35 metc1-g5 postfix/pipe[13955]: AE252CC28D:
to=<skibums at metc.net>, relay=dovecot, delay=1991,
delays=1991/0.01/0/0.14, dsn=4.3.0, status=deferred (temporary failure)
/<snip>

from "stat /mailstore/noel/Maildir"
  File: `/mailstore/noel/Maildir/'
  Size: 4096            Blocks: 16         IO Block: 4096   directory
Device: fd02h/64770d    Inode: 459639      Links: 8
Access: (0755/drwxr-xr-x)  Uid: (  502/   vmail)   Gid: (  502/   vmail)
Access: 2009-08-12 09:35:42.000000000 -0500
Modify: 2009-08-12 09:35:11.000000000 -0500
Change: 2009-08-12 09:35:11.000000000 -0500



----------------------------------
from "dovecot -n"

# 1.0.7: /etc/dovecot.conf
base_dir: /var/run/dovecot/
ssl_disable: yes
disable_plaintext_auth: yes
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
login_greeting: Dovecot ready
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
verbose_proctitle: yes
mail_access_groups: mail
mail_location: maildir:/mailstore/%n/Maildir
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
auth default:
  gssapi_hostname: mail.metc.net
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: passwd-file
    args: /etc/passwd.dovecot
  passdb:
    driver: ldap
    args: /etc/dovecot/metc-dovecot-ldap.conf
  userdb:
    driver: passwd
  userdb:
    driver: static
    args: uid=502 gid=502
  socket:
    type: listen
    client:
      path: /var/run/dovecot/auth-client
      mode: 432
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: root
      group: root

----------------------------------
from "postconf -n"

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 5
html_directory = no
inet_interfaces = localhost, $myhostname
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_transport = dovecot
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = mail.metc.net
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_mailbox_domains = metc.net
virtual_transport = dovecot

from master.cf:

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d ${user}



More information about the dovecot mailing list