• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1265
  • Last Modified:

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

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?
1 Solution
You can use mutt to read them. "mutt -f /var/mail/www-data".
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.

nysus1Author Commented:

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 http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_21216265.html


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now