procmail
[Top] [All Lists]

Re: over quota not bouncing with delivery via dmail via procmail via postfix

2001-05-04 10:10:28
Hi All,

I haven't had any bites on my question yet but I can't be the only one in this 
situation (of course, that doesn't mean anyone using a similar setup is on this 
list :).

Procmail, Postfix, UW IMAP (dmail), mbx and quotas are all common apps & format 
so any hints on how to get procmail to automagically bounce the email when over 
quota (on the file system) using dmail (used for mbx format) would be helpful 
and very much appreciated as I've checked all I know so far and read tons (but 
apparently not enough or the right stuff).  When not delivering through dmail 
the email bounces fine (wrong message though but apparently that is a postfix 
issue).
Thank you,

Clay Hicks


--------------- Original Message Follows ------------------
From: "Clay Hicks" <CodeMunch(_at_)webab(_dot_)com>
Date: Apr 26 2001 02:05 PM (Mountain Standard Time)
To: procmail-users(_at_)procmail(_dot_)org (Procmail Mailing List)
Subject: over quota not bouncing with delivery via dmail via procmail via 
postfix

Hi All,

O/S: Linux RedHat 6.2
MTA: Postfix release 20010228
MDA: Procmail 3.15.1
IMAP: UW IMAP-2000c + IMAP-utils (includes dmail)

users are in /home/HASH/HASH/username
or in /home/virtualhome/virtualdomain/HASH/HASH/username

I am using dmail from the UW IMAP-utils package to deliver to .mbx format 
INBOXes where the users have quotas on at the file system.

My Problem:
Procmail recognizes when users are over quota and writes an apropriate entry in 
the users procmail.log file but the message isn't bounced, it vanishes.  When I 
modify the .procmailrc to NOT deliver through dmail and send the message to 
".mail", procmail still recognizes the user's quota issue and logs it AND I get 
a bounce but the message is 
[SNIP]
<quotatest001(_at_)mydomain(_dot_)com>: can't create user output file
[/SNIP]
I've seen this error message when I searched the archives
and this post:
http://mailman.rwth-aachen.de/pipermail/procmail/2001-April/003859.html
recomends that I tweak my MTA (Postfix) to get the proper error message, but 
the mail isn't even bouncing to begin with when delivering through dmail.

[SNIP of procmail.log]
From me(_at_)mydomain(_dot_)com  Thu Apr 26 19:21:58 2001
 Subject: quotabuster test
  Folder: /usr/sbin/dmail +INBOX; \ echo "" >> newmail                  3849998
Message append failed: Disk quota exceeded
message delivery failed to /home/N/O/quotatest001/INBOX
[/SNIP]

Typical barebones .procmailrc:
[SNIP]
#Premliminaries
SHELL=/bin/sh
LOGFILE=${HOME}/procmail.log
Log = "--- For ${LOGNAME} "

#-- default delivery via dmail to INBOX --#
:0
|/usr/sbin/dmail +INBOX; \
echo "" >> newmail
[/SNIP]

My question:
How do I get procmail to bounce the message?  How do I get it to bounce the 
correct message (requires me tweaking my MTA as far as I know) ;) ?

For a user under quota the INBOX append is successful and the maillog entry 
looks like this (made by dmail it seems):

***dmail maillog entry for under quota***
Apr 25 21:30:44 mailsrvr dmail[26093]: delivering to quotatest001+INBOX
Apr 25 21:30:44 mailsrvr dmail[26093]: Verifying safe delivery to 
/home/N/O/quotatest001/INBOX
Apr 25 21:30:44 mailsrvr dmail[26093]: mbx appending to #driver.mbx/INBOX (file 
/home/N/O/quotatest001/INBOX)
Apr 25 21:30:44 mailsrvr dmail[26093]: delivered to /home/N/O/quotatest001/INBOX
Apr 25 21:30:44 mailsrvr dmail[26093]: Verifying safe delivery to 
/home/N/O/quotatest001/INBOX
***

When the user is over quota dmail does make a log entry in the /var/log/maillog 
file but the mail is NOT bounced as I would like BUT procmail does make an 
entry in the user's procmail.log file (see above):

***dmail maillog entry for over quota***
Apr 25 17:37:24 mailsrvr dmail[15306]: delivering to quotatest001+INBOX
Apr 25 17:37:24 mailsrvr dmail[15306]: Verifying safe delivery to 
/home/N/O/quotatest001/INBOX
Apr 25 17:37:24 mailsrvr dmail[15306]: mbx appending to #driver.mbx/INBOX (file 
/home/N/O/quotatest001/INBOX)
Apr 25 17:37:24 mailsrvr dmail[15306]: Message append failed: Disk quota 
exceeded
Apr 25 17:37:24 mailsrvr dmail[15306]: message delivery failed to 
/home/N/O/quotatest001/INBOX
***

***postfix maillog entry when it gets bounced while trying to append to .mail 
and NOT through dmail to INBOX***
Apr 25 20:00:05 mailsrvr postfix/local[21828]: 2FA2512F20: 
to=<quotatest001(_at_)mydomain(_dot_)com>, relay=local, delay=7, status=bounced 
(can't create user output file)
***

I have searched the archives and numerous FAQ's and pages relating to postfix, 
procmail & IMAP but I have not found anything definitive to solve my problem.  
If anyone has a similar setup or knows how to reach my ends (bouncing mail with 
dmail and correct error message) I would be very appreciative.  

Thank you,

Clay Hicks



<<  Powered by http://www.norada.com  >>
_______________________________________________
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>