Error: sslv3 alert illegal parameter with AWS SES SMTP Configuration in Avi Load Balancer
search cancel

Error: sslv3 alert illegal parameter with AWS SES SMTP Configuration in Avi Load Balancer

book

Article ID: 440913

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

Alert emails fail to send from the Avi Controller when using Amazon SES (Simple Email Service) SMTP endpoints.

The system reports a TLS illegal parameter alert during the handshake process. This issue typically occurs due to strict RFC 6066 compliance checks enforced by the AWS SES TLS termination layer.

Environment

 

  • VMware Avi Load Balancer 22.1.x
  • VMware Avi Load Balancer 30.1.x
  • Amazon SES SMTP Endpoint (e.g., email-smtp.eu-west-1.amazonaws.com)

 

Cause

Amazon SES strictly enforces RFC 6066 Section 3, which defines the Server Name Indication (SNI) extension. A valid DNS hostname in the SNI field cannot contain a colon or numeric port suffix.

The Avi Controller version 22.1.x and 30.1.x may incorrectly include the port in the SNI field (e.g., email-smtp.eu-west-1.amazonaws.com:25), causing AWS to abort the handshake.

Resolution

Fixed in release 30.2.1 and higher. See Download Broadcom products and software for steps to download this release.

Workaround for versions 22.1.x and 30.1.x:

Apply the following change to the All Controller Nodes:

  1. SSH to the Controller Leader Node.
  2. Run the following command to update the email utility script:
    sudo sed -i 's/server = smtplib\\.SMTP(server, local_hostname=LOCAL_HOSTNAME)/server = smtplib.SMTP(sys_email_config.mail_server_name,port=sys_email_config.mail_server_port, local_hostname=LOCAL_HOSTNAME)/' /opt/avi/python/lib/avi/util/email_utils.py
  3. Restart the avipythoncontroller service:
    sudo systemctl restart avipythoncontroller
  4. Repeat these steps on all follower nodes in the cluster.

Additional Information