> ## Documentation Index
> Fetch the complete documentation index at: https://magicpatterns.mintlify.site/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Not Receiving a Login Code

> Troubleshoot missing Magic Patterns login code emails

Magic Patterns sends a one-time code to your email address when you log in. If
the code does not arrive, follow the steps below.

## Troubleshoot a missing code

<Steps>
  <Step title="Confirm your email address">
    Check that you entered the correct email address on the login screen,
    including the domain name.
  </Step>

  <Step title="Wait a few minutes">
    Delivery can occasionally be delayed by your email provider. Wait a few
    minutes before requesting a new code.
  </Step>

  <Step title="Check spam and filtered folders">
    Search all folders for email from `auth.magicpatterns.com`, including spam,
    junk, promotions, quarantine, and other filtered folders.
  </Step>

  <Step title="Ask your IT team to allowlist Magic Patterns">
    If you use a work email address, your company's mail gateway may be
    blocking the message. Ask your IT team to allowlist:

    * From domain: `auth.magicpatterns.com`
    * Envelope sender domain: `mail.auth.magicpatterns.com`

    Magic Patterns uses Amazon SES, which rotates sending IP addresses, so
    domain-based allowlisting is recommended.
  </Step>

  <Step title="Use an individual mailbox">
    Avoid logging in with a Google Group, shared alias, or automatically
    forwarded address. These services can modify or filter the message before
    it reaches you. Use an individually owned mailbox when possible.
  </Step>
</Steps>

## Information for IT teams

Authentication emails are sent from `auth.magicpatterns.com` through Amazon
SES. Direct messages are SPF, DKIM, and DMARC authenticated.

If the message is not delivered:

* Check gateway and quarantine logs for the recipient.
* Confirm `spf=pass`, `dkim=pass`, and `dmarc=pass` in the
  `Authentication-Results` header.
* Do not pin Amazon SES IP addresses or DKIM selectors because they can rotate.
* Check whether a forwarding rule, group footer, or subject prefix modified
  the message and invalidated DKIM.

## Still unable to log in?

Contact [support@magicpatterns.com](mailto:support@magicpatterns.com) and
include the email address you are trying to use and the approximate time you requested the code
