Skip to main content

Joomla SMTP e-mail failing

Comments

16 comments

  • cPRex Jurassic Moderator
    Hey there! One test you could perform, if your cPanel server has shell access, would be to try and manually connect to that external resource with telnet. You would just run this command to test the connection: telnet x.x.x.x ##
    where "x.x.x.x" is the remote IP address or domain name of your SMTP server, and "##" is the port number of the connection, which is usually 25 or 587 or something like that. Can you try that to see if that gets you more details? If that fails directly with telnet, something is blocking the connection on the server or the provider's network.
    0
  • leccyblue
    Ahh, never even thought about shell access. I've SSH'd in however it says shell access is disabled and if we want it to contact support. I'll put in a request, thanks for this direction - a great suggestion!
    0
  • leccyblue
    I have SSH access now but unfortunately telnet isn't installed! And I have no admin rights on the server to install it. If I try to ping the mail host it tells me icmp open socket: operation not permitted. So if they are blocking ICMP I suspect they are also blocking SMTP
    0
  • cPRex Jurassic Moderator
    Many servers block ICMP, so that in itself doesn't worry me too much, but it seems the tools are limited on that system for additional troubleshooting. For more details it would be best to speak with the hosting provider directly to see if they have additional limits on the SMTP service.
    0
  • leccyblue
    Thanks cPRex, I appreciate your response. I've been in contact with Heart Internet about this issue since Wednesday, and I'm pulling my hair out, I don't think they have the technical skills to even understand what I am saying. They've tried to fob me off with all sorts of solutions including changing my DNS records to point mail at them (??!!), blaming Joomla, blaming my mail host, saying I need to enable "access for less secure apps" which from my research appears to be a GMail setting - we don't use Gmail! I am able to get e-mail to work in Joomla using Sendmail however clearly that then routes the message via their own mail flow infrastructure and the emails land in spam because they don't pass the SPF test. I don't really want to include their SMTP servers in our SPF because clearly they are shared by all of their customers and there's nothing to stop anyone spinning up a hosting account with them and start sending mails purporting to be from our domain. I've made the mistake of telling them Sendmail works and now they are trying to close the ticket saying "if sendmail works then this proves that we're not blocking communications between your server and your smtp host", even though I'd already told them that the mails then arrive from their SMTP servers (n1nlsmtp01/02/03.shr.prod.ams1.secureserver.net in my testing) and not directly from my shared cPanel server. I want to go live with this site next week but can't until I have SMTP working!
    0
  • cPRex Jurassic Moderator
    I'm sorry they aren't being more helpful! It does seem that there is something outside of your immediate configuration that is resulting in this behavior though.
    0
  • leccyblue
    I'm sorry they aren't being more helpful! It does seem that there is something outside of your immediate configuration that is resulting in this behavior though.

    Thank you. Yeah, absolutely, I've spun up a brand new Joomla instance and it does exactly the same. I think quite simply they have disabled outbound SMTP from their cPanel servers. Quite rightly really, given how easy it would be for someone to spin up an account with them and start sending out mass mail. But you'd think they'd have knowledge of this, be able to understand what is a relatively basic technical question, and have the ability to create a rule to allow SMTP outbound to specified hosts. What an absolute shambles!
    0
  • cPRex Jurassic Moderator
    For sure - we have an article here with known providers that make this change:
    0
  • leccyblue
    For sure - we have an article here with known providers that make this change:
    0
  • tangent-webmaster
    Hi Leccyblue, Have you sorted this out? I have the same issue on CPanel Shared Host. We don't use CPanel email, we use 365office email. Email not working if sender email is same as site's domain. WORKED for the rest. It's been days looking up for solution still no luck. Thanks, Tangent
    0
  • cPRex Jurassic Moderator
    @tangent-webmaster - I would check and make sure cPanel >> Email Routing is set to "Remote" if you don't want the messages to be delivered locally.
    0
  • tangent-webmaster
    @cPRex yes double checked "Remote" is already ticked. What else can be done to make it work? Our website is based Joomla. I used Send Test Mail under Global Configuration > Server > Mail Settings, 1. selected Mailer > PHP Mail => Failed if From email is email@mydomain.com => Success if From email is email@workemail.com 2. selected Mailer > SMTP => Failed could not connect via SMTP 3. selected Mailer > Sendmail => Failed
    0
  • tangent-webmaster
    @cPRex ...Can you please see screenshot is the error of email failed to send out? We don't use CPanel email, we use 365office email. "Remote Mail Exchanger" is selected in cPanel > Email Routing Any help is appreciated
    0
  • cPRex Jurassic Moderator
    Let's try removing Joomly or PHP from the equation at all. If you setup this email address in a mail client like Thunderbird, does the message send there?
    0
  • tangent-webmaster
    Let's try removing Joomly or PHP from the equation at all.

    Sorry I don't get what you meant.
    If you setup this email address in a mail client like Thunderbird, does the message send there?

    I don't have Thunderbird. I have use Apple Mail, no message / email receives.
    0
  • cPRex Jurassic Moderator
    Thanks for doing that test, and I think "Joomly" was a pretty great typo on my part :D If the mail isn't working through a mail client either that would indicate the problem isn't in Joomla but with the mail in general. I'd recommend checking the ports on the mail server to ensure they are open. What error did you get in the mail client when trying to send a message?
    0

Please sign in to leave a comment.