> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-sandboxes-integrations-placement.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure SMTP

> Configure an internal SMTP server to send email invitations from a self-managed W&B Server instance.

In W\&B Server, adding users to the instance or a team triggers an email invitation. By default, W\&B sends these invitations through a third-party mail server. If your organization restricts outbound traffic from the corporate network, these invitations might not reach the end user. To work around this, administrators of a self-managed W\&B Server can route invitation emails through an internal SMTP server.

To configure W\&B Server to use your internal SMTP server, complete the following steps:

1. Set the `GORILLA_EMAIL_SINK` environment variable in the Docker container or the Kubernetes deployment to `smtp://[USER:PASSWORD]@smtp.host.com:[PORT]`.
   * `USER` and `PASSWORD` are optional.
   * If you're using an SMTP server that's designed to be unauthenticated, set the value for the environment variable like `GORILLA_EMAIL_SINK=smtp://smtp.host.com:[PORT]`.
   * Commonly used port numbers for SMTP are `587`, `465`, and `25`. The port might differ based on the type of mail server you're using.
2. Optional: To configure the default sender email address for SMTP, which is initially set to `noreply@wandb.com`, set the `GORILLA_EMAIL_FROM_ADDRESS` environment variable on the server to your desired sender email address.

After you set these environment variables, W\&B Server routes new user and team invitation emails through your internal SMTP server using the sender address you specified.
