'Titan SMTP mail configuration failed PHP/Laravel

I have a problem with SMTP sending mail on the hosting website in Titan; I get this response.

Expected response code 250 but got code "553", with message "553 5.7.1 [email protected]: Sender address rejected: not owned by user [email protected]

.env

APP_NAME=MMCollection
MAIL_MAILER=smtp
MAIL_HOST=smtp.titan.email
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=password
MAIL_ENCRYPTION=TLS
MAIL_FROM_NAME="${APP_NAME}"

In addition, I checked the username and the password, and they are valid. Also, I've changed the encryption to SSL/TLS and changed the port to 465 and 587, but it's not working.



Solution 1:[1]

I solved my problem by changing the port and adding the from address (with quotes).

MAIL_MAILER=smtp
MAIL_HOST=smtp.titan.email
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=yourpassword
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

Solution 2:[2]

Kindly use a different port combination: (465,SSL)/(587,STARTTLS)/(25,None)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eric Aya
Solution 2 Arfat Mughal