Gitlab email not working for version: 13.12.9-ee for hosted version using AWS SES

I have added the SMTP server settings in gitlab.rb.template, then i ran gitlab-ctl reconfigure & when i try to check if email is working using this command
Notify.test_email('', 'Message Subject', 'Message Body').deliver_now
in gitlab-rails session, i am getting the following error:

Notify#test_email: processed outbound mail in 1.3ms

Delivered mail 610df895925b0_3feb5a2812022@ip-172-16-1-246.mail (30074.3ms)

Date: Sat, 07 Aug 2021 03:05:57 +0000


Reply-To: <>


Message-ID: <610df895925b0_3feb5a2812022@ip-172-16-1-246.mail>

Subject: Message Subject

Mime-Version: 1.0

Content-Type: text/html;


Content-Transfer-Encoding: 7bit

Auto-Submitted: auto-generated

X-Auto-Response-Suppress: All

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">

<html><body><p>Message Body</p></body></html>

Traceback (most recent call last):

        1: from (irb):1

EOFError (end of file reached)

looks like the configuration inside gitlab.rb.template is not being used, since the error shows a different from email and domain, config file below:

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = ""
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "XXXXX"
gitlab_rails['smtp_password'] = "XXXXX"
gitlab_rails['smtp_domain'] = ""
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['gitlab_email_from'] = ""
gitlab_rails['gitlab_email_reply_to'] = ""
gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_pool'] = false