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

I would like to be able to check if my server is sending out emails even whilst PHP's validation is returning true.

I am unsure if my server is currently sending out emails.

How can one test to make sure that an email has indeed been sent out from the server?

Are there any ways to check if the email has been sent, I don't need to check if it has been received but just sent.

share|improve this question

closed as not a real question by mdpc, voretaq7 Nov 27 '12 at 20:52

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you asking about sending mail or receiving mail? The title and the body of your question seem to disagree with each other. In both cases, the answer would be to look in your mail logs. Have you done that yet? If you have, please add it to your question. – Ladadadada Nov 27 '12 at 19:03
Ubuntu 6? Really? Time to upgrade. OSes aren't Twinkies. They're not meant to survive a nuclear apocalypse, or a decade on the shelf. – HopelessN00b Nov 27 '12 at 19:15
@HopelessN00b heh, indeed but i'm sticking with if it an't broken don't fix it – Jamie Hutber Nov 27 '12 at 19:21
@Ladadadada updated the question as you're right, it was poorly written. I haven't checked the logs. Not sure where i would find the mail logs? – Jamie Hutber Nov 27 '12 at 19:22
In recent versions of Ubuntu, the logs for both sending and receiving are in /var/log/mail.log. This is probably true for ancient versions as well. Certainly in /var/log/. – Ladadadada Nov 27 '12 at 19:28
up vote 3 down vote accepted
telnet yuor.server.ip 25 

You should get something like

220 your.mail.server ESMTP
share|improve this answer
indeed, 220 ESMTP, i assume this means my mail server is running as expected? – Jamie Hutber Nov 27 '12 at 19:21
You should check the logs to be sure. Even if it works as expected it could be blacklisted. – Laurentiu Roescu Nov 27 '12 at 19:34
This is about whether you server can receive mail or not. As per your updated question, it's not really relevant. – Ladadadada Nov 27 '12 at 22:20

Check blacklists, check logs. The logs in /var/log/mail.log should tell you whats going on.

share|improve this answer

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