FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. mculley
    3. Best
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 7
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by mculley

    • SMTP integration works with default tenant, but not duplicated one

      I successfully integrated SendGrid into my default tenant. I then duplicated the tenant and tested email and it fails. I created a new API key with SendGrid and it still fails.

      Unable to send email via JavaMail
      Prime Messaging Exception
      

      I am confused by the last part of the event log msg:

      message successfully delivered to mail server
      

      Here is the event log msg.

      Email debug information
      
      7/21/2023 10:32:29 PM Z DEBUG: getProvider() returning jakarta.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
      DEBUG SMTP: need username and password for authentication
      DEBUG SMTP: protocolConnect returning false, host=smtp.sendgrid.net, user=apikey, password=<null>
      DEBUG SMTP: useEhlo true, useAuth true
      DEBUG SMTP: trying to connect to host "smtp.sendgrid.net", port 587, isSSL false
      220 SG ESMTP service ready at geopod-ismtpd-1
      DEBUG SMTP: connected to host "smtp.sendgrid.net", port: 587
      EHLO hiddenlayer-1.instance.fusionauth.io
      250-smtp.sendgrid.net
      250-8BITMIME
      250-PIPELINING
      250-SIZE 31457280
      250-STARTTLS
      250-AUTH PLAIN LOGIN
      250 AUTH=PLAIN LOGIN
      DEBUG SMTP: Found extension "8BITMIME", arg ""
      DEBUG SMTP: Found extension "PIPELINING", arg ""
      DEBUG SMTP: Found extension "SIZE", arg "31457280"
      DEBUG SMTP: Found extension "STARTTLS", arg ""
      DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
      DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"
      STARTTLS
      220 Begin TLS negotiation now
      EHLO hiddenlayer-1.instance.fusionauth.io
      250-smtp.sendgrid.net
      250-8BITMIME
      250-PIPELINING
      250-SIZE 31457280
      250-STARTTLS
      250-AUTH PLAIN LOGIN
      250 AUTH=PLAIN LOGIN
      DEBUG SMTP: Found extension "8BITMIME", arg ""
      DEBUG SMTP: Found extension "PIPELINING", arg ""
      DEBUG SMTP: Found extension "SIZE", arg "31457280"
      DEBUG SMTP: Found extension "STARTTLS", arg ""
      DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
      DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"
      DEBUG SMTP: protocolConnect login, host=smtp.sendgrid.net, user=apikey, password=<non-null>
      DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2 
      DEBUG SMTP: Using mechanism LOGIN
      DEBUG SMTP: AUTH LOGIN command trace suppressed
      DEBUG SMTP: AUTH LOGIN succeeded
      DEBUG SMTP: use8bit false
      MAIL FROM:<support@hiddenlayer.com>
      250 Sender address accepted
      RCPT TO:<mculley@hiddenlayer.com>
      250 Recipient address accepted
      DEBUG SMTP: Verified Addresses
      DEBUG SMTP:   mculley@hiddenlayer.com
      DATA
      354 Continue
      Date: Fri, 21 Jul 2023 22:32:28 +0000 (UTC)
      From: support@hiddenlayer.com
      Reply-To: support@hiddenlayer.com
      To: mculley@hiddenlayer.com
      Message-ID: <1132593178.71.1689978748428@hiddenlayer-1.instance.fusionauth.io>
      Subject: FusionAuth SMTP Test
      MIME-Version: 1.0
      Content-Type: multipart/alternative; 
      	boundary="----=_Part_70_1022356550.1689978748428"
      
      ------=_Part_70_1022356550.1689978748428
      Content-Type: text/plain; charset=UTF-8
      Content-Transfer-Encoding: 7bit
      
      Congratulations! You have successfully configured the SMTP server.
      
      Tenant Id: 6528d22f-2bc0-dd01-7cd5-bf80935474a3
      Tenant name: stage
      
      Host: smtp.sendgrid.net
      Port: 587
      Username: apikey
      Security: TLS
      
      
      - FusionAuth
      ------=_Part_70_1022356550.1689978748428
      Content-Type: text/html; charset=UTF-8
      Content-Transfer-Encoding: 7bit
      
      <p>
      Congratulations! You have successfully configured the SMTP server.
      </p>
      
      <table style="margin-bottom: 10px;">
        <tr>
          <td><strong>Tenant Id:</strong></td>
          <td>6528d22f-2bc0-dd01-7cd5-bf80935474a3</td>
        </tr>
        <tr>
          <td><strong>Tenant name:</strong></td>
          <td>stage</td>
        </tr>
      </table>
      
      <table style="margin-bottom: 10px;">
        <tr>
          <td><strong>Host:</strong></td>
          <td>smtp.sendgrid.net</td>
        </tr>
        <tr>
          <td><strong>Port:</strong></td>
          <td>587</td>
        </tr>
        <tr>
          <td><strong>Username:</strong></td>
          <td>apikey</td>
        </tr>
        <tr>
          <td><strong>Security:</strong></td>
          <td>TLS</td>
        </tr>
      </table>
      
      
      <p>
      - FusionAuth
      </p>
      
      ------=_Part_70_1022356550.1689978748428--
      .
      250 Ok: queued as EoKj0DJlSLOG1mgulDMzmg
      DEBUG SMTP: message successfully delivered to mail server
      QUIT
      221 See you later
      
      posted in Q&A
      M
      mculley