Master da Web
SMTP guide

Postfix SMTP relay through port 587, with your key

Alerts, cron and the email of apps installed on the server go out through Postfix. Point it at our relay on port 587 with your sending key: messages arrive with your domain's DKIM, and every delivery shows in the panel.

The sandbox is free for everyone. Already run a cloud service with us? The free plan is yours too.

/etc/postfix/main.cf

relayhost = [YOUR_PANEL_HOST]:587smtp_sasl_auth_enable = yessmtp_sasl_password_maps = texthash:/etc/postfix/sasl_passwdsmtp_sasl_security_options = noanonymoussmtp_tls_security_level = encrypt# the sender must be on a verified domainsender_canonical_maps = static:alerts@yourdomain.com

The last line rewrites every sender (root@server, www-data@…) to an address on your verified domain. Without it, the relay refuses the system's messages.

Postfix

Step by step: SMTP in Postfix

From a verified domain to the first delivered email, with the result of each send in the panel.

  1. 1

    Verify the domain and create a key

    In the panel, under Email & SMTP: the verified domain is the senders' domain, and the key is the relay's password.

  2. 2

    Install SASL support

    On Debian and Ubuntu, apt install libsasl2-modules; on AlmaLinux and Rocky Linux, dnf install cyrus-sasl-plain.

  3. 3

    Point relayhost at us

    Add the example's lines to main.cf, create sasl_passwd and reload Postfix.

  4. 4

    Send a test

    printf 'Subject: Test\n\nHi' | sendmail you@example.com, and check the result in /var/log/mail.log and in the panel's Activity.

Also useful

/etc/postfix/sasl_passwd

The relay's username and key, readable by root only. A texthash table needs no postmap: Postfix reads it on reload.

/etc/postfix/sasl_passwd

[YOUR_PANEL_HOST]:587 apikey:YOUR_SENDING_KEY $ chmod 600 /etc/postfix/sasl_passwd$ systemctl reload postfix
Beyond SMTP

What you get by sending with Master da Web

Delivery under your domain

DKIM with your domain's key, aligned SPF and DMARC: what Gmail, Yahoo and Microsoft check before they accept.

Per-recipient logs

Delivered, deferred, bounced or marked as spam, with the receiving server's full answer.

Webhooks and suppressions

Signed events in your system, and bounces and complaints taken off the list by themselves.

Free sandbox

A sandbox key captures messages so you can test without delivering anything to anyone.

What it costs

Plans from R$29.00 a month, with 10,000 emails included. If you run a cloud service with us, you start on the free plan, with 3,000 emails a month. The sandbox is free for everyone.

See plans and prices
Discover the SMTP & Email API
FAQ

Questions about SMTP in Postfix

What comes up most while setting it up.

Set up SMTP in Postfix today

Create your account, verify your domain and start testing today.