Postfix: How to retrieve e-mail form www-data mailbox?

Posted on 2004-11-21
Last Modified: 2013-12-15
I'm running Debian Woody with Apache.  Some php scripts I use send out e-mails and bounced e-mails end up in a 'www-data' mailbox in the /var/mail directory with my other POP3 accounts.  What do I need to do to fetch these using my e-mail client?
Question by:nysus1
    LVL 17

    Expert Comment

    You can use mutt to read them. "mutt -f /var/mail/www-data".
    LVL 1

    Accepted Solution

    Good solution would be to forward mails to www-data to some "real" user. Www-data is a pseudo-account which is not supposed to have login-access.

    Edit your /etc/aliases file and add alias for www-data, add line in the beginning:
    # General redirections for pseudo accounts.
    bin:  root
    daemon:  root
    games:  root
    ingres:  root
    nobody: root
    system:  root
    toor:  root
    uucp:  root
    # addition for www-data
    www-data: your_username

    remember to run "newaliases" command after editing file.


    Author Comment


    Thanks,  that worked.  Now I have a follow-up question to that, though.  I want to do something more sophisticated.  If you have a chance, please see


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    754 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

    22 Experts available now in Live!

    Get 1:1 Help Now