Custom returned error messages

Posted on 2005-04-14
Last Modified: 2013-12-17
I have quotas setup and I verified that they are working correctly by sending a message to a user account with an attachment that is larger then the quota. The email was bounced back with the following message.

  ----- The following addresses had permanent fatal errors -----
    (reason: Can't create output)

   ----- Transcript of session follows -----
procmail: Couldn't chdir to "/home/test"
procmail: Lock failure on "./mailbox.lock"
procmail: Error while writing to "./mailbox"
procmail: Quota exceeded while writing "/var/spool/mail/tet"

Is there any way to clean up the message so that it says "Users mailbox is full."
I am also curious on how to edit other messages that sendmail could return to the sender.
    LVL 34

    Expert Comment

    What VERSION of sendmail?

    Also, note that the error here is really from Procmail, not sendmail.
    LVL 2

    Author Comment

    version 8.13.4
    I do realize that the message is from procmail.
    LVL 34

    Accepted Solution

    Congrats on keeping current on your versions of sendmail.

    The issue I see is that sendmail is not going to really "understand" that there's a problem in a way sufficient for it to generate a really meaningful error message. Best thing I could image it being able to do is generate something like "451 4.3.2 Try again later" or something like that. All sendmail really knows is that delivery to a program failed, it doesn't understand that the disk quota was an underlying cause.

    At least, that's what it seems to me. Mebbe jlevie will have a different take, but I'm not sure how to get sendmail to perceive a root cause in this situation.

    Featured Post

    Why do Marketing keep bothering you?

    Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

    Join & Write a Comment

    Suggested Solutions

    Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
    In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now