Hello everyone,
Recently i’ve successfully integrated mailcow on my server using reverse proxy. I have another web application running on same server. The application was developed on Laravel from which i need to send some mail on user demand. But having problem setting up my smtp connection. (Note: I am using same domain for both of my mail server + web application). Here is my environment variables:
MAIL_DRIVER=smtp
MAIL_HOST=mail.myclearmargin.com
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
and here is my laravel code:
Mail::to(“alauddin088@gmail.com”)->send(new TestMail());
when i execute this code i got this error:
Expected response code 354 but got code “554”, with message “554 5.5.1 Error: no valid recipients ”
If i use other service like (sendgrid/mailtrap) the code is working perfectly. I wanna know why i am having this problem when i am using mailcow!