Zum Inhalt springen

Getting started with MailOut

Zuletzt aktualisiert am

You can follow this guide to get started with STACKIT MailOut. You learn how to create a Sending Domain as well as an Authorized Sender, validating your Sending Domain with DKIM, SPF, and DMARC DNS records, so that you are able to send email messages.

  1. Create a sending domain
  2. Validate your sending domain
  3. Setup an authorized sender
  4. Send an email message

At first you need to create a sending domain, you want to send email messages from:

  1. Log in to the STACKIT Portal.
  2. On the left click on Messaging/MailOut and on the new pane on Create Sending Domains.
  3. On the new pane, enter your sending domain URL.
  4. Click on Create to create your sending domain.

After you created the sending domain, it will remain in state Validating… until you have validated it.

  1. In the sending domain overview, click on the sending domain you want to validate.

  2. In the menu on the left, click the DNS Configuration entry.

  3. On the new pane, you see a list of DNS records that must be transferred to the DNS service of your domain hoster.

  4. After you added the DNS records to the DNS service, click Validate DNS records

Once validated correctly, you must be able to see a valid state for the DNS records in the overview of the sending domain. The overall state of your sending domain will turn from state “Validating” to “Active”.

To be able to ingress email messages using the SMTP endpoint, you need to create an authorized sender.

  1. In the sending domain overview, click on the sending domain you want to create an Authorized Sender for.
  2. In the menu on the left, click the Authorized Sender entry.
  3. On the new pane on Create Authorized Sender.
  4. In the modal dialog, enter a description for your Authorized Sender.
  5. After you clicked “Create”, you will see all information for your Authorized Sender like username, password and SMTP endpoint. Please note, that the password cannot be retrieved later.

That’s it! You can now use your preferred email program and configure it with the login credentials provided above, or use a simple script to send a test email using the SMTP test tool Swiss Army Knife for SMTP (Swaks).

The following shell script can be used to send an email with STACKIT MailOut:

Terminal window
SERVER="<your-smtp-endpoint>" \
PORT=25 \
SMTP_USERNAME="<your-username>" \
SMTP_PASSWORD="<your-password>" \
SENDER="noreply@<your-domain>" \
RECIPIENT="<recipient>@aboutmy.email" \
swaks \
--to $RECIPIENT \
--from $SENDER \
--server $SERVER \
--port $PORT \
--auth plain \
--auth-user $SMTP_USERNAME \
--auth-password $SMTP_PASSWORD \
--tls