SMTP Relay Quickstart
Get app SMTP credentials (SMTP relay) on Motorical in under 2 minutes.
SMTP Credentials
| Setting | Value |
|---|---|
| Server | mail.motorical.com |
| Port | 2587 (STARTTLS) or 2465 (implicit TLS) |
| Security | STARTTLS (2587) or Implicit TLS (2465) |
| Username | Your Motor Block username |
| Password | Generated password from Motor Blocks dashboard |
:::caution 587 and 465 are a different service
Ports 587 and 465 on mail.motorical.com are Postfix mailbox submission for Motorical/Gluo mailbox accounts, authenticated against Dovecot. Motor Block SMTP credentials do not work there. Motor Block submission is 2587 / 2465 only.
:::
Step 1: Install Dependencies
- Node.js
- Python
- PHP
npm install nodemailer
pip install secure-smtplib
composer require phpmailer/phpmailer
Step 2: Send Your First Email
- cURL
- Node.js
- Python
swaks \
--to recipient@example.com \
--from your_username@your-domain.com \
--server mail.motorical.com \
--port 2587 \
--auth-user "your_motor_block_username" \
--auth-password "your_motor_block_password" \
--tls-optional \
--header "Subject: Hello from Motorical SMTP!" \
--body "This email was sent using Motorical SMTP."
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'mail.motorical.com',
port: 2587,
secure: false,
auth: {
user: 'your_motor_block_username',
pass: 'your_motor_block_password'
}
});
const mailOptions = {
from: 'sender@yourdomain.com',
to: 'recipient@example.com',
subject: 'Test Email',
text: 'Hello from Motorical!'
};
transporter.sendMail(mailOptions);
import smtplib
from email.mime.text import MIMEText
server = smtplib.SMTP('mail.motorical.com', 2587)
server.starttls()
server.login('your_motor_block_username', 'your_password')
msg = MIMEText('Hello from Motorical!')
msg['Subject'] = 'Test Email'
msg['From'] = 'sender@yourdomain.com'
msg['To'] = 'recipient@example.com'
server.send_message(msg)
server.quit()
Step 3: Verify
Check your Motorical dashboard for delivery confirmation, or use the API to query logs:
curl -H "Authorization: Bearer $TOKEN" \
"https://api.motorical.com/api/public/v1/motor-blocks/$BLOCK_ID/logs?limit=5"
tip
Store credentials securely using environment variables or a secrets manager. Never commit them to source control.