# SMTP Error: 454 4.7.1

**URL:** <https://discourse.cakephp.org/t/smtp-error-454-4-7-1/12650>\
**Category:** Need Help\
**Created:** [July 21, 2025, 1:47pm UTC](https://discourse.cakephp.org/t/smtp-error-454-4-7-1/12650 "2025-07-21T13:47:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaus](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/klaus/32/269_2.png) [@Klaus](https://discourse.cakephp.org/u/Klaus)\
**Post date:** [July 21, 2025, 1:47pm UTC](https://discourse.cakephp.org/t/smtp-error-454-4-7-1/12650/1 "2025-07-21T13:47:59Z")

</div>

Hi,  
could someone please help out?  
My cake 4.5.3 application is delivering mails.  
Some addresses are processed but some are not delivered and I have no glew why.  
In the error-log I see a SmtpTransport problem.  
The function \_smtpSend in SmtpTransport.php is a bit complicated, I’m not sure what it is checking.

2025-07-11 13:51:24 error: Number Receivers:1  
2025-07-11 13:51:24 error: Number Receivers:1  
2025-07-11 13:51:24 error: Mail-to: _ **a correct mail address** _  
2025-07-11 13:51:28 error: [Cake\Network\Exception\SocketException] SMTP Error: 454 4.7.1 \<_ **a correct mailaddress** _\>: Relay access denied in /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Mailer/Transport/SmtpTransport.php on line 632  
Stack Trace:

- /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Mailer/Transport/SmtpTransport.php:532
- /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Mailer/Transport/SmtpTransport.php:206
- /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Mailer/Mailer.php:407
- /var/www/web489/html/latotal/src/Controller/Component/controllerComponent.php:228
- /var/www/web489/html/latotal/src/Controller/RepairsController.php:605
- /var/www/web489/html/latotal/src/Controller/RepairsController.php:770

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [July 21, 2025, 2:06pm UTC](https://discourse.cakephp.org/t/smtp-error-454-4-7-1/12650/2 "2025-07-21T14:06:19Z")

</div>

This is probably not a code issue on your part, but something about the configuration of the mail server you’re connecting to. Perhaps direct settings, or things like SPF or DKIM.

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [July 21, 2025, 5:17pm UTC](https://discourse.cakephp.org/t/smtp-error-454-4-7-1/12650/3 "2025-07-21T17:17:23Z")

</div>

> [@Klaus](#):
>
> Relay access denied

if you google that you will find many places where it explains what is going on.

This is NOT a CakePHP issue.

---

<div class="post-metadata">

**Author:** ![Klaus](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/klaus/32/269_2.png) [@Klaus](https://discourse.cakephp.org/u/Klaus)\
**Post date:** [July 22, 2025, 12:00pm UTC](https://discourse.cakephp.org/t/smtp-error-454-4-7-1/12650/4 "2025-07-22T12:00:26Z")

</div>

Hi all,  
I have made tests with different MailTransport - Configs. It is now working, but I don’t know the reason. Maybe the used mail-box owner has restrictions. The provider support went not into the depth, or I had to pay. Anyhow thanks for confirming, it’s not a cake problem.
