For the complete documentation index, see llms.txt. This page is also available as Markdown.

Anonymous SMTP Authentication Setup

To configure anonymous authentication for SMTP, please make the following changes to your app service environment variables:

Remove These Environment Variables:

These are used for authenticated SMTP and should be removed for anonymous authentication:

  • SMTP_USERNAME=""

  • SMTP_API_KEY=""

Add or ensure these environment variables are set on the App Service:

Environment Variable
Description

SMTP_HOST

This is the hostname or IP address of your SMTP email server (e.g., mail.contoso.com).

SMTP_PORT

This is the port number that your email server uses for communication. Common ports for SMTP include 25 , 465 (recommended for encrypted communication) or 587.

SMTP_SERVICE

Set this to custom for anonymous authentication setup.

SMTP_REQUIRE_TLS

This variable is to indicate whether TLS is enabled on the server or not. Accepted values include 0 (No) or 1(Yes).

SMTP_TLS_ENABLED

This defines whether the SMTP connection should use TLS. Accepted values include 0 (No) or 1 (Yes).

FROM_EMAIL_ADDRESS

The email address from which emails will be sent. Example: noreply@yourdomain.com.

DKIM_DOMAIN_NAME

(If applicable) Your domain name used for DKIM signing. Example: yourdomain.com.

Last updated

Was this helpful?