[Dovecot] Courier-mta with Dovecot LDA again

komodo komodo at uvt.cz
Tue Jan 4 12:12:41 EET 2011


Hi all

Sorry for repost, but i don't believe that there is noone who know where the problem can be. At 
least developers should know :-)

I have sent this post once, but without answer.


I have setup dovecot lda instead of maildrop on my courier server.
Delivery is working, sieve plugin too, but i can't figure out why lda can't send emails via sendmail 
(vacation).

I always get error 

Error: Sendmail process terminated abnormally, exit status 67

And i know why, but i don't know how to setup lda to make it work .

Here is .courier file where is redirect to lda.

| /usr/libexec/dovecot/deliver -a $RECIPIENT -f $SENDER

But the deliver does not pass recipient address to sendmail.

Here is some output of strace

execve("/usr/libexec/dovecot/deliver", ["/usr/libexec/dovecot/deliver", "-a", "komodo at somedomain", 
"-f", "someuser at somedomain"], [/* 22 vars */]) = 0

So it's clear that deliver have those variables, but then i can see this

execve("/usr/sbin/sendmail", ["/usr/sbin/sendmail", "-i", "-f", "<>", "--", "someuser at somedomain"], 
[/* 2 vars */] <unfinished ...>

And there is empty -f , so here is the problem.

How should i setup this to make it work correctly ?

Here is my config

[root at OVZ.mail ~]# dovecot -n
# 2.0.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-194.8.1.el5.028stab070.5 x86_64 CentOS release 5.5 (Final) 
disable_plaintext_auth = no
hostname = ovzmail
listen = 10.0.10.34
mail_location = maildir:~/Maildir
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
mbox_write_locks = fcntl
namespace {
  inbox = yes
  location = 
  prefix = INBOX.
  separator = .
  type = private
}
namespace {
  location = maildir:/home/shared/Maildir
  prefix = spam_learner.
  separator = .
  type = public
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap sieve
ssl_cert = </etc/pki/dovecot/certs/server.pem
ssl_key = </etc/pki/dovecot/private/server.pem
userdb {
  driver = prefetch
}
protocol lda {
  mail_plugins = " sieve"
}
protocol imap {
  mail_max_userip_connections = 40
}


Many thanks

Martin


More information about the dovecot mailing list