SetupTransactional Emails

Transactional Email

Optionally, you can configure an SMTP server to send transactional emails. These are used for password resets, organization invitations, and notifications.

Helm Chart Configuration

Enable email in your config.yaml:

email:
  enabled: true
  host: "smtp.example.com"
  port: 587
  useTls: true
  from: "[email protected]"
  subjectPrefix: "[Polyaxon]"
  hostUser: "apikey"
  hostPassword: "your-smtp-password"
  # backend: "django.core.mail.backends.smtp.EmailBackend"  # default

Environment Variables

If you are not using the Helm chart (e.g. Docker Compose), you can configure email via environment variables on the API containers:

VariableDescriptionDefault
POLYAXON_EMAIL_HOSTSMTP server hostname.localhost
POLYAXON_EMAIL_PORTSMTP server port.25
POLYAXON_EMAIL_USE_TLSWhether to use TLS for the SMTP connection.false
POLYAXON_EMAIL_HOST_USERUsername for SMTP authentication.""
POLYAXON_EMAIL_HOST_PASSWORDPassword for SMTP authentication.""
POLYAXON_EMAIL_FROMFrom address for outgoing email.<Polyaxon>
POLYAXON_EMAIL_SUBJECT_PREFIXPrefix added to all email subjects.[Polyaxon]
POLYAXON_EMAIL_BACKENDDjango email backend class. Override for custom backends.SMTP (default)

FAQ

  • Which SMTP service to use? Use a reputable transactional email service to ensure delivery. If you do not have a preferred provider, try Resend or Postmark. Most cloud providers also offer SMTP services (e.g. AWS SES, GCP).
  • Can I use my private inbox? No, private inboxes (like Gmail) are generally not recommended and difficult to configure correctly.