Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
all mail goes to inbox - procmail not sorting it out
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sat Nov 29, 2003 8:46 pm    Post subject: all mail goes to inbox - procmail not sorting it out Reply with quote

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
View user's profile Send private message
tomchuk
Guru
Guru


Joined: 23 Mar 2003
Posts: 317
Location: Brooklyn, NY

PostPosted: Sat Nov 29, 2003 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sun Nov 30, 2003 12:22 am    Post subject: Reply with quote

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 .
:cry:
Back to top
View user's profile Send private message
tomchuk
Guru
Guru


Joined: 23 Mar 2003
Posts: 317
Location: Brooklyn, NY

PostPosted: Sun Nov 30, 2003 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum