brevo with the /go/brevo Command

/go/brevo connects your hosted domains to Brevo, a transactional email service used as an SMTP relay. It: Run without a domain, it processes every main domain on the server. Subdomains are skipped. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# Set up one domain
/go/brevo example.com

# Set up every main domain on the server
/go/brevo

Options

Form What it does
/go/brevo <domain> Sets up one domain. Any first argument that contains a dot is treated as a domain.
/go/brevo Sets up every main domain in /home.
/go/brevo check Checks the Brevo credit balance and disables the Brevo relay if it is not being used.
/go/brevo config Writes the Brevo API key to /usr/local/goadmio/include/config/brevo.php.
/go/brevo auth Asks Brevo to authenticate every main domain, without changing DNS.

[!WARNING]
Any first argument that is not check, config, auth, or a name with a dot runs the full setup for all domains. A typo such as chek does not stop; it starts the all-domains run.

Examples

# Set up one domain
/go/brevo example.com

# Set up every main domain
/go/brevo

# Check credits and disable Brevo if it is not working
/go/brevo check

# Write the API key for the GoAdmio panel
/go/brevo config

# Authenticate all main domains again, for example after DNS has propagated
/go/brevo auth

Output

The command prints progress for each step, and the raw Brevo API response for auth. It does not print a final summary. Each run also adds a line to /var/log/go/brevo.log.

Message Meaning
[] example.com Setup started for this domain.
Found _dmarc record with ID: <id> An existing DMARC record is being removed.
Successfully deleted _dmarc record The old DMARC record was removed.
Failed to delete _dmarc record Cloudflare refused the delete. The response follows.
No _dmarc record found for example.com There was no DMARC record to remove.
Brevo Working | Credits (<n>)... check: the credit balance changed, so Brevo is in use.
Message Sent | Brevo Working | Credits (<n>)... check: the test message used a credit.
Deactivate Brevo... check: the test message did not use a credit, so the Brevo relay was turned off.

The check, config, and auth forms always exit with status 1, including on success. Do not use their exit status to detect errors.

See the full reference at /go/brevo and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *