What this is for
SMTP Senpai is the email relay of MailSenpai, hosted in the EU. The Mailsenpai plugin connects it to AcelleMail as a sending server, by its API or by its SMTP relay. Bounces and spam complaints come back to AcelleMail on their own.
MailSenpai presents SMTP Senpai as a relay for transactional email. Check that your MailSenpai plan allows the mail you plan to send through it.
Before you start
- A MailSenpai account with SMTP Senpai active. Its menu shows SMTP Senpai with the status In operation.
- A sending domain verified in MailSenpai, under Domains. MailSenpai shows the DNS records to publish there.
- AcelleMail reachable at a public https address. MailSenpai sends bounces and complaints to it.
- AcelleMail 4.2.0-p196 or later.
Step 1 — Install the Mailsenpai plugin
In the admin area, open Plugins and click Install plugin. Choose Connect with marketplace (1), connect your account and install Mailsenpai. If you downloaded the plugin ZIP from your account instead, choose Upload plugin package.

Once installed, the Mailsenpai card shows Active (2). It adds two server types: Mailsenpai API and Mailsenpai SMTP.
Step 2 — Copy your API key in MailSenpai
Log in to your MailSenpai account at app.mailsenpai.com. In the left menu, under SMTP Senpai, click Connection. In the Key to your applications box, click Show, then Copy. The key starts with msp_.

Do not click Regenerate unless you mean to. As the page says, the old key stops working at once, and the AcelleMail server using it stops sending.
The same page shows the User and Password of the SMTP relay, and its ports (2525, or 587 with STARTTLS). You need them only for the Mailsenpai SMTP server type.
Step 3 — Add a Mailsenpai sending server
In the admin area, open Sending Servers and click Add Server. The Choose Server Type window lists the plugin types under Plugin Servers. Click Mailsenpai API.

Mailsenpai SMTP sends through the SMTP relay instead. It asks for the same API key, plus the SMTP username, SMTP password and SMTP port from the Connection page. The username must belong to the same MailSenpai account as the key.
Step 4 — Paste the key and save
The New server page opens on Connection details. Paste your key into API Key (1) and click Save Changes (2).

The server's page opens, marked Active. Click Test Connection (1). AcelleMail asks MailSenpai about your account, and answers The connection works (2).

The Webhook URL field now shows the address MailSenpai will send bounces and complaints to. It reads Not set yet until the server first sends a campaign or a test email (see Bounces and spam complaints below).
Step 5 — Add your sending domain
Open the Sender Identity tab and click Add domain or email. In the Add Domain / Email window, type your domain (1) and click Add email/domain (2).

AcelleMail asks MailSenpai whether it would send from that domain. It asks in MailSenpai's test mode, so no email is sent and nothing counts against your plan.
Step 6 — Check the domain's status
The domain appears in the Sender Identity list with MailSenpai's answer.

- Active: MailSenpai sends from this domain. Your campaigns can use addresses at it.
- Pending with Mailsenpai: not_verified: MailSenpai does not send from this domain yet. Verify it in MailSenpai under Domains, then open this server's page again. AcelleMail asks MailSenpai again about every domain each time the page opens.
MailSenpai also sends from the parent domain of a verified domain and from their subdomains, signed with the verified domain's key. Its Connection page says which ones. Those show Active too.
Available for all lets every customer of your AcelleMail send from the domain. Leave it unticked and pick an Owner to give it to one customer.
Bounces and spam complaints
A MailSenpai account has one webhook (in MailSenpai: Real-time notifications). Before the server first sends a campaign or a test email, AcelleMail points that webhook at the server and stores its signing secret. The Webhook URL field then says Set at Mailsenpai; its signing secret is stored.
From then on:
- Bounce: the address is blacklisted in AcelleMail. MailSenpai also suppresses it.
- Complaint: the subscriber is marked as having reported spam.
- Dropped: MailSenpai held a message because the address is on its suppression list. Admins get a notification.
AcelleMail checks MailSenpai's signature on every request and refuses one that is more than 5 minutes old.
Common issues
| What you see | What to do |
|---|---|
| Test Connection: The Mailsenpai account is still being activated ("stato": "pending"): it cannot send yet. | MailSenpai has not activated SMTP Senpai yet. Wait until its menu shows In operation, then click Test Connection again. |
| Test Connection: Mailsenpai API 401 on GET … | The key is wrong, or it was regenerated. Copy it again from Connection → Key to your applications and save the server. |
| The domain stays Pending, Mailsenpai: not_verified | Verify the domain in MailSenpai under Domains and publish the DNS records it shows. Then open the server's page again. |
| The Mailsenpai account already sends its webhook (Real-time notifications) to …, which is not this platform. | Another tool uses the account's one webhook. AcelleMail does not replace it. Turn that webhook off in MailSenpai, then send again. |
| Mailsenpai cannot deliver bounces and spam complaints to …: it calls public https addresses only. | Your AcelleMail runs at a local or http address. Set APP_URL in its .env file to its public https address, then send again. |
| The Mailsenpai API cannot embed images in the HTML; send this message through a Mailsenpai SMTP server. | The email embeds an image in its HTML. Send it through a Mailsenpai SMTP server, or link the image instead of embedding it. |
| The SMTP username … does not belong to the Mailsenpai account of this API key | The SMTP username comes from another MailSenpai account. Copy the User from the same account's Connection page as the key. |
What to do after
- Match the server's sending limit to your MailSenpai plan. On the server's page, open Configuration. The free plan allows 30 emails an hour, 200 a day and 5,000 a month.
- Publish SPF, DKIM and DMARC for your domain: How to Set Up SPF, DKIM, and DMARC Records.
- Give the server to your customers' plans: Sending Servers for a Plan.
0 comments
No comments yet — be the first to share a tip or question.