Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[cyrus] fetchmail -> procmail won't deliver my mail
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
MrNugget
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 144
Location: Germany

PostPosted: Tue Aug 09, 2005 1:20 pm    Post subject: [cyrus] fetchmail -> procmail won't deliver my mail Reply with quote

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
Back to top
View user's profile Send private message
MrNugget
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 144
Location: Germany

PostPosted: Wed Aug 10, 2005 5:21 pm    Post subject: Reply with quote

No ideas?
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