I currently have a VPS server running Ubuntu. I have used this server for a while and have was using the built in mail function for PHP. Now for reason, emails are no longer sent. According to PHP, the mail sends correctly but now it does not. This issue occrus with both a standard PHP mail() function and SMTP. Again, it worked for a while; I did not change anything and I cannot figure out why it is not working now. I have looked around the Internet and found PostFix, however my VPS hosts multiple domains so PostFix is not an option. Is this something on my host's end thats not right or is their something wrong with my server? Thank you.
Asked
Active
Viewed 135 times
-1
-
Sending mail from command line works? – Elzo Valugi Jul 12 '15 at 19:28
-
@ElzoValugi I do not know. I have never tried that. I will look into it and get back to you. – Stephen Cioffi Jul 12 '15 at 19:30
-
If it works then is something inside php or your script. – Elzo Valugi Jul 12 '15 at 20:03
-
@ElzoValugi I tried sending the email via a command line and that did not work. – Stephen Cioffi Jul 12 '15 at 20:15
-
Do you get any errors? – Elzo Valugi Jul 12 '15 at 20:16
-
@ElzoValugi No, no errors. According to PHP everything is normal. – Stephen Cioffi Jul 12 '15 at 20:26
-
This does not seem like a PHP issue. Check the /var/log/mail.log for errors – Elzo Valugi Jul 12 '15 at 20:28
-
see http://serverfault.com/questions/59602/where-to-check-log-of-sendmail – Elzo Valugi Jul 12 '15 at 20:29
-
@ElzoValugi Ok so I checked my log and did find something interesting. Every address, whether to my domain mail, gmail, or phone carrier all come up with similar errors. Here is an example (with my email omitted): Jul 12 16:26:58 server1 postfix/smtp[11784]: ED1932A820CB: to=
, relay=none, delay=6.8, delays=0.62/0/6.2/0, dsn=4.4.1, status=deferred (connect to mx2.zoho.com[165.254.168.50]:25: No route to host) – Stephen Cioffi Jul 12 '15 at 20:31 -
I should add that zoho.com was only the email host I use for my domain; emails are not sending to other hosts either. – Stephen Cioffi Jul 12 '15 at 20:33
-
1Your service provider is blocking outgoing email from your server. Contact them for assistance. – Michael Hampton Jul 12 '15 at 20:35
-
@MichaelHampton By service provider, you mean my VPS company correct? – Stephen Cioffi Jul 12 '15 at 20:36
-
1That's right, whoever provides the VPS service to you. – Michael Hampton Jul 12 '15 at 20:37
-
1Thank you MichaelHampton and ElzoValugi. I will contact my hosting provider and hopefully I can get this resolved. Thank you both for your help. – Stephen Cioffi Jul 12 '15 at 20:38
-
1I had same problem than i tried this page solution and it was worked for me. http://serverfault.com/questions/119105/setup-ubuntu-server-to-send-mail you can also try this. – Nisarg Patel Oct 23 '15 at 06:20
1 Answers
0
Thank you all for your suggestions, it appears that their is an issue with my host. Unfortunately, it has been a few weeks since I reported the problem to them and they have not fixed it yet :(
Stephen Cioffi
- 817
- 1
- 7
- 8