• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Plesk Does NOT send email

silver

Basic Pleskian
Hello, there is a problem that I encountered. I have a server that plesk is installed there, I'm able to send email through webmail.mydomain.com but I m not able to send email via Laravel application.
it show me no error but no email is sent ! I used several configs but nothing happen

MAIL_DRIVER=smtp
MAIL_HOST=londonentrepreneursnetwork.com
MAIL_PORT=25
[email protected]
MAIL_PASSWORD=somePass
MAIL_ENCRYPTION=null

I set 58, 465 ports with tls/ssl encryption too ... but they gave me error !
Connection could not be established with host londonentrepreneursnetwork.com [Connection timed out #110]

By the way ... I use Cloudflare too ... and set DNS setting, Thanks for helping me in advance.
 
Don't worry, your Plesk server seems to be fine, this looks like a configuration issue in Laravel.

The MX record of londonentrepreneursnetwork.com points to mail.londonentrepreneursnetwork.com and that points to IP 159.65.87.102. The londonentrepreneursnetwork.com itself points to 104.27.165.23.

I get no SMTP response from londonentrepreneursnetwork.com but I do from mail.londonentrepreneursnetwork.com, so my first guess would be that your MAIL_HOST needs to be mail.londonentrepreneursnetwork.com and not londonentrepreneursnetwork.com.
 
In plesk DNS configuration, mx was pointed to mail.londonentrepreneursnetwork.com and I set these values in cloudflare.

record type: mx, name: londonentrepreneursnetwork.com, server: mail.londonentrepreneursnetwork.com , priority :1

also I change to mail.londonentrepreneursnetwork.com in Laravel configuration, still does not send email and I get no error too ... !
 
I suggest ruling out SMTP issues first and leaving Laravel for later, unless you have debugging set up and can get clear SMTP input and output. Perhaps you could use a regular mail client such as Thunderbird first, with the same SMTP settings as you're attempting to use in Laravel, and see if you can send mail.

So, the incoming and outgoing mail server would be mail.londonentrepreneursnetwork.com, username [email protected] and password as you've set it when the email account was created. Try regular connections first, without TLS/SSL...
 
Back
Top