procmail question

Christopher Chan christopher.chan at bradbury.edu.hk
Tue Nov 18 00:38:50 UTC 2008


Robert Holtzman wrote:
> On Mon, 17 Nov 2008, Christopher Chan wrote:
> 
>> Robert Holtzman wrote:
>>> On Thu, 13 Nov 2008, Christopher Chan wrote:
>>>
>>>> Linda wrote:
>>>>> Here is what I have in the procmailrc file so what am I doing wrong?
>>>>>
>>>>> # .procmailrc
>>>>> # routes incoming mail to appropriate mailboxes
>>>>> PATH=/usr/bin:/usr/local/bin
>>>>> MAILDIR=/var/mail/$USER/
>>>>> Default=/var/mail/$USER/new/
>>>> DEFAULT should be /var/mail/$USER/
>>>>
>>>> Assuming procmail follows .procmailrc...
>>> Since .procmailrc states:
>>>
>>> # Messages that fall through all your procmail recipes are delivered
>>> # to your default INBOX. To find out yours, run 'procmail -v'
>>>
>>> I would assume that using /var/mail/$USER/ as default would assure mail
>>> never gets delivered to /var/mail/$USER/new/. What am I missing?
>>>
>> Knowledge of maildir? Setting DEFAULT to /var/mail/$user/new/ will make
>> procmail attempt to deliver to /var/mail/$user/new/new/
> 
> You're right. Knowledge of maildir! I forgot that mailboxes are created 
> on the fly, at least they are in my Alpine app.
> 

Well my excuse would be that I have not touched procmail in years (last 
version, patched 3.15 or something) and nor did I know that it created 
maildirs automatically. I do not use this resource sucking delivery agent.

I only pointed out that the recipe does not look like it would do what 
seemed to be intended by the MAILDIR variable. I am not about to start 
guessing whether there are correct permissions set or whatever when the 
OP could very well find that out from the logs.




More information about the ubuntu-users mailing list