A Mailgun account.
A dedicated mail subdomain, such as mg.your-domain.com.
SPF, DKIM, two MX records, and a tracking CNAME.
A Domain Sending Key for Solomono Email Service.
Optional SMTP credentials for store system email.
A safe test to one recipient.
A working email address for the Mailgun account.
Access to the domain DNS panel.
Administrator access to the Solomono store.
A test recipient address.
Warning. Treat a Domain Sending Key and SMTP password like passwords. Never include them in screenshots or documents.
Open https://signup.mailgun.com/.
Enter your full name, company name, and work email.
If you do not want to add a card, clear Add payment info now.
.png)
Figure 1. Mailgun signup without payment information
Warning. Accounts without a card have service limits. Pricing and limits can change; check the current signup page.
Click Create Account.
Confirm the email address or enter the verification code sent by Mailgun.
Create a password and complete two-factor authentication if requested.
After signing in, Mailgun opens the Dashboard.
.png)
Figure 2. Mailgun Dashboard
Use a separate subdomain such as mg.your-domain.com. This keeps Mailgun records separate from normal mail for addresses such as info@your-domain.com.
Open Send → Sending → Domains.
Click Add new domain.
Enter a subdomain without https:// or www, for example mg.your-domain.com.
Select the required region and create the domain.
.png)
Figure 3. Adding a custom Mailgun domain
Open Domain settings → DNS Records in Mailgun.
Open your DNS provider in another browser tab.
Add the exact records shown in your Mailgun account.
|
Type and purpose |
Example for mg.your-domain.com |
|
TXT — Mailgun SPF |
Host: mg; Value: v=spf1 include:mailgun.org ~all |
|
TXT — DKIM signing |
Host: selector._domainkey.mg; Value: long Mailgun key |
|
MX — receiving |
Host: mg; mxa.mailgun.org; Priority 10 |
|
MX — backup server |
Host: mg; mxb.mailgun.org; Priority 10 |
|
CNAME — tracking |
Host: email.mg; Value: mailgun.org |
Result. The two MX records are not duplicates. Both mxa and mxb are required for redundancy.
Warning. Do not remove the root-domain MX record if it handles your normal mailbox. Mailgun records use host mg and do not replace the @ MX record.
Warning. Do not create a second _dmarc record when one already exists. The organizational-domain policy normally applies to subdomains.
Save the records and return to Mailgun.
Click Check status.
SPF, MX, and CNAME should show Verified; DKIM should show Active.
.png)
Figure 4. Verified Mailgun DNS records
Important. DNS propagation can take from a few minutes up to 24–48 hours.
A Domain Sending Key can send only for one domain and is safer than a full account API key.
Open Domain settings → Sending Keys.
Click Add sending key.
Enter a clear description, such as SoloMono production.
.png)
Figure 5. Creating a Domain Sending Key
Click Create sending key.
Copy the Sending API key immediately. Mailgun displays it only once.
Warning. Use this Domain Sending Key in the Solomono API KEY field. Do not use the account password or SMTP password.
Sign in to the store admin panel.
Open Modules → SOLO modules.
Find EMAIL_SERVICE_ENABLED and turn it on.
.png)
Figure 6. Solomono Email Service module
Open Settings → Integrations → Email Service.
Click Change/Edit in the Email Service row.
Select Mailgun.
Paste the Domain Sending Key into API KEY.
Enter the full subdomain in Domain, for example mg.your-domain.com.
Click OK.
.png)
Figure 7. Mailgun API settings in Solomono
Open Send Email to Customers.
Choose one customer, not all customers.
Enter a test recipient, subject, and short message.
Send the message and check Inbox and Spam.
Open Mailgun Reporting/Logs and confirm Accepted or Delivered status.
.png)
Figure 8. Safe test form for one recipient
Configure SMTP when your Solomono setup sends automated store email separately from the Email Service API.
Open Domain settings → SMTP Credentials.
Click Add new SMTP user.
Enter a unique login, such as solomono-production.
Keep Automatic password creation when available.
.png)
Figure 9. Creating a Mailgun SMTP user
Click Create.
Copy the full Login and Password immediately. The password is shown once.
.png)
Figure 10. Created SMTP user and Mailgun SMTP server settings
Open Settings → Integrations → SMTP Settings.
|
Solomono field |
Mailgun value |
|
SMTP Port |
587 |
|
SMTP Host |
smtp.mailgun.org |
|
SMTP Password |
Password of the created SMTP user |
|
SMTP Login |
Full login, for example solomono-production@mg.your-domain.com |
|
SMTP Security |
tls |
|
Certificate verification |
Keep the current value unless support instructs otherwise |
Save each value.
.png)
Figure 11. Mailgun SMTP settings in Solomono
Warning. The SMTP password is not the Mailgun account password and not the Domain Sending Key.
|
Problem |
What to check |
|
DNS is not verified |
The host does not contain the domain twice; values have no extra spaces; allow up to 48 hours. |
|
DKIM is not Active |
Copy the full selector and TXT key exactly as Mailgun shows them. |
|
API authentication failed |
Use an active Domain Sending Key and the exact Mailgun domain. |
|
SMTP authentication failed |
Use the full SMTP login and SMTP password, not the account password. |
|
Unable to connect |
Use smtp.mailgun.org, port 587, tls; confirm that hosting does not block outbound SMTP. |
|
Rejected or not delivered |
Check Mailgun Logs, From address, plan limits, and the suppression list. |
|
Message goes to spam |
SPF/DKIM are active, DMARC is not duplicated, and content is not spam-like. |
□ The Mailgun account is confirmed.
□ The sending subdomain is added.
□ SPF, MX, and CNAME show Verified; DKIM shows Active.
□ A Domain Sending Key is created and stored securely.
□ EMAIL_SERVICE_ENABLED is on.
□ Mailgun, API KEY, and Domain are saved in Solomono.
□ A test message to one recipient was delivered.
□ If required, SMTP is configured and tested.
Getting started: https://documentation.mailgun.com/docs/mailgun/get-started
Custom domains: https://documentation.mailgun.com/docs/mailgun/user-manual/domains/domains-custom
DNS verification: https://documentation.mailgun.com/docs/mailgun/user-manual/domains/domains-verify
API keys: https://documentation.mailgun.com/docs/mailgun/user-manual/api-key-mgmt/rbac-mgmt
SMTP: https://documentation.mailgun.com/docs/mailgun/user-manual/sending-messages/send-smtp