PDA

View Full Version : Mail delivered in wrong mailbox.


mikenuun
29th January 2008, 16:29
First of all,
Im new to the forums,
So hi anyway ^^

But the reason i came is that im having a weird problem,
Maybe the solution is close, but for me its a weird problem.

I'm Using Postfix to receive mail and to send mail,
And for the right delivery im using procmail,
But hey, procmail does not place it into the right mailbox !

Sending maile is ok,
So the postfix confgiruration is ok for now
Its just that the procmail doenst place the mail in the users mailbox,

Heres my .procmailrc

# .procmailrc
# routes incoming mail to appropriate mailboxes
PATH=/usr/bin:/usr/local/bin
MAILDIR=/var/mail/$USER
DEFAULT=/var/mail/gevonden
LOGFILE=/var/log/procmail.log
SHELL=/bin/sh

Mail always cames at /var/mail/gevonden, doenst matter for what user it is.
But if i chance the default to /var/mail/$USER , it wont receive mail at all
I dont know what to do, i just want procmail to deliver the right mail in the mailbox for the user.

Further Information :
OS : Ubuntu 6.06 LTS
Kernel : Sparc64

Thanks in advance,

Mike Van Nunen
________________

topdog
29th January 2008, 17:19
If you are using maildir create the file /etc/procmailrc and put this in

DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir


Also try removing your .procmailrc then test.

falko
30th January 2008, 16:11
Are you using Maildir or mbox? What's the output of netstat -tap?

mikenuun
31st January 2008, 21:48
If you are using maildir create the file /etc/procmailrc and put this in

DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir


Also try removing your .procmailrc then test.

Thanks,
This DID solved my problem 100%