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,


  • "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, 2011 at 12:57

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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