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
Op 4-1-2011 11:12, komodo schreef:> 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 .The problem details should be logged somewhere by the sendmail process. The above error is produced by LDA and tells me little about the problem itself. Does executing sendmail manually even work?> 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.I am not convinced that this is the problem. This looks like a valid rejection or vacation notification mail being sent out, probably from Sieve; notice that the original sender is specified as recipient and that the new sender is empty, indicating an automated message. So, what caused this message to be sent out? It is definitely not a redirect. Regards, Stephan.
On Tuesday 04 January 2011 12:11:53 you wrote:> On Tue, 2011-01-04 at 13:03 +0200, Timo Sirainen wrote: > > On Tue, 2011-01-04 at 11:59 +0100, komodo wrote: > > > [root at OVZ.mail ~]# /usr/sbin/sendmail -i -f '<>' -- komodo at domain.com > > > 517 Syntax error. > > > > What is your /usr/sbin/sendmail? It shouldn't be behaving like this. You > > could try if /usr/lib/sendmail works better. If it does, set: > > > > sendmail_path = /usr/lib/sendmail > > Right, looks like Courier's sendmail doesn't like the -i parameter. Its > purpose is to not stop when there's a line with only "." in it. So if > the -i parameter is removed and a rejected/vacation message body has a > line with only ".", the mail is truncated. So I don't think I want to > remove that parameter either. > > You could of course create a sendmail.sh wrapper that removes the -i > parameter. Or use sendmail binary from something else than Courier.Yes i'm using sendmail from Courier. When i changed sendmail_path to original sednmail binary it's working and vacation is sent, but i can see some errors from sendmail. Jan 4 12:14:36 OVZ sendmail[15576]: p04BEabd015576: Authentication-Warning: OVZ.mail: komodo set sender to <> using -f Jan 4 12:14:36 OVZ sendmail[15576]: p04BEabd015576: from=<>, size=478, class=-60, nrcpts=1, msgid=<dovecot-sieve-1294139676-404210-0>, relay=komodo at localhost Jan 4 12:14:36 OVZ courieresmtpd: started,ip=[::ffff:127.0.0.1] Jan 4 12:14:36 OVZ sendmail[15576]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256 I am not so familiar with sendmail, is there any way to set up something to resolve these errors ?