/var/mail/root accumulates with forwarded messages

Discussion in 'Installation/Configuration' started by ronee, Sep 21, 2009.

  1. ronee

    ronee HowtoForge Supporter

    Running ispconfig 2.2.32 on CentOS 4.7 on several systems. On one only it seems that /var/mail/root accumulates with copies of messages that hit user mailboxes that have forwarding configured. The file grows until it is too large to be further written to at which point messages to users that have configured forwarding start bouncing with NDRs like this:



    This is the Postfix program at host host.domain.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The Postfix program

    <root@host.domain> (expanded from <original-recipient@domain>):
    cannot access mailbox /var/mail/root for user root. error writing message:
    File too large

    Final-Recipient: rfc822; root@host.domain
    Original-Recipient: rfc822; original-recipient@domain
    Action: failed
    Status: 5.0.0
    Diagnostic-Code: X-Postfix; cannot access mailbox /var/mail/root for user root.
    error writing message: File too large
     
  2. till

    till Super Moderator

    Which messages appear in the mail log when a email gets redirected to root?
     
  3. ronee

    ronee HowtoForge Supporter

    not sure how that matters -- I haven't tried forwarding any user email addresses to root... have no need to do that and haven't done that

    point is that I have a user user@domain.com who has a forwarding address configured with a copy of all his mail also going to user2@domain.com, watching the logs and examining /var/mail/root it is evident that root is getting a copy of all his mail, the file /var/mail/root endlessly grows with this traffic until it is too large too be written to at which point the forwarding fails and the NDRs start happening

    odd as I have forwarding on other systems where this is not happening, the system is configured for maildir in case that matters
     

Share This Page