# Smtp

**URL:** <https://forum.infinityfree.com/t/smtp/112198>\
**Category:** Hosting Support\
**Created:** [June 24, 2025, 2:53pm UTC](https://forum.infinityfree.com/t/smtp/112198 "2025-06-24T14:53:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamzadev](https://forum.infinityfree.com/letter_avatar/hamzadev/32/6_449c533f586939b6e5f246632a46421f.png) [@Hamzadev](https://forum.infinityfree.com/u/Hamzadev)\
**Post date:** [June 24, 2025, 2:53pm UTC](https://forum.infinityfree.com/t/smtp/112198/1 "2025-06-24T14:53:03Z")

</div>

My site is blocked smtp

[arabx10.kesug.com](http://arabx10.kesug.com/)

> The following From address failed: Failed to send mail  
> {virfy@arabx10.kesug.com: MAIL FROM command failed, Envelope FROM  
> .‘virfy@arabx10.kesug.com email address not allowed  
> ,553, SMTP server error: MAIL FROM command failed Detail: Envelope FROM ‘notreply@gmail.com’ email address not allowed.  
> SMTP code: 553 SMTP server error: MAIL FROM command failed Detail: Envelope FROM ‘virfy@arabx10.kesug.com’ email address not allowed.  
> SMTP code: 553

i used Elastic Email  
my code  
try {  
// SMTP  
$mail-\>isSMTP();  
$mail-\>Host = ‘[smtp.elasticemail.com](http://smtp.elasticemail.com)’;  
$mail-\>SMTPAuth = true;  
$mail-\>Username = ‘virfy@arabx10.kesug.com’;  
$mail-\>Password = ‘xxxx’;  
$mail-\>SMTPSecure = ‘tls’;  
$mail-\>Port = 2525;

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [June 24, 2025, 2:54pm UTC](https://forum.infinityfree.com/t/smtp/112198/2 "2025-06-24T14:54:38Z")

</div>

Do read

> [@How to send email with Gmail SMTP](https://forum.infinityfree.com/t/how-to-send-email-with-gmail-smtp/49239/1):
>
> Outgoing email with PHP mail() is heavily restricted on InfinityFree. Fortunately, you can still whatever email you want using an external email service. There are many external email providers to choose from. InfinityFree doesn’t restrict sending email with external providers. Almost all of them have paid plans, but some have free tiers too. Most of them support sending email over SMTP, some of them have custom APIs, libraries and plugins which you can use too. A simple way to get started qui…

---

<div class="post-metadata">

**Author:** ![Hamzadev](https://forum.infinityfree.com/letter_avatar/hamzadev/32/6_449c533f586939b6e5f246632a46421f.png) [@Hamzadev](https://forum.infinityfree.com/u/Hamzadev)\
**Post date:** [June 24, 2025, 3:01pm UTC](https://forum.infinityfree.com/t/smtp/112198/3 "2025-06-24T15:01:29Z")

</div>

Didn’t solve my problem

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [June 24, 2025, 3:02pm UTC](https://forum.infinityfree.com/t/smtp/112198/4 "2025-06-24T15:02:25Z")

</div>

> [@Hamzadev](#):
>
> [virfy@arabx10.kesug.com](mailto:virfy@arabx10.kesug.com) email address not allowed

This did not look like a valid email

> [@Hamzadev](#):
>
> [notreply@gmail.com](mailto:notreply@gmail.com)’ email address not allowed

Are you sure you own this email as well?

You are better off getting support from Elastic email

---

<div class="post-metadata">

**Author:** ![Hamzadev](https://forum.infinityfree.com/letter_avatar/hamzadev/32/6_449c533f586939b6e5f246632a46421f.png) [@Hamzadev](https://forum.infinityfree.com/u/Hamzadev)\
**Post date:** [June 24, 2025, 3:03pm UTC](https://forum.infinityfree.com/t/smtp/112198/5 "2025-06-24T15:03:09Z")

</div>

OK, thank you

---

<div class="post-metadata">

**Author:** ![wasik405](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wasik405/32/55080_2.png) [@wasik405](https://forum.infinityfree.com/u/wasik405)\
**Post date:** [June 24, 2025, 3:05pm UTC](https://forum.infinityfree.com/t/smtp/112198/6 "2025-06-24T15:05:43Z")

</div>

> [@Hamzadev](#):
>
> $mail-\>Port = 2525;

Take note of this too:

> [@How can I fix emailing issue?](https://forum.infinityfree.com/t/how-can-i-fix-emailing-issue/88291/2):
>
> Please make sure to use port 587 (with STARTTLS authentication). Most SMTP services support port 587, and other ports (25, 465, 2525, etc.) are blocked on our servers.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [June 24, 2025, 3:33pm UTC](https://forum.infinityfree.com/t/smtp/112198/7 "2025-06-24T15:33:34Z")

</div>

Maybe port 2525 works, I haven’t actually tested. I would still recommend to use port 587 because I am sure that it works, but if it’s not giving you issues, then all is fine.

As for the issue itself, the error is returned by Elastic Email, so I’m guessing that it’s a configuration problem with what they need on their end. My first guess would be to check the allowed sender domains in Elastic Email and make sure that the domain [arabx10.kesug.com](http://arabx10.kesug.com) is setup and verified there as a sender domain.

All transactional email providers I know require you to link and configure your domain name to send email from it. So sending email from [noreply@gmail.com](mailto:noreply@gmail.com) is definitely not allowed because you don’t represent [gmail.com](http://gmail.com) (and neither does Elastic Email, which would cause problems for them too).

---

<div class="post-metadata">

**Author:** ![Hamzadev](https://forum.infinityfree.com/letter_avatar/hamzadev/32/6_449c533f586939b6e5f246632a46421f.png) [@Hamzadev](https://forum.infinityfree.com/u/Hamzadev)\
**Post date:** [June 24, 2025, 4:10pm UTC](https://forum.infinityfree.com/t/smtp/112198/8 "2025-06-24T16:10:10Z")

</div>

I changed the port to 587 and it worked for me. Thanks for the help.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 1, 2025, 4:10pm UTC](https://forum.infinityfree.com/t/smtp/112198/9 "2025-07-01T16:10:20Z")

</div>

Closed on July 1, 2025, 4:10pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
