MrNugget Tux's lil' helper
Joined: 15 Nov 2003 Posts: 144 Location: Germany
|
Posted: Tue Aug 09, 2005 1:20 pm Post subject: [cyrus] fetchmail -> procmail won't deliver my mail |
|
|
Hello,
i just set up cyrus-imapd, which works great. I can log in with
every mail-client i want and check my emails. But since it's a local
setup i don't have mails in there. And to get this i installed fetchmail
and procmail.
My idea is to fetch the email from my pop3-accounts with fetchmail,
give them to procmail and procmail sorts them in my imap mailbox
which is in /var/spool/imap with the help of cyrus deliver program.
My problem is, it doesn't work. fetchmail gets the emails without any problems
but when it hands them over to procmail, i get an error.
Then i check the procmail-logfile:
Code: | procmail: Program failure (65) of "/usr/lib/cyrus/deliver"
From mrnugget Tue Aug 9 15:10:23 2005
Subject: very cheap tabs
Folder: /home/mrnugget/.maildir/new/1123593023.12525_0.drfaust 3669 |
As you see, there is a failure. And it doesn't even want to sort it in
the /var/spool/imap directory. When i change the .procmailrc i get
an "failure(65)" or "failure(75)".
And now here's my .procmailrc:
Code: | # Procmail
USER="mrnugget"
PATH=/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
SHELL=/bin/sh
LOGFILE="/home/$USER/.procmaillog"
:0w
| /usr/lib/cyrus/deliver -a mrnugget -q -m user.mrnugget
:0w
{
EXITCODE=$?
} |
I made it very basic for debugging-purpose. But it still won't work.
And the command i use for fetching mail is this one:
Code: | /usr/bin/fetchmail -a -v -k -m "/usr/bin/procmail -d %T" |
It would be nice if someone could look over it and tell me
what's wrong or tell me a better way to sort my mails in
the imap-mailboxes or even show a working .procmailrc.
Regards,
MrNugget |
|