[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Movemail not getting emails



Paul Cartwright put forth on 11/8/2010 11:39 AM:
> On 11/08/2010 11:42 AM, Stan Hoeppner wrote:
>> If you are indeed using Dovecot (I can't recall what you said), you're
>> better off using:
>>
>> mailbox_command = /usr/lib/dovecot/deliver
>>
>> and commenting #home_mailbox = Maildir/
> 
> I read a few Debian-dovecot-Postfix HOW-To's and I don't remember
> reading about mailbox_command, but I might very well have missed it..

http://wiki1.dovecot.org/LDA
http://wiki1.dovecot.org/LDA/Postfix

>> There are a couple of reasons for this:
>>
>> 1.  Deliver is Dovecots native LDA
>>     it updates your Dovecot index files during delivery
>>     instead of waiting until you access the mailbox
>> 2.  If you use, or plan to use Sieve (and ManageSieve)
>>     LDA will will automatically sort your mails for you
>>     This is very handy if you run webmail because
>>     your emails are sorted automatically whether you
>>     log into webmail or fire up Thunderbird
> 
> thanks, I'll give that a try later today !
> wait, I tried it, it works!

Now configure Sieve and write your sorting scripts.  Beats the hell out
of TBird's sorting rules, especially if you use your webmail to access
your mailbox when the TB rules aren't running. :)

http://wiki1.dovecot.org/LDA/Sieve

Here's a sample sieve script to learn with.  It's my sieve script with
personal addresses removed:

/home/stan$ cat .dovecot.sieve

require "fileinto";

if false {}

elsif header :contains "List-Id" "linux-ide.vger.kernel.org" {
        fileinto "1-Linux-IDE";
        stop;
}
elsif header :contains "List-Id" "linux-raid.vger.kernel.org" {
        fileinto "1-Linux-RAID";
        stop;
}
elsif header :contains "List-Id" "linux-scsi.vger.kernel.org" {
        fileinto "1-Linux-SCSI";
        stop;
}
elsif header :contains "List-Id" "XFS" {
        fileinto "1-XFS";
        stop;
}
elsif header :contains "List-Post" "postfix-users@postfix.org" {
        fileinto "1-Postfix-Users";
        stop;
}
elsif header :contains "List-Id" "users.lists.roundcube.net" {
        fileinto "1-Roundcube";
        stop;
}
elsif header :contains "List-Id" "dovecot.dovecot.org" {
        fileinto "1-Dovecot";
        stop;
}
elsif address :contains "to" "postmaster@hardwarefreak.com" {
        fileinto "Postmaster";
        stop;
}
elsif header :contains "Received" "for <postmaster@hardwarefreak.com>" {
        fileinto "Postmaster";
        stop;
}
elsif header :contains "List-Id" "debian-user.lists.debian.org" {
        fileinto "1-Debian-Users";
        stop;
}
elsif header :contains "List-Id" "spam-l.spam-l.com" {
        fileinto "1-Spam-l";
        stop;
}
else {
        fileinto "INBOX";
}


-- 
Stan


Reply to: