Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

A web applications sends two emails:

  1. to the user of the webapp
  2. to the administrator

the administrators mailbox (qmail) is on the same machine as the web application (php, apache, /usr/sbin/sendmail).

email 1 works, email 2 sometimes doesn't work. I don't see any pattern in the mails that don't work. Also because I don't exactly know WHICH emails failed (since the email itself would be the only notification).

email 2 looks like this:

from: <username@userdomain.tld> #changes for each user
to: <>

What could be the problem?

Are rejected emails stored somewhere? (if they are rejected.. how do I check this?)

share|improve this question

you have to look in the logs to see what's happening behind the scene...

  • for qmail-smtpd look into: /var/log/qmail/smtpd/current
  • for qmail look into: /var/log/qmail/current

that should guide you towards where do you need to take a look

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.