-2

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.

  • 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
3
telnet yuor.server.ip 25 

You should get something like

220 your.mail.server ESMTP
| improve this answer | |
  • indeed, 220 sub.domain.com 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
1

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

| improve this answer | |

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