Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tcetin's avatar

Expected response code 250 but got code "550", with message "550 5.7.1 Client does not have permissions to send as this sender "

Hi everyone.

I am trying to send email with using relay mail server with smtp method in laravel 5, but I am getting this error:

Laravel 5 Swift_TransportException “550 5.7.1 Client does not have permissions to send as this sender

I'am hosting Centos server.When doing telnet in the server like this:

Connected to relay.*****. Escape character is '^]'. 220 MSEXCFE04.***** Microsoft ESMTP MAIL Service ready at Wed, 11 Jan 2017 14:11:25 +0300 mail from:test@***.com 503 5.5.2 Send hello first

After this doing HELO server sending mail.

But in laravel I am getting trouble with above error.

How can I fix this error?

Thanks

0 likes
3 replies
Ricus's avatar

Have you checked to ensure the @domain of the sending email is configured?

I've had a similar response when the email server was not configured to send from the @domain I was trying to send from

tcetin's avatar

Yes. When try HELO after 503 5.5.2 Send hello first it is sending mail successfully.Bu in laravel it doesnt work.

banejasika's avatar

@tcetin Did you solve this problem? Having the same problem on Microsoft server. On Linux server works like a charm.

Please or to participate in this conversation.