To send Laravel mail through OwnMailServer, set MAIL_MAILER=smtp , MAIL_HOST=smtp.ownmailserver.com , MAIL_PORT=587 , any MAIL_USERNAME and an API key as MAIL_PASSWORD in .env , with MAIL_FROM_ADDRESS on your verified domain. Leave MAIL_SCHEME empty so Laravel upgrades the connection with STARTTLS. Your mailables, notifications and password resets then go through us with no code changes.
This guide uses Laravel 11 to 13, which share the same mail configuration.
What you need before you start
An approved OwnMailServer account with a verified sending domain . The From address must be on it, or we refuse the message with 550 . The API docs list the DNS records, and the DKIM guide explains them.
An API key , created in your dashboard under API keys & SMTP . Choose Sending only (the default), limited to your sending domain: SMTP only needs to send.…