When sending or receiving emails in MailSlurp you must understand that there are two types of inbox:

  • SMTP Inbox -- Typically has address ending in or a custom domain you have created -- Can be accessed via SMTP and IMAP (see your dashboard for username and password)

  • HTTP inbox -- Usually ends in or a custom domain that you use. -- Still has SMTP server but cannot be accessed directly with username and password -- No IMAP support as uses AWS SES behind the scenes

Diagnosing your inbox error

The first step to find out the source of a 554 email error is to determine that your inbox is type SMTP:

inbox

Find the MX records for an address

If your inbox ends in we can use the command to find the records associated with it.

Notice the answer section contains an MX record pointing to . We can telnet to the server to test SMTP access.

Telnet to SMTP server

MailSlurp SMTP server runs on ports:

  • 25
  • 2525
  • 456
  • 587

Use telnet to connect to MailSlurp:

The result of which looks something like this:

If you see this the server is running and can be reached. Next we will try send an email to an inbox.

Test email receiving

First create an SMTP inbox using your API_KEY and SDK or the dashboard.