[Dovecot] help using sendmail LDA

Anil replicase at gmail.com
Sat Jan 5 05:49:54 EET 2008


I am stuck. I get nothing in the logs (about deliver). Sendmail
complains about "User unknown".
I am not sure I have my sendmail.mc configured right, can someone
confirm or give me some sample config files that make use of
Dovecot+LDAP and sendmail LDA?

Dovecot is running as root.

I am a little confused, so the auth-master is not even needed? (the
whole socket listen {}, since I am using static userdb and the user
information was already found at authentication/login)

Thank You!

# 20080102: /usr/local/dovecot/etc/dovecot.conf
listen: *:143
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /usr/local/dovecot/var/run/dovecot/login
login_executable: /usr/local/dovecot/libexec/dovecot/imap-login
login_log_format_elements: user=<%n@%d> method=%m rip=%r lip=%l %c
login_max_connections: 64
max_mail_processes: 128
mail_location: maildir:~/Maildir
mail_debug: yes
auth default:
  verbose: yes
  debug: yes
  passdb:
    driver: ldap
    args: /usr/local/dovecot/etc/dovecot-ldap.conf
  userdb:
    driver: static
    args: uid=vmail gid=vmail home=/var/mail/apps/%d/%n
  socket:
    type: listen
    master:
      path: /var/run/dovecot-auth-master
      mode: 384
      user: vmail
      group: vmail


My sendmail.mc file:

define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
define(`LOCAL_MAILER_PATH',`/usr/local/dovecot/libexec/dovecot/deliver')
define(`LOCAL_MAILER_FLAGS',`DFMPhfnu9')
define(`LOCAL_MAILER_ARGS',`deliver -d $u')
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*    $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3


More information about the dovecot mailing list