skip to Main Content

I have setup a Website based on HTML with the exception of a contact.php page. I am hosting this website on my Rasberry Pi 3 computer on Debian flavor of linux Jesse Light. This is headless as it hosts my Portfolio website. I am using Apache2 webserver and installed sendmail as my Mail Transfer Agent (MTA). The problem is I have been spinning my wheels researching for the past week and I am stuck.

My issue is I send email from my php contact page on my live server but nothing ever arrives in my inbox after sending it. I get a mail sent message from my php script after about a minute after sending but then Nothing arrives in the inbox. I am thinking My SMTP on my php.ini is not correct. I put my website domain name FQ name. I am using Microsoft Exchange Online hosted email domain by GoDaddy. Also, anyone have any good advise on what my from / to should be set to on my SMTP configurations?

2

Answers


  1. Sounds like a direct reject to me.

    Some hints:

    • check the SMTP logs from your MS Exchange server (if a connection has been opened and potentially been refused for whatever reason)
    • check the PHP / Apache logs and see, whether an PHP fatal error or warning occured (mybad bad credentials or wrong port?)
    • I have had bad experiences with MS Exchange server and SMTP, make sure its proper setup.
    • check the credentials and settings from an independent client to see if they work flawless.

    Hope that helps. Otherwise please provide more details and log samples.

    Login or Signup to reply.
  2. Is your contact.php program hosted on the Godaddy server? If yes- It’s not possible to send mail through Godaddy shared hosting servers using your own SMTP settings. You can only send from Godaddy’s relay server when using a shared hosting plan. If you wanted to be able to send through your own SMTP servers, you’d need to be hosting with either a VPS or Dedicated Server plan.

    Check maillog on your server and you will get the smtp connection timeout errors.

    Let me know, in case the problem is something different- will try to address it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search