On Mon, Apr 18, 2005 at 05:11:24PM +0200, Tomas Kuliavas wrote: > > Hi > > I'm trying to use the "forwardonly" as described on > > http://www.lifewithqmail.org/ldap: > > > > > > deliveryMode > > normal: Maildir/box delivery only if no forwards or prgrams are > > executed > > forwardonly: hmmm... hard to explain... ;-)) > > nombox: ignore all maildir/mbox deliveries > > localdelivery: always deliver locally. In conjunction with forwarding > > this means to deliver a local copy. > > reply: send also an auto-reply-mail with text from mailReplyText > > echo: don't use it, very strange. > > > > > > > > > > But when I run "qmail-ldaplookup", i get the following > > message: > > > > qmail-ldaplookup: warning: undefined mail delivery mode: forwardonly > > (ignored). > > > > Looking at the code i noticed that (might) be a little bug. > > As you can see there are two "case_diffs(MODE_FORWARD, s)" (1st and 8th > > lines). > > > > > > if (case_diffs(MODE_FORWARD, s) && > > case_diffs(MODE_REPLY, s) && > > case_diffs(MODE_NOLOCAL, s) && > > case_diffs(MODE_NOMBOX, s) && > > case_diffs(MODE_NOFORWARD, s) && > > case_diffs(MODE_NOPROG, s) && > > case_diffs(MODE_LOCAL, s) && > > case_diffs(MODE_FORWARD, s) && > > case_diffs(MODE_PROG, s) && > > case_diffs(MODE_NOREPLY, s)) > > strerr_warn4(WARN, > > "undefined mail delivery mode: > > ", > > s," (ignored).", 0); > > > > > > Shouldnt one of these lines be "case_diffs(MODE_FONLY, s)" ? > > Besides that, I believe qmail-ldap itself is ignoring the forward > > directive, because email forward isnt working. > > Does anyone have the same problem? > > http://www.qmail-ldap.org/qmail/QLDAPNEWS > > 2003-09-01 > * Changed deliveryMode significantly. .... > > > http://www.qmail-ldap.org/qmail/QLDAPINSTALL > .... > LDAP_MODE (default: "deliveryMode") > > multi field entries of these keywords > - (no entry): default delivery, put message into maildir/mbox > (localdelivery), > plus forward and program delivery if specified. > - noforward: do not forward (ignores forwarding entries in ldap and .qmail) > - nolocal: do not put message into maildir/mbox (ignores also .qmail) > - noprogram: do not do program deliveries (ignores deliveryprogrampath, > .qmail) > - reply: send an auto_reply mail with text from mailReplyText > ... >
DeliveryMode forwardonly is now used internally and should not be set as it may cause other troubles (it emulates seting the x bit on .qmail). So forwardonly is still accepted but qmail-ldaplookup tells you that it is no official mode. OK the error message is a bit misleading. -- :wq Claudio
