# Enable and configure Email notification in awx 20

**URL:** <https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 16, 2022, 4:49am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105 "2022-09-16T04:49:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahilan\_Swaminathan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ahilan_swaminathan/32/4425_2.png) [@Ahilan\_Swaminathan](https://forum.ansible.com/u/Ahilan_Swaminathan)\
**Post date:** [September 16, 2022, 4:49am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/1 "2022-09-16T04:49:52Z")

</div>

Hi Team

I enabled Email notification in awx console but when I tried to send test notification, it failed and found error “no route to host”. Please provide if any document to configure and enable the Email notification in awx 20 is much appreciated

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [September 16, 2022, 5:30pm UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/2 "2022-09-16T17:30:18Z")

</div>

You can exec into the task container with “kubectl exec -it deploy/awx -c awx-task – bash” and attempt to make a connection to your email server. If the connection fails there, then you’ll know this is an environment configuration issue (i.e. ports/routes, etc)

see [https://docs.ansible.com/automation-controller/latest/html/userguide/notifications.html#email](https://docs.ansible.com/automation-controller/latest/html/userguide/notifications.html#email) for more info

AWX Team

---

<div class="post-metadata">

**Author:** ![Ahilan\_Swaminathan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ahilan_swaminathan/32/4425_2.png) [@Ahilan\_Swaminathan](https://forum.ansible.com/u/Ahilan_Swaminathan)\
**Post date:** [September 22, 2022, 8:29am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/3 "2022-09-22T08:29:23Z")

</div>

Hi AWX Team

In awx-ee, awx-web and awx-task we don’t have mail client pkg(postfix) installed and configured. How can we install and configure the postfix mail client in awx deployment.

---

<div class="post-metadata">

**Author:** ![Ankit\_Pandey](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Ankit\_Pandey](https://forum.ansible.com/u/Ankit_Pandey)\
**Post date:** [September 23, 2022, 7:56am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/4 "2022-09-23T07:56:44Z")

</div>

Hi Ahil,

If you want to have some package installed in your EE, then i will advice you to prepare a new customized EE via ansible-builder to install additional packages i.e. postfix. And use that EE to run your jobs.

AWX Team please correct me if I have understood wrong.

Regards,  
Ankit Pandey

---

<div class="post-metadata">

**Author:** ![Ahilan\_Swaminathan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ahilan_swaminathan/32/4425_2.png) [@Ahilan\_Swaminathan](https://forum.ansible.com/u/Ahilan_Swaminathan)\
**Post date:** [September 26, 2022, 8:11am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/5 "2022-09-26T08:11:49Z")

</div>

Yes Ankit

But in Prd, we are not allowed to pull the customized images from docker or any other public repo’s. That’s the reason I need to customize the running awx-ee by using awx deployment what we did for hostalias. or else I need to customized the awx yaml file to build the awx deployment for installing and mapping the configuration files from scratch.  
Below I need to customized the awx yaml

1. Installing required pkgs
2. mapping any configuration files(like /etc/tower/conf/custom.py and /etc/postfix/[main.cf](http://main.cf))

Please provide me the crystal clear steps

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 26, 2022, 10:59am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/6 "2022-09-26T10:59:54Z")

</div>

I wrote a blog a while back. May help. Some steps can be omitted like the last few. Hope It helps  
[http://weiyentan.github.io/2021/creating-execution-environments/](http://weiyentan.github.io/2021/creating-execution-environments/)

---

<div class="post-metadata">

**Author:** ![Ankit\_Pandey](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Ankit\_Pandey](https://forum.ansible.com/u/Ankit_Pandey)\
**Post date:** [September 27, 2022, 7:07am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/7 "2022-09-27T07:07:22Z")

</div>

Hi Ahil,

I don’t think without building image you can achieve that, If you don’t have any image registry access, then try to atleast build it locally and set the ’ image\_pull\_policy’ as never.  
I hope it will work for you. Take help from this link [https://github.com/ansible/awx-operator/blob/devel/config/crd/bases/awx.ansible.com\_awxs.yaml](https://github.com/ansible/awx-operator/blob/devel/config/crd/bases/awx.ansible.com_awxs.yaml)  
to set image path and all.

Thanks & Regards,  
Ankit Pandey

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [September 27, 2022, 10:25am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/8 "2022-09-27T10:25:23Z")

</div>

If you are using a Kubernetes version like k3s you can import tar.gz files in as images in a manifest file.

---

<div class="post-metadata">

**Author:** ![Ahilan\_Swaminathan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ahilan_swaminathan/32/4425_2.png) [@Ahilan\_Swaminathan](https://forum.ansible.com/u/Ahilan_Swaminathan)\
**Post date:** [September 28, 2022, 11:38am UTC](https://forum.ansible.com/t/enable-and-configure-email-notification-in-awx-20/37105/9 "2022-09-28T11:38:18Z")

</div>

Hi Team

Can you elaborate how to create a custom EE, I am not familiar with ansible-builder so I’m a bit confused about how to create the custom EE. My requirement, need to enable email notification that’s it
