
tobeinto at gmail
May 7, 2008, 11:15 PM
Post #6 of 6
(300 views)
Permalink
|
On Wed, May 7, 2008 at 4:33 PM, Dan Ritter <dsr[at]tao.merseine.nu> wrote: > On Wed, May 07, 2008 at 04:05:12PM +0530, Anirban Mukherjee wrote: > > On Fri, May 2, 2008 at 12:52 AM, Dan Ritter <dsr[at]tao.merseine.nu> wrote: > > > For more details, consult http://www.courier-mta.org/maildrop > > > > > > I have done the above mentioned solution, but the problem is mail is > getting > > stuck in the queue. > > here is qmail-send log > > /@400000004822d6b616251eec starting delivery 2: msg 2360673 to local > > t<http://www.courier-mta.org/maildrop/> > > est.com-trm[at]test.com > > @400000004822d6b616255984 status: local 1/10 remote 0/255 > > @400000004822d6b61bc0aed4 delivery 2: deferral: > > > This_account_is_currently_not_available./maildrop:_error_writing_to_mailbox.//usr/local/bin/maildrop:_Unable_to_deliver_to_mailbox./ > > Well, there's your problem. > > > my .qmail file[root[at]test trm]# cat .qmail > > |/var/qmail/bin/preline /usr/local/bin/maildrop > > > > .mailfilter > > > > [root[at]test trm]# cat .mailfilter > > if (/^Subject:\ SPAM.*/:h) > > to "/home/vpopmail/domains/test.com/trm/Maildir/.Spam" > > I see no default delivery instructions, and I suspect that > /home/vpopmail/domains/test.com/trm/Maildir/.Spam does not exist > (as a mailbox) or is a Maildir which hasn't been properly > specified (Maildirs need / at the end). > > I have changed the "mailfilter" file here it is VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST` if (/^X-Spam-Flag: *YES/) { # try filtering it using user-defined rules exception { include $VHOME/Maildir/.mailfilter } # then try delivering it to a Spam folder exception { # to "$VPOP" to "$VHOME/Maildir/.Spam/" } # ah well, I guess they'll just have to live with disappointment exception { to "$VPOP" } } else { exception { include $VHOME/Maildir/.mailfilter } exception { to "$VPOP" } } in user's ".qmail" file is contain cat trm/.qmail # deliver into a file in $HOME/Maildir/ ./Maildir/ cat .qmail-default | maildrop mailfilter #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox #|/usr/local/bin/maildrop /home/vpopmail/.mailfilter eventhough no luck -- AM
|