-   Linux - Software (
-   -   procmail recipe not working? (

theLIGHT 11-18-2002 05:49 AM

procmail recipe not working?
Hullo there:) .

I am using Mandrake 8.1, have postfix, pine, fetchmail, and procmail installed.

I am using fetchmail to get my email from my two accounts. I cannot seem to get procmail to sort email into my folder.

Here is the procmail recipe.
# Testing filter
* ^Subject:.*[ph-linux-newbie]

My "test-folder" is in /home/john/mail. I use pine to browse that folder, there are no email sorted into this folder.

I tried the command "echo $MAILDIR" and it returned blank.
What gives?


unSpawn 11-18-2002 07:54 AM

"echo $MAILDIR" won't work inside your shell (that is, outside the recipe). Since you're using variables for mailboxes, I suggest you make it easy on yourself and add this to the top of the recipe (which should be $HOME/.procmailrc, cuz that's where procmail will look) to aid you in troubleshooting:
Now if you send yourself a mail to the address fetchmail will retrieve from: "/bin/true | mail -s "[ph-linux-newbie] test $(date)" <address>", you should see in the logs where it fails.

theLIGHT 11-18-2002 07:42 PM

Thanks. I will try it and see.:study:

theLIGHT 11-18-2002 11:04 PM

It didn't work. I noticed that I don't have the procmail.log file in my home directory. I also noticed in the postfix configuration file:, there is the directive
mailbox_command = /usr/bin/procmail -o -a $DOMAIN -d $LOGNAME.

Is this anywhere related?

All times are GMT -5. The time now is 05:23 AM.