Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to see if a php application has sent a bulk mailing. Would these messages be logged? How could I tell whether logging is enabled / how would I set it up

The VPS is running debian.

Any help greatfully received as this is not my area really.

Many Thanks,


share|improve this question
"Running Debian" isn't nearly enough information for any but the most general of answers. What MTS is installed? Notice that your question is missing a "qmail", "postfix", "exim", or "sendmail" tag. – JdeBP Jul 5 '11 at 12:57
up vote 3 down vote accepted

Normally, your Mail Transfer Agent will log the outgoing messages. Exim uses log files in /var/log/exim4. Log messages from other MTAs may end up in /var/log/mail.log. This assumes you are using a local MTA to do the delivery for you.

Running the command mailq as root may show a bunch of messages pending delivery. These may include some from the bulk delivery.

If the software does direct delivery, bypassing your MTA then you will need to see if the application has its own log file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.