Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com

WHMCS SMTP problem.. Need some help.
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

WHMCS SMTP problem.. Need some help.

So basically, i have installed whmcs, the whmcs portal is hosted on a turnkeyinternet account, for my emails i use mxroute, and the domain with whmcs portal and all the website in fact are under cloudflare firewall. I have used all the damn tutorials, to send emails with phpmail, with smtp from mxroute, gmail, and native smtp.. i don't get any damn mail. And in all Activity logs i get this damn error..

Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I don't know what to do anymore.. to send this damn emails.. maybe you guys can tell me something i don't do well.

Digital Web Agency - We offer web design services

Comments

  • AlexBarakovAlexBarakov Member, Provider

    I will tag our mail expert in here @Jarland , And on the other side, you should probably share with us what settings you're using on your WHMCS in terms of ports and etc.

    AlphaVPS - Cheap VPS out of London, UK | Sofia, BG | Nuremberg, DE | NYC, US and LA, US. Cheap Dedicated servers with fast delivery!

  • jarjar Provider

    Sounds like SMTP outbound may be blocked on server. Do telnet test from server. If that fails and your firewall is open, ask provider to unblock SMTP.

    MagicSpam blackmails providers into buying their software, and ServerHub is a professional spam organization.

  • AlexBarakov said: And on the other side, you should probably share with us what settings you're using on your WHMCS in terms of ports and etc.

    Man, for smtp ports i use the usual ones.. 25 for non-ssl/non-tls.. 465 for ssl, 587 for tls.. what to say more.. i have tried even to send this emails with google smtp also.. nothing happen'd.

    Digital Web Agency - We offer web design services

  • Have you contacted the host to see if port 25 outbound is blocked?

  • on the server i host whmcs, the port 25 is open. but i am trying to sent messages with mxroute.. for exemple ..

    Digital Web Agency - We offer web design services

  • @Catalin - what everyone has been saying/implying is:

    Please run the following command and see if you get successfully connected:

    telnet smtp.gmail.com 25

    I don't know if you have "special" MX settings but I just quickly did a dig mxroute.com MX and got ocean.mxroute.com as one host. So please also try telnet ocean.mxroute.com 25 and see if you can connect.

    You can also try with ports 465 and 587 to see what ports (outward) are allowed by your hosting provider.

    Hopefully this'll help.

  • ExonHostExonHost Member, Provider

    Seems smtp block is enabled on server end. Contact with your hosting provider.

    ExonHost - Reliable Web Hosting Service Provider | Managed SSD Xen VPS | OpenVZ VPS
    ResellWays - Budget Shared Hosting & Reseller Hosting
  • MikeAMikeA Member, Provider
    edited February 2017

    Have you contacted WHMCS support? The PHP mailer has had issues in the past, pretty sure it has something to do if you have TLS or SSL settings enabled with an older version.

    Maybe try, if you're not already, using 8bit as encoding and SSL set to none to test with port 25. Otherwise if that doesn't work try contacting WHMCS directly, their support is good.

    ExtraVM - AMD Ryzen VPS starting @ $3.50
    USA (TX, VA, FL), CA, FR, UK, SGP, AU

  • i had tested another option.. not using nor ssl/tls, and using web hosting smtp.. on port 25, it works, but i cannot get emails on my gmail account. Most sure this is from my hosting. But i will move whmcs installation on a subdomain, on other server.. not the same as the main website. Hope will work. I was thinking that can mess all things cloudflare protection, because cloudflare dosn't have 25/465/587 ports open.. or i did not found anything about these ports beeing open.

    Digital Web Agency - We offer web design services

  • MikeAMikeA Member, Provider
    edited February 2017

    @Catalin said:
    i had tested another option.. not using nor ssl/tls, and using web hosting smtp.. on port 25, it works, but i cannot get emails on my gmail account. Most sure this is from my hosting. But i will move whmcs installation on a subdomain, on other server.. not the same as the main website. Hope will work. I was thinking that can mess all things cloudflare protection, because cloudflare dosn't have 25/465/587 ports open.. or i did not found anything about these ports beeing open.

    You shouldn't be trying to use the hostname that's behind CloudFlare for mail anyways. If it works on port 25 without SSL/TLS then check your mail log for errors why the mail was rejected from Gmail.

    ExtraVM - AMD Ryzen VPS starting @ $3.50
    USA (TX, VA, FL), CA, FR, UK, SGP, AU

  • IshaqIshaq Member, Provider

    @Catalin said: because cloudflare dosn't have 25/465/587 ports open.. or i did not found anything about these ports beeing open.

    CloudFlare is only ingress, your server won't connect outbound using it.

    [BudgetNode] DDoS Protected. 7 Locations (US/EU). Check out our latest offer!
  • cociucociu Member, Provider

    @Catalin , is your whmcs sending mails with php email function ? if is this maybe this features is disabled in the server.

  • IshaqIshaq Member, Provider

    What do you get when you add this to configuration.php

    $smtp_debug='true';

    [BudgetNode] DDoS Protected. 7 Locations (US/EU). Check out our latest offer!
  • I found the problem. The mailserver had smtp blocked for external use. So i moved whmcs to another server.. and now all things are better. Thanks guys for helping me. Thats why i like this community..

    Digital Web Agency - We offer web design services

  • I had same issue. I asked the company to whitelist the domain for SMTP and it's all good now :)

    ^-^!

Sign In or Register to comment.