View previous topic :: View next topic |
Author |
Message |
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sat Nov 29, 2003 8:46 pm Post subject: all mail goes to inbox - procmail not sorting it out |
|
|
Hi.
Problem:
All incoming mail goes to ~/.maildir/inbox
insted of beeing directed to their respective directories, like:
~./maildir/inbox/gentoo-forums
~./maildir/inbox/gentoo-announce
~./maildir/inbox/other-list
~./maildir/inbox/trash
~./maildir/inbox/something
~./maildir/inbox/inbox #for lost emails that cant find their home.
First I will present how my procmailrc looks like:
Code: |
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/.maildir # You'd better make sure it exists
DEFAULT=$MAILDIR/inbox
LOGFILE=$MAILDIR/.procmail.log
#LOCKFILE=$HOME/.lockmail
VERBOSE=on
SENDMAIL=/usr/sbin/sendmail
#no more html messages
:0
* ^Content-Type:.*html
trash
#catch duplicates using formail
#:0 Whc: .msgid.lock
#| $FORMAIL -D 16384 .msgid.cache
:O
* ^To:.*me@domain.com
domain
:O
*^To:.*root@domain.com
local-email
:O
*^To:.me@my-isp.com
isp-mailbox
:O
*^To:.me@another-mailbox.com
another-mailbox
etc..etc..
:O
* .*
inbox
|
does that look wrong ?
muttrc
Code: |
set folder=~/.maildir/inbox
set mbox_type=Maildir
set record=~/.maildir/inbox/sent/
mailboxes = gentoo-forums
mailboxes = gentoo-announce
etc..etc..
|
iam missing anything ?
Thanks |
|
Back to top |
|
|
tomchuk Guru
Joined: 23 Mar 2003 Posts: 317 Location: Brooklyn, NY
|
Posted: Sat Nov 29, 2003 11:09 pm Post subject: |
|
|
I'm pretty sure that with maildirs you must include the trailing slash when specifying the path:
Code: |
MAILDIR=$HOME/.maildir/
DEFAULT=$MAILDIR/inbox/
:O
*^To:.*root@domain.com
local-email/
etc..etc..
:O
* .*
inbox/
|
|
|
Back to top |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sun Nov 30, 2003 12:22 am Post subject: |
|
|
ok i got that sorted out...' I can recive mail now.
I still have some wierd problems..
i have one email addresse that looks like:
me@att.domain.org
so the procmail rule is :
Code: |
:0
* ^To:.*me@att.domain.org
/home/me/.maildir/inbox/domain.org/
|
and the last rule is
Code: |
:0:
/home/me/.maildir/inbox/lost-emails/
|
But insted of the emails going to the right dir, they go to the lost-emails dir ...
the rules says it should go to /domainl.org/ dir ....
i dont get it .
|
|
Back to top |
|
|
tomchuk Guru
Joined: 23 Mar 2003 Posts: 317 Location: Brooklyn, NY
|
Posted: Sun Nov 30, 2003 1:35 am Post subject: |
|
|
try escapeing the dots in the email address. Here's one I use for the linux-kernel-announce list:
Code: |
:0
* ^X-Mailing-List:.*linux-kernel-announce\@vger\.kernel\.org
lists/kernel/announce/
|
|
|
Back to top |
|
|
|