procmail
[Top] [All Lists]

/var/spool/mail, MailDir and quota

2001-04-17 00:08:52
Hi!

I have setup a Redhat 7 with the newest version of procmail. I use
sendmail as frontend.

I have a some problems with procmail and havn't been able to find any info
in the procmail-FAQ or anywahere else on the net - mayby because Maildir
is new to procmail.

In /etc/procmailrc I have:

 DEFAULT = $HOME/Maildir/

This works almost as expected - users normaly get mail in
$HOME/Maildir/new/.

But there is a few problems:

1) Even though mail is put into $HOME/Maildir/new, an empty file (or with
   50K users, 50K empty files) is created as /var/spool/mail/$LOGNAME

2) When inode disk quota exceeds, mails are delivered in
   /var/spool/mail/$LOGNAME with something like this in procmails log:

 procmail: Couldn't create or rename temp file 
"/home/priv/test/Maildir/tmp/_LLC,2Kb16.hostname"
 From root  Thu Apr 12 15:50:46 2001
   Folder: /var/spool/mail/test                                      389

   Do to this, the inode limit is exeeded, so procmail cheats a bit here!
   Normaly I guess thats "smart" - but when DEFAULT is something else, I
   don't think it's very smart to write the mail there. :-)

3) When block disk quota exceeds, mails are bounced with error:

    (reason: can't create (user) output file)
    550 5.0.0 <test>... Can't create output

   This is ofcause correct - But how will I be able to give a better error
   message? I could do script that will test quota before delivery, but
   disk might be filled between that point and the actual delevery.

   In procmail's log I get somethign like this:

 procmail: Quota exceeded while writing
"/home/priv/test/Maildir/tmp/_guD,XSb16.hostname"
 procmail: Quota exceeded while writing "/var/spool/mail/test"
 procmail: Truncated file to former size
 From root  Thu Apr 12 15:58:47 2001
   Folder: **Bounced**                                                634

All surgestions are wevy welcomme!

-- 

Best regards,

Martin Lorensen

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>