I am setting up a server that needs to be able to send email from my email account that I have through my hosting provider "JustHost". I have been trying to get it to work with internet and smarthost options but I never get the email. I am trying to send the email from php but don't get any errors nor email sent. I have tried following several tutorials and can not figure it out. Basically what I want is for my server to send email from my hosting provider email account lets say hello@testing.com

I know the SMTP servers would be mail.testing.com I don't need to receive mail only send it. I had seen in a tutorial where they talked about ISP's block port 25 so when I try to connect to my JustHost account with telnet using the ip address of the JustHost server it never goes through on port 25 but on port 465 it is able to connect. I am not sure if this could be my problem. I see when I try to send mail from the command line in verbose mode it says retry time not reached for any host Can someone please provide me with some insight on setup or what I might be doing wrong? Thanks

closed as off-topic by Jenny D, mdpc, Journeyman Geek, Falcon Momot, Ward Feb 27 '14 at 21:28

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – mdpc, Falcon Momot, Ward
  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Jenny D, Journeyman Geek
If this question can be reworded to fit the rules in the help center, please edit the question.

  • It would appear that your ISP is indeed blocking port 25, so the obvious solution would be to use whatever other port JustHost allow. The most common one would be 587; I'm sure that the support staff at JustHost can help you. – Jenny D Feb 25 '14 at 9:06
  • (Also, if you're going to use a fake domain name, the one to use is example.com. Don't use any random domain that may belong to someone else, as testing.com does.) – Jenny D Feb 25 '14 at 9:08

If I understand well, you want this server to connect to the SMTP and send an email which is hosted with JustHost via PHP.

You will have to authenticate via PHP first, then send the email on the specific port they provide (Secure SMTP or non secure SMTP).

If we check at the web page of the thunderbird, they provide the basic informations to set up:

https://my.justhost.com/cgi/help/608 Here they use the Port 25 (non encrypted).

You could try to send an email via with the code I found on this website and which include SMTP authentication step (but you can find any other php scripts):


Let me know if that helps or provide us more information on what you want to do. If you need more information, try to run the script via CLI with the php-cli tools.

  • I had to use another comment to add another link :| Also I found this topic in case your emails are sent with the wrong "From:": my.justhost.com/cgi/help/206 – Neocid Feb 23 '14 at 23:16

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