ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

vAPP Email SMTP Address not Resolving to Correct Address: How to change hosts file; alias configureCustomHostRecords

book

Article ID: 145652

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite

Issue/Introduction

We are trying to enable emails on our IDM production environment. We changed the email.properties file and enabled emails from management console as well. We can see that it's trying to send the email but it fails with connection refused.

We noticed the local hostfile on the vAPP server has an entry for the smtp address pointing to the local vapp hostname which is why we think this might be happening. But we can't edit the file because it's owned by root. How can we edit it, or is there is someplace we need to change this?

 

 

Resolution

In vAPP there is no write permission on /etc/hosts file. Instead, use the alias configureCustomHostRecords to set the correct server/IP of the SMTP server.

First, vi /opt/CA/VirtualAppliance/custom/hosts


Add your new smtp server entry, for example,

10.20.100.200 test.smtp.server

Save the file.

Run configureCustomHostRecords.


The dialog should look similar to this:

[email protected] VAPP-14.3.0 (10.17.112.99):~ > vi /opt/CA/VirtualAppliance/custom/hosts

--->create your custom hosts entry here and save the file<--

[email protected] VAPP-14.3.0 (10.17.112.99):~ > configureCustomHostRecords

[INFO] Successfully injected the contents of /opt/CA/VirtualAppliance/custom/hosts to the /etc/hosts file

[email protected] VAPP-14.3.0 (10.17.112.99):~ > cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.17.112.84  bg609104-imag-Vapp03.lvn.broadcom.net
# CA VAPP - START
10.17.112.99 caim-srv-01
10.17.112.99 caip-srv-01
10.17.112.99 caig-srv-01
10.17.112.99 ca-prov-srv-01
10.17.112.99 ca-conn-srv-01
10.17.112.99 userstore-01
10.17.112.99 database_srv
10.17.112.99 caig-srv
10.17.112.99 caim-srv
10.17.112.99 userstore
10.17.112.99 ca-prov-srv-primary
10.17.112.99 ca-prov-srv
# CA VAPP - END
# CA VAPP CUSTOM HOSTS - START
10.20.100.200 test.smtp.server
# CA VAPP CUSTOM HOSTS - END
[email protected] VAPP-14.3.0 (10.17.112.99):~ >