1

I'm trying to send mails on my ubuntu server (from gmail). I have the Starter Cloud package from Scaleway. I have installed sendmail on my ubuntu server with the following tutorial.

In my Laravel application I have the following configuration (mailtrap for testing):

MAIL_DRIVER=smtp
MAIL_PORT=2525
MAIL_HOST=smtp.mailtrap.io
MAIL_USERNAME=1f129791a7e29f
MAIL_FROM_NAME="My name"
MAIL_FROM_ADDRESS=myname@gmail.com
MAIL_PASSWORD=passwordmailtrap

But when I try to send the email I'm getting the following error:

enter image description here

What could be my problem here? Or should I follow this tutorial and install/configure postfix on my server? When I try this on my local environment (Homestead) this works without problems.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.