SMTP for Magento — transactional email that arrives
Magento usually runs on its own server or a rented environment, and sends directly from there. Such a server rarely has an established mail reputation, which is why order confirmations, invoices and shipping notifications are regularly flagged as suspicious.
Magento can route its outgoing mail through an external SMTP server. That moves delivery to infrastructure built for it, without you having to change anything about your shop.
Why it goes wrong without a relay
Magento shops send relatively little but highly valuable email: every order confirmation belongs to a payment that already happened. It is precisely at low volume that an own server never builds enough reputation to deliver reliably — too little traffic to become trusted, too much to be ignored.
Setting up SMTP in Magento
Collect your details
Log in to your 2mail account and retrieve your SMTP server, username and password there.
Fill them in inside Magento
Magento has a setting for the outgoing mail transport, where you pick SMTP instead of the local mail function. Some installations use a module for this. Which one you choose makes no difference to the settings: every variant asks for the same five details.
Authenticate your domain
Make sure SPF, DKIM and DMARC are set correctly for your domain, so recipients can verify that the mail comes from you.
Test
Send a test message to an address at a major provider and check that it arrives in the inbox and not in the spam folder.
The fields Magento asks for
Every platform names them slightly differently, but it is always the same five. The actual values are tied to your account and can be found in your 2mail account — take them from there, so you are sure to use the right ones.
| Field | What you enter |
|---|---|
| SMTP server (host) | The server name from your 2mail account. |
| Port | The port that matches your chosen encryption; your account shows which one. |
| Encryption | TLS. Never send unencrypted — your credentials would otherwise travel in plain text. |
| Username | The SMTP login of your 2mail account. |
| Password | The matching password. Never use the password of an employee's mailbox. |
Which emails Magento sends
As soon as the relay is set up, all of these run through 2mail — you do not have to configure them one by one.
Pitfalls with Magento
Several store views, one sender
Magento allows a sender address per store view. Make sure each of them sits on a domain whose authentication is in place — otherwise an untrusted address leaks out per language or per brand.
The queue that is not running
Magento can place outgoing mail in a queue processed by a scheduled task. If that task is not running, this is not a delivery problem but a processing problem — check that first.
Stock alerts count too
Administrator notifications leave from the same domain as your customer mail. A flood of internal alerts therefore weighs on your reputation.
A different platform?
SMTP is a standard protocol: any system that speaks SMTP — a CRM, an ERP, a custom application or a server — can send through 2mail using the same five fields.