• 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?
0
nysus1
Asked:
nysus1
1 Solution
 
owensleftfootCommented:
You can use mutt to read them. "mutt -f /var/mail/www-data".
0
 
mkuuttiCommented:
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:
----clip----
# 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
----clip-------

remember to run "newaliases" command after editing file.




0
 
nysus1Author Commented:
mkuutti,

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

0

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