# كيفية إعداد SMTP لاستخدام localhost؟

**URL:** <https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464>\
**Category:** Product Support\
**Created:** [20 أكتوبر 2019، 5:02ص UTC](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464 "2019-10-20T05:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mreach](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@mreach](https://meta.discourse.org/u/mreach)\
**Post date:** [20 أكتوبر 2019، 5:02ص UTC](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464/1 "2019-10-20T05:02:37Z")

</div>

لقد قمت بتكوين `postfix` للعمل على مضيف Docker المحلي بحيث يعمل الاختبار عبر `swaks --to destination@domain.tld --from admin@hostdomain.tld --server localhost -tls` كما هو متوقع. يستخدم المنفذ 25 ويرسل البريد الإلكتروني دون أي مشكلة على الإطلاق.

لذا فإن السؤال المطروح هو: كيف أقوم بإعداد خيارات SMTP في ملف app.yml بشكل مناسب لاستخدام localhost لتسليم البريد؟

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464)._
