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:
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: [email protected]
.
DKIM_DOMAIN_NAME
(If applicable) Your domain name used for DKIM signing. Example: yourdomain.com
.
Last updated