Commonbox plugin screenshot
Dark mode ready
No multilingual support
Supports v5.x

Commonbox by DanDoingDev

Community

Bring Gmail, Google Workspace and IMAP mail into your Filament panel with a shared team inbox, conversation assignments, internal notes and replies.

Tags: Panels
Supported versions:
5.x
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
DanDoingDev avatar Author: DanDoingDev

Documentation

A shared Gmail and IMAP inbox for Filament teams, by dandoingdev.

Connect your team's email addresses, assign conversations, leave private notes, and reply together from your Filament panel.

#Features

  • Multiple Gmail, Google Workspace, and IMAP mailboxes.
  • A unified inbox and individual mailbox views.
  • Provider folders and labels with two-way sync for archive, trash, and moves, including nested folders.
  • Separate team membership and permissions for each mailbox.
  • Threaded conversations, assignments, stars, and open, waiting, and resolved states.
  • Header search with operators, quick filters, and opt-in provider content search that does not store message bodies.
  • Bulk selection for read state, stars, assignment, workflow, and folder actions.
  • Personal unread state, shared workflow, and internal notes that are never sent as email.
  • Mentions in internal notes, with Filament database notifications that omit the note body and subject.
  • Snooze and reminders that return a conversation to Needs reply when due.
  • New messages, replies, and forwarding with attachments from each connected mailbox.
  • Rich-text email with formatting, links, lists, and embedded inline images.
  • Shared saved replies with fill-in placeholders.
  • Personal, mailbox, and sending-alias signature defaults.
  • Gmail OAuth, encrypted credentials, and background synchronization.
  • Responsive light and dark interfaces.
  • An activity event for integration with your application's audit log.

#Requirements

  • PHP 8.3 or later, compatible with your Laravel version.
  • Laravel 12 or 13 and Filament 5.
  • An existing Filament panel with authentication configured.
  • An asynchronous Laravel queue, a running queue worker, and the Laravel scheduler.
  • A cache store supporting atomic locks, shared between workers when using multiple servers.
  • A Commonbox licence and your Privato installation credentials.

The PHP IMAP extension is not required. Gmail connections require a Google OAuth client; other mail providers require IMAP and SMTP credentials.

The current release is 0.9.0. Review the current limitations and test with your mail provider before using it for customer correspondence.

#Installation

#1. Install the package

Purchase Commonbox through the plugin listing, then use the email address and licence key from your Privato account to authenticate Composer:

composer config repositories.dandoingdev composer https://dandoingdev.privato.pub/composer
composer config --auth http-basic.dandoingdev.privato.pub "YOUR_EMAIL" "YOUR_LICENCE_KEY"
composer require dandoingdev/filament-commonbox:^0.9.0

Keep Composer authentication outside version control. Never commit your licence key or include it in a support request. The package service provider is discovered automatically.

#2. Register Commonbox in your panel

Add the plugin to your Filament panel provider:

use Dandoingdev\Commonbox\CommonboxPlugin;

return $panel
    // Your existing panel configuration...
    ->plugin(CommonboxPlugin::make());

By default, authenticated users who can access your Filament panel can open Commonbox and connect new mailboxes. No additional Commonbox gates or permissions are required. Existing users are eligible for mailbox membership by default.

Your panel's authentication and access rules still apply. Users must also be members of each mailbox they work on; the default does not expose every mailbox to everyone. The person connecting a mailbox becomes its first manager.

#Optional permission restrictions

To restrict access, provide any of these callbacks:

CommonboxPlugin::make()
    ->authorizeAccess(fn ($user): bool => $user->can('use-commonbox'))
    ->authorizeMailboxCreation(fn ($user): bool => $user->can('create-commonbox-mailboxes'))
    ->authorizeMember(fn ($user): bool => $user->can('join-commonbox-mailboxes'));

Define these example abilities using your application's Laravel gates or permission system, or replace the callbacks with your own role checks. These ability names are not supplied by Commonbox. Omitted callbacks remain permissive.

Callback Purpose
authorizeAccess Restricts who can open Commonbox. Also applies to mailbox creation and membership eligibility.
authorizeMailboxCreation Further restricts who can connect new mailboxes.
authorizeMember Further restricts which existing users can be granted mailbox access.

#3. Run migrations and publish configuration

php artisan migrate
php artisan vendor:publish --tag=commonbox-config

Commonbox creates its own commonbox_* tables. Configure it in config/commonbox.php:

Setting Default Purpose
user_model null Uses auth.providers.users.model unless a model class is provided.
queue default Queue used for mailbox synchronization and outgoing messages.
sync_interval_minutes 2 Synchronization schedule interval; accepts values from 1 to 59.
initial_sync_days 30 How far back to import when a mailbox first connects.
gmail.client_id Environment value Google OAuth client ID.
gmail.client_secret Environment value Google OAuth client secret.

Credentials are encrypted with your application's encryption key. Preserve that key when deploying or restoring the application.

#4. Start the queue and scheduler

Use an asynchronous queue connection such as database or redis. For queue connections with a retry_after setting, set it above 960 seconds: a mailbox sync job can run for up to 900 seconds. Configure your worker supervisor and, where applicable, your queue service's visibility timeout accordingly. A recommended retry_after value is 1200 (DB_QUEUE_RETRY_AFTER=1200 for Laravel's database queue, or REDIS_QUEUE_RETRY_AFTER=1200 for Redis). Restart local workers after changing their configuration.

Start a worker for the queue selected in commonbox.queue:

php artisan queue:work --queue=default --timeout=900 --tries=3

Commonbox registers its synchronization schedule automatically. If your application's scheduler already runs, no additional schedule entry is needed. For local use:

php artisan schedule:work

In production, run the worker under your process manager and use your existing Laravel scheduler setup. A typical scheduler cron entry is:

* * * * * cd /path/to/your-app && php artisan schedule:run >> /dev/null 2>&1

#5. Check installation

php artisan commonbox:doctor
php artisan schedule:list

The doctor command checks migrations, including saved replies, personal reads, and follow-ups, plus queue and cache configuration. It does this without sending mail or contacting providers. It cannot confirm that a worker is running. schedule:list should include commonbox:sync and commonbox:follow-ups. Check mailbox connection health after the first scheduled sync. Use a shared database or Redis cache across replicas so unique jobs and mailbox locks work across servers.

#Laravel Cloud

Enable Scheduler on the App or worker cluster and add a queue worker listening to the queue in commonbox.queue. Keep workers awake while processing mail. Set retry_after above 960 seconds (1200 recommended), with a 900-second worker timeout. Use the same shared cache for all replicas. See Laravel Cloud's workers and scheduler documentation.

Supply your Privato Composer credentials through a secret COMPOSER_AUTH value using the http-basic entry for dandoingdev.privato.pub; never commit it. Run composer install --no-dev during build and php artisan migrate --force during deployment. Cloud restarts queue workers automatically after deployment. See its private package and deployment guidance.

#Updating a pinned release

Update the version constraint to the desired release, then run:

composer update dandoingdev/filament-commonbox --with-dependencies
php artisan migrate

Commit the application's composer.json and composer.lock and redeploy. A normal composer install deployment installs the locked version; redeploying alone does not fetch a newer package commit. Run commonbox:doctor after upgrading.

#Connect Gmail or Google Workspace

Each application installation uses its own Google OAuth client. Mail and tokens are processed by your application, not by a Commonbox-hosted service.

  1. Create or select a Google Cloud project and enable the Gmail API.
  2. Configure the OAuth consent screen. While testing, add the mailbox's Google account as a test user. For an internal Workspace application, follow Google's eligibility requirements.
  3. Create an OAuth client with the application type Web application.
  4. Open Mailboxes in your Filament panel. Before Google credentials are configured, this page displays your exact callback URL. Add it to the OAuth client's Authorised redirect URIs. It follows this pattern: https://your-app.example/{panel-path}/commonbox/google/callback.
  5. Add your credentials to the application's environment:
COMMONBOX_GOOGLE_CLIENT_ID=your-client-id
COMMONBOX_GOOGLE_CLIENT_SECRET=your-client-secret
  1. Reload your application's configuration and restart long-running queue workers using your normal deployment process.
  2. Open Mailboxes → Connect Gmail, sign in as the mailbox account, and grant the requested permissions. The first synchronization is queued automatically.

Commonbox requests gmail.readonly, gmail.send, and gmail.modify. Read and send keep mail synchronized and allow replies. Modify is required to archive, trash, or move messages in Gmail from Commonbox. Existing connections that were authorized before modify was added continue to sync with read access; managers must Reconnect Google before folder actions that change labels. Consult Google's scope guide and OAuth setup guide for verification requirements and testing-mode token restrictions.

Repeat the connection process for each independent mailbox. Each one has its own credentials, conversation history, and team membership.

#Aliases

A Gmail alias does not have a separate Google login. Mail addressed to an alias arrives through its parent mailbox. Verify the alias as a sending identity in Mailbox settings → Manage team & aliases → Configure alias to reply from it. Alias permissions also control who may send from that address.

#Connect an IMAP mailbox

Open Mailboxes → Connect IMAP and enter:

Section Required details
Mailbox A display name, email address, IMAP username, and password.
Incoming mail IMAP host, port, encryption, and primary folder, usually INBOX.
Outgoing mail SMTP host, port, and encryption. Separate SMTP credentials are optional.

Use the settings provided by your email host. Common configurations are IMAP over SSL/TLS on port 993 and SMTP over STARTTLS on port 587 or SSL/TLS on port 465. Certificate validation and encrypted connections are required. Some providers require an app password.

If separate SMTP credentials are left blank, Commonbox uses the IMAP credentials. Your SMTP provider must permit sending from the mailbox's configured email address.

The first synchronization is queued after saving. Commonbox discovers mailboxes (folders) on the server, enables Inbox and Sent by default, and imports those folders with peek fetches so messages are not marked read at the provider. Other folders stay off until a manager enables them under Mailbox settings. After a successful SMTP send, Commonbox appends a copy to the detected IMAP Sent folder.

#Give your team access

The person connecting a mailbox becomes its first manager. To add colleagues, open Mailboxes → Manage team, search by name or email, and select an eligible user. The picker reads commonbox.user_model, falling back to auth.providers.users.model, and excludes people who already have access. Panel, Commonbox membership, tenant access rules, and the model's query scopes apply to both the picker and the final grant.

Role Permissions
Agent Read, compose, reply, forward, assign conversations, change conversation state, snooze or remind, and add internal notes.
Manager All agent permissions, plus manage mailbox membership, connections, shared signatures, and saved replies.

Users only see mailboxes they belong to. Inbox, with no mailbox selected, combines those mailboxes; the phone selector labels that choice All inboxes. It does not expose other teams' mail. Managers cannot remove their own manager access.

When using Filament tenancy, mailboxes are scoped to the current panel and tenant. A user added to a tenant mailbox must also be able to access that tenant.

#Work with conversations

  • Inbox contains incoming conversations that need attention. Reading one does not remove it from the workload.
  • Sent contains conversations with outgoing messages, including queued or unconfirmed sends (check each message's delivery status). It can overlap other views: a replied-to conversation can still need attention.
  • Awaiting reply contains conversations explicitly set to waiting.
  • Resolved contains finished conversations; All conversations keeps the complete history. Incoming and outgoing messages stay together within each thread.
  • Choose a mailbox or one of its aliases to browse its inbox. Under each mailbox in the rail, synced provider folders list how many conversations are unread for you; choosing one filters conversations in that folder. Changing folder or search clears the selection. Nested folders keep their own names and show their full path. A folder also matches mail in its subfolders.
  • The default Inbox hides mail already known to be archived, trashed, or in spam at the provider. Mail with no folder row yet stays visible until a sync records its location.
  • Use Archive, Trash, and Move in the conversation toolbar or bulk bar for the open mailbox’s enabled folders. Archive removes Gmail’s Inbox label (or moves IMAP mail to the Archive folder when one is detected). Trash moves mail to the provider trash. From a custom folder, Move updates that folder’s membership only. These actions update the provider; team workflow status, assignee, star, and each person's unread state stay in Commonbox.
  • Inbox, mailbox, and alias badges count conversations that still need a reply and are not snoozed. That count is shared by the team. Snoozing a conversation removes it from those badges without changing its status. The unread dot, folder counts, and the unread for you total are personal: opening a conversation marks it read only for you, and Mark unread flags it unread only for you. A later incoming message is unread again for each member.
  • In a thread with more than one message, a long message folds. Show full message expands it, and Show less folds it again.
  • A reply opens over the conversation. The thread dims behind it. Click that dimmed area, or press Escape, to close the reply.
  • Choose Full page to fill the browser viewport, then Return to Filament to restore the admin layout. The toggle preserves your draft and selection.
  • Drag the edge of the conversation list to resize it. Arrow keys adjust the width, and double-click resets it. The width is remembered in this browser.
  • Use the Assign to me icon in the conversation toolbar to claim an unassigned conversation. It will not replace another person's assignment.
  • Filter by assigned to you, unassigned, starred, snoozed, reminders, or resolved conversations.
  • Search from the header by subject, people, preview text, or advanced mail filters. See Search your mail.
  • Select conversations to act on them together. Use a conversation’s checkbox, Shift-click to select a range on the current page, or the checkbox in the list header to select that page. You can mark the selection read or unread, star or unstar it, assign it to yourself, remove an assignment, move it between needs reply, awaiting reply, and resolved, or archive, trash, and move it among provider folders. Assigning to yourself never replaces a teammate who already has the conversation. These actions follow the same access rules as opening a conversation.
  • Assign a conversation to a mailbox member, then resolve it when finished.
  • Choose Reply to send email or Internal note to leave context for the team.
  • Use Compose and select the sending mailbox to start a conversation. New outgoing conversations appear in Sent, not Inbox.
  • Send keeps the current workflow state. Open the adjacent arrow menu for Send & wait or Send & resolve. These actions move the conversation only after delivery is confirmed; failed or cancelled sends do not finish the work.
  • Change the Conversation status selector to move a thread manually. A later customer reply returns waiting or resolved conversations to Inbox.
  • A new message or later workflow change takes precedence over a queued send action. Syncing sent mail does not reopen conversations. Older incoming mail dated before a workflow decision does not undo that decision.

Stars, assignments, and resolution are shared team state within Commonbox. Unread state belongs to each person. None of these are written back as Gmail starred/unread/important labels or IMAP flags. Provider folder membership is synchronized separately (see above).

If a conversation changes while you are writing, Commonbox asks you to review the latest messages before sending. Drafts save automatically after a short pause in typing and before switching conversations. Reply and internal-note drafts are separate, private to their author, and restored when reopened. Compose keeps one draft per user per mailbox. Wait for Draft saved before closing the page; unsaved changes and uploads trigger a browser exit warning. If you lose your connection, keep the page open until saving succeeds.

If another tab changes the same draft, Commonbox says so and blocks stale saves, sends, and discards. Copy any unsaved text before choosing Reload saved draft. A reply opens when its draft already has text, recipients, a subject, or attachments. Discard draft appears only then, and removes that text and those attachments. A successful queue submission consumes the draft; validation errors preserve it.

#Snooze, reminders, assignment, and mentions

Use Snooze or set a reminder inside a conversation. Snooze hides it from Inbox, Assigned to me, Unassigned, and Awaiting reply until the chosen time. It stays in Starred, Sent, Resolved, All conversations, and provider folders. A reminder leaves the conversation in the reply views. Presets are Snooze 1 hour, Snooze 24 hours, and Remind in 24 hours. The custom time stays hidden until Custom is chosen. Presets and custom times use your browser's timezone; the server stores UTC. An info icon explains the difference. There is one shared follow-up per conversation: scheduling a reminder replaces a snooze, and scheduling a snooze replaces a reminder. Scheduling a follow-up does not change the conversation status.

Snoozed lists conversations with a snooze time. Reminders lists reminders and due follow-ups. When due, commonbox:follow-ups clears the schedule, sets the status to Needs reply, and shows a Follow-up due badge. Sent-only and archived conversations are included, and a due follow-up is shown in Inbox even when its mail is archived. This command is registered every minute with Laravel's scheduler and does not contact providers. The inbox refreshes every 30 seconds. Unsnooze clears the snooze and leaves the status unchanged. Dismiss clears a reminder or the due badge. A newer incoming reply, or an explicit status change, cancels the follow-up. Older mail replayed by synchronization does not. Use in:snoozed, is:snoozed, is:reminder, and is:due in header search.

Assignment appears on conversation rows and in the labeled Assigned to control. Assignment changes do not send personal notifications. In an internal note, choose @ Mention a teammate or type @[email protected]. Only explicitly mentioned, eligible mailbox members receive a Filament database notification. Repeated mentions in the same note produce one notification; self-mentions, plain email addresses, and @everyone do not notify anyone. Notes and notification links retain mailbox and restricted-alias access checks. No note body or subject is copied into the notification, and no notification email is sent.

For mention notifications, configure the host app's standard Laravel / Filament notification infrastructure:

  1. Add Illuminate\Notifications\Notifiable to the configured user model.
  2. Create Laravel's notifications table if your application does not already have it (php artisan make:notifications-table, then php artisan migrate). Match the notifiable ID column to your user IDs, using uuidMorphs or ulidMorphs where appropriate.
  3. Enable ->databaseNotifications() on the Filament panel to show the notification bell. Filament's normal polling displays new mentions.

Mention notifications are stored synchronously, so a retried note cannot duplicate them. When panel database notifications are disabled, notification setup is missing, or delivery fails, the note still saves. A Filament warning explains that some mentions were not notified. Available recipients still receive their notifications; failed deliveries are isolated and unexpected errors are reported through Laravel. Skipped mentions are not automatically retried when notifications become available. Commonbox does not create or remove the host application's notifications table. Run php artisan migrate after updating the package to install the follow-up columns.

#Search your mail

Use the header search from any inbox, or press ⌘K, Ctrl+K, or / outside an input to focus it. Search covers all conversations you can access, including waiting, resolved, archived, trashed, and spam mail. It is independent of the sidebar's current view. Choosing a sidebar view clears the search; Clear search returns to the previous view. Changing a query resets pagination and bulk selection, and saves your current private draft before showing results.

Open Advanced search filters beside the search field to choose multiple mailboxes and folders, people, dates, workflow, read state, stars, and attachment filters. Selected mailboxes are combined with OR; selected folders are combined with OR. Different filter categories narrow the results together. Applying the builder adds filters to the current query. Reset filters clears the builder; Clear search clears the whole query. A folder also matches mail in its subfolders. Trash, Archive, and Spam stay available in search even when their sync checkbox is off. Other folders are available when sync is enabled or they contain imported messages. Quick filters find unread mail, attachments, your assignments, starred conversations, or mail from the last seven days.

Type operators directly for more control:

Filter Examples
Provider content or strict body content:"payment received", body:"reference 123"
Subject or people subject:"annual report" from:jamie to:[email protected] cc:alex bcc:sam
Mailboxes and aliases mailbox:[email protected] alias:[email protected]
Folders or labels folder:Invoices, label:Invoices, folder:"[email protected]/Clients.Acme"
Location in:inbox, in:sent, in:archive, in:trash, in:spam, in:anywhere
Read state and stars is:unread, is:read, is:starred, is:unstarred
Workflow status:open, status:waiting, status:resolved, status:sent
Assignment assigned:me, assigned:none, assignee:[email protected], is:assigned
Attachments and notes has:attachment, filename:pdf, has:note
Individual attachment size larger:2MB, smaller:500KB, size:1000000 (larger than this many bytes)
Dates and relative periods after:2026-10-01 before:2026-11-01, newer_than:7d, older_than:3m

Separate terms with spaces or AND. Use uppercase OR, NOT, a leading minus to exclude, and parentheses to group alternatives. For example: (subject:invoice OR subject:receipt) -from:newsletter has:attachment. Double quotes preserve phrases; inside quotes, escape quotes and backslashes with \" and \\. Quote an entire term to search an operator literally, such as "subject:invoice". Percent signs and underscores are literal characters.

Sender, recipient, and date conditions in each AND branch must match the same email. Attachment filename and size conditions must match the same attachment; when combined with sender/date conditions, it belongs to that matching email. Folder, workflow, star, and assignment filters apply to the conversation. from:me finds messages authored by you in Commonbox; to:me uses your account's email address. after: includes the chosen date; before: excludes it. Calendar dates use app.timezone, while relative periods count back from now. Sizes accept bytes or KB/MB/GB using multiples of 1024.

Default text search covers synchronized subjects, message previews, senders, and recipient metadata, including later messages in a conversation. It does not fetch provider message bodies. Internal note bodies and private draft contents are not searched. To include email content, use the options below. Mailbox, alias, folder, and assignee names are case-insensitive exact matches; subjects, people, filenames, and plain search terms use case-insensitive substring matching. Database collation determines non-ASCII case folding.

Invalid operators, malformed quotes, impossible dates, and oversized or overly complex queries show a correction message and no results. Queries are limited to 2,048 characters, 80 tokens, eight nested groups, 32 OR combinations, and 256 expanded conditions. Permissions apply before every search, including OR and negated groups; search never grants access to another mailbox, tenant, or restricted alias.

#Search message content without storing it

Enable Include message content in advanced search to extend ordinary words and phrases to provider search, or type content:"payment received" directly. Press Enter, Search, or submit the advanced filters to start. Typing alone does not contact providers. Queries containing only metadata operators, such as subject:invoice, continue to use the local database even with this option on.

Gmail uses its existing search index and returns matching message IDs, including Spam and Trash. IMAP uses server-side TEXT search restricted to imported UIDs; identity headers are checked first to detect moved messages or reused UIDs. Provider search matching follows that provider's rules, so tokenization and phrase matching may differ. Content results also include matching local metadata and queued emails already held by Commonbox. Only already synchronized, currently authorized messages can appear; this does not import older mail or search private draft text or internal note text. Commonbox does not download attachment files for search, although a provider's existing index may include their text. Strict body checks exclude attachment content.

Use Message body contains or body:"reference 123" for strict body matching. Commonbox retrieves candidate bodies into memory, converts HTML to visible text, and checks a case-insensitive substring with whitespace normalized. Sender, recipient, and date filters narrow which messages must be fetched. Subject text alone cannot satisfy a body filter. Body matching does not use Gmail's index as a prefilter, which avoids missing substrings that its token-based search may not find. Multiple body terms on an AND branch must match the same message.

The UI processes bounded steps, shows progress, and offers Cancel search. Cancellation stops subsequent work; a provider request already in progress may finish, but its response cannot publish cancelled results. Editing the query, changing content mode, or navigating to a sidebar view cancels the previous search.

Bodies and snippets are never written to search storage or a new content index. Temporary cache entries contain only IDs, ownership and query fingerprints, provider cursors, progress, and status. Results are private to the current user, panel, and tenant. Permissions and the candidate snapshot are checked again after provider requests and before displaying results. If access, message identities, folder membership, or the eligible message set changes, run the search again.

Results are published only when every required check completes. Disconnected mailboxes, expired searches, provider failures, changed IMAP identities, timeouts, and exceeded budgets show an explicit incomplete state with no result count. This also protects exclusions such as -body:secret, which cannot be evaluated safely from a partial search. Sync or reconnect affected mailboxes, or narrow by mailbox, sender, or date, then retry.

Configure budgets in commonbox.search:

Setting Default Purpose
max_messages 1000 Maximum candidate messages for content search; clamped to 1–1000.
max_body_messages 200 Maximum candidates for strict body checks. Exclusions may require checking every message in candidate conversations.
max_provider_pages 20 Maximum native-search pages or folder chunks per term and mailbox.
provider_timeout_seconds 10 Network timeout for content-search provider operations.
max_duration_seconds 300 Overall search deadline.
ttl_seconds 900 Temporary result lifetime; queries must be resubmitted after expiry.

At most eight different body/content terms can be used per search, in addition to the normal grammar limits. Relative date filters are anchored when the search starts. Continue using a cache store with atomic locks; receiving and sending workers are not needed for content search itself. No additional migrations or Google OAuth scopes are needed for content search.

#Forwarding, formatting, and signatures

Choose Forward on an email to create a separate private draft in the same mailbox. It quotes the selected message with its sender, date, subject, To, and CC, and copies its attachments, including embedded images. Original BCC recipients and internal notes are never included. A forward starts with empty recipients; enter the people who should receive it. Opening Forward again restores your draft. If the original message or an attachment cannot be fetched, forwarding stops without creating a partial draft. Normal attachment limits apply. Source alias restrictions also apply to the forwarded conversation and are checked again before queued delivery.

The email composer supports Bold, Italic, Underline, links, bullet and numbered lists. Insert inline image uploads PNG, JPEG, GIF, or WebP images; these are embedded in the email rather than linked to private application URLs. Removing an inline attachment also removes its image from the draft. Pasting inserts plain text; apply formatting with the toolbar. Email includes both HTML and plain-text alternatives. Internal notes retain the plain-text composer.

Open Signature settings in the composer to save a default. Each user can set Me in this mailbox; managers can also set Everyone in this mailbox or This sending alias when an alias is selected. Defaults use the personal signature first, then the alias signature, then the mailbox signature. Clear a default to fall back to the next one. Signatures are entered as plain text and inserted with their line breaks preserved.

New email drafts include the applicable signature once, above quoted content in forwards. Existing drafts retain their text; Insert signature adds the current default explicitly. Changing From replaces an automatically inserted signature while its text is untouched. Signature settings affect future drafts and never add text to internal notes. Personal defaults are separate for each mailbox.

After upgrading, run php artisan migrate to create signature storage, the forward-source reference used by queued sends, and per-person read records.

#Shared saved replies

Mailbox managers can open Mailbox settings → Saved replies on a mailbox card and create, edit, or delete common responses. Templates are shared with that mailbox's members. Agents can use them; managers maintain them. Template bodies and custom placeholder defaults are encrypted in the database.

In compose or reply, open Saved replies, search by name, choose a response, review its values, and select Insert saved reply. Existing text and formatting are preserved, and the response is inserted before an automatically applied signature. The result is saved to your private draft. Templates use plain text with paragraphs; format the inserted response in the rich-text composer as needed. Internal notes do not use saved replies.

Placeholders follow the Mustache-style {{placeholder_name}} convention. Type {{ followed by a key prefix in the template editor or message composer for suggestions. Use ↑/↓ to select, Enter or Tab to accept, and Escape to dismiss. There are no expressions, conditionals, nested substitutions, or executable code.

Built-in placeholders:

Key Value
{{recipient.name}} Known conversation sender's name, when replying to that address
{{recipient.email}} First To recipient
{{sender.name}} Current user's name
{{sender.email}} Selected sending address, including aliases
{{mailbox.name}} Mailbox display name
{{mailbox.email}} Mailbox's primary address
{{conversation.subject}} Conversation subject, or subject of the new message

Under Custom placeholders, define a key such as order_number, a label such as “Order number”, and an optional default. Keys start with a lowercase letter and contain lowercase letters, numbers, or underscores (up to 50 characters). Define the placeholder before using it in a saved reply. A placeholder already used by a template cannot be deleted until it is removed from that template.

For example:

Hi {{recipient.name}},

Your order {{order_number}} is on its way.
Track it here: {{tracking_url}}

Best wishes,
{{sender.name}}

Known context and defaults prefill the form, and you can adjust them for each message. Unknown recipient names on new messages are requested explicitly. If you type placeholders directly into a message, their fields appear below the editor; select Apply placeholder values to resolve them. These pending values are stored with the encrypted private draft and restored after reload. Completed values are inserted as safe text, preserving existing formatting and line breaks. Messages containing unresolved double-brace placeholders cannot be queued for sending. This convention reserves {{…}} for placeholders in outgoing mail.

Run php artisan migrate after updating to create the saved reply and placeholder tables. commonbox:doctor checks that these migrations have been applied.

#Recipients and reply-all

To accepts multiple email addresses separated by commas or semicolons. Use CC / BCC to reveal the additional recipient fields. Enter plain email addresses, without display names. Commonbox validates and deduplicates up to 50 recipients across all three fields.

Reply all uses the latest incoming message's Reply-To (or sender), To, and CC, excluding the sending mailbox and duplicate addresses. It never copies incoming BCC recipients. BCC recipients on outgoing messages are visible to your mailbox team but hidden from email recipients. Internal notes never send email.

#Attachments

Use Attach files in a reply, new message, or internal note. Files stay with the draft across reloads. Incoming Gmail and IMAP attachments appear beneath messages with permission-checked download buttons. Files are downloaded, never rendered inline. Existing imported messages are not backfilled with attachments.

The defaults are 10 MB per file, 20 MB total, and 10 files per message. Change attachments.max_file_kb, attachments.max_total_kb, and attachments.max_count in config/commonbox.php to adjust them. Incoming files above these limits retain their filenames and sizes; open them in your email provider. Livewire's temporary upload rules, PHP's upload_max_filesize / post_max_size, and your web server's request limits must also allow your chosen sizes. Provider message limits still apply, including MIME encoding overhead.

Draft payloads and attachment contents are encrypted in the application database using Laravel's application key. Back up that key along with your database and allow capacity for encoded file content. Livewire handles temporary uploads using its configured temporary storage and cleanup. Attachment downloads require current mailbox access; draft files additionally require their author's account.

#Alias inboxes and access

Incoming mail discovers alias addresses from Delivered-To / X-Original-To delivery headers, or same-domain To/CC recipients when the primary mailbox address is absent from To/CC. Already discovered aliases are also recognized on later messages. External To/CC correspondents are not automatically treated as aliases. Discovery depends on headers preserved by your provider; it does not query the provider's alias directory.

Discovered aliases appear beneath their connected mailbox, each with its own count of conversations that need a reply. On small screens, use the inbox selector. They inherit mailbox access until a manager chooses Mailbox settings → Manage team → Alias inboxes → Configure alias. Add an optional label (up to 60 characters), such as Billing, to shorten the sidebar, inbox heading, and mobile selector. The full address remains in the sidebar tooltip and mailbox settings. Clear the label to show the address again. Select Restrict to selected members and choose the mailbox members who may access that alias. With nobody selected, only mailbox managers have access. Managers always retain access to their mailbox's aliases.

Restrictions apply to entire conversations, including search, counts, drafts, attachments, assignments, and queued sends. A conversation addressed to multiple restricted aliases requires access to all of them. Removing a member from a mailbox also removes their alias grants. Changing alias access clears assignments that are no longer eligible, and queued replies are checked again before delivery.

For messages imported before alias discovery was installed, run:

php artisan migrate
php artisan commonbox:discover-aliases

The discovery command uses saved To/CC addresses and preserves existing alias restrictions.

#Sending from aliases

Managers can configure a discovered alias or add an address from any domain using Manage team & aliases → Add an alias. New aliases receive mail but cannot send until verified.

  • Gmail: first add and verify the address in Gmail’s Send mail as settings, then choose Verify with Gmail & enable in Commonbox. Commonbox uses the existing Gmail read permission to check approved identities; no additional OAuth scope is needed. The provider approval is checked again immediately before each alias send.
  • IMAP/SMTP: choose Send SMTP test & enable. This sends a test email from the alias to the connected mailbox. SMTP acceptance enables the address, but does not prove delivery or that the provider preserved the From header. Check the delivered test email before using the identity. Updating the SMTP connection invalidates previous verification and requires another test.

The From selector is available for new messages, replies, and reply-all. Replies prefer a verified alias addressed on the latest incoming message; otherwise they use the connected mailbox. Composing from an alias inbox selects that alias when verified. The chosen address is saved in your private draft. An unavailable saved identity must be replaced explicitly; Commonbox never silently changes it at send time.

Only users with access to a restricted alias can select it. Sending from an alias also links the conversation to that alias so its access restrictions apply. Managers can disable sending without removing received mail or changing alias permissions. Queued messages are cancelled if the sending identity loses access or verification.

#Maintain your connections

Mailbox cards show the last successful sync and send, recent failure times, and connection health: awaiting first sync, syncing, up to date, delayed, stalled, disconnected, or reconnect required. A warning also appears in the composer when its mailbox needs attention. Receiving and sending errors are tracked separately; a successful sync does not hide an outstanding send failure.

Expired or revoked Google access prompts reconnection. Provider throttling, outages, permissions, and authentication failures show specific recovery guidance. Provider error text is never displayed or stored in these diagnostics. A delayed sync (at least ten minutes by default) points to the scheduler or queue worker; a sync running for over twenty minutes is marked stalled. These statuses are based on observed sync activity, not a background probe of your infrastructure.

Use Sync now to queue a mailbox sync. To queue synchronization for all enabled mailboxes from the command line:

php artisan commonbox:sync

The initial import covers the last 30 days by default. Change initial_sync_days before connecting if you need a different period. Later syncs overlap the previous successful sync by one day and skip messages already imported.

Use Reconnect Google or Edit connection for IMAP to replace connection credentials while preserving conversations and memberships. Reconnect Google when mailbox settings report that modify permission is missing and you need archive, trash, or move. Existing passwords are never displayed in the edit form. To use a different email address, connect a new mailbox.

Managers can enable additional Gmail labels or IMAP folders under Mailbox settings. Inbox and Sent sync by default. Custom folders appear in the inbox rail after they are enabled and a sync completes. Trash and Spam are imported in the background, including mail older than the initial sync window, even when their sync checkbox is off. IMAP does the same for Archive and for folders nested under Trash, Archive, or Spam. Gmail Archive is covered by the normal sync window, not that older-mail backfill. Nested folders keep their own names, remember which folder contains them, and show their full path. Choosing a folder, or searching it, includes that folder and its subfolders. Gmail category, starred, unread, and important system labels are ignored so they do not conflict with team stars or each person's unread state.

Disconnect removes stored credentials and stops future synchronization and sending while retaining conversation history. To retire a Google connection completely, also revoke the application's access in your Google account.

#Troubleshooting

Symptom What to check
Gmail connection button is disabled Both Google environment values must be configured and available to the running application.
Google reports a redirect mismatch Copy the exact callback URL, including its scheme, host, port, and panel path, into your OAuth client.
First sync or a reply stays queued Check the queue connection, worker status, and the queue name in commonbox.queue.
New mail does not appear automatically Check that Laravel's scheduler is running and the mailbox is enabled.
A mailbox shows “Needs attention” Check the provider credentials, host settings, network access, and TLS certificates, or reconnect Google.
A colleague cannot see a mailbox Check panel access, Commonbox access, mailbox membership, and tenant access if applicable.
A reply shows “Delivery unconfirmed” Check your provider's delivery records or Sent folder before sending again; the provider may have accepted the message.
Archive, trash, or move asks to reconnect The Gmail connection needs the gmail.modify scope. A manager should Reconnect Google and grant the updated permissions.
A custom folder is missing from the rail Enable it under Mailbox settings and wait for the next successful sync.

Commonbox does not automatically retry an uncertain send because doing so could send duplicate email. After a confirmed SMTP send, Commonbox appends a copy to the IMAP Sent folder when one is detected. Removing a sender's mailbox membership or panel access, or disconnecting a mailbox, cancels their queued messages when processed.

#Integrate with an audit log

Listen for Dandoingdev\Commonbox\Events\InboxActivity in your application's event configuration. Its activity property contains the actor ID, mailbox ID, optional conversation ID, action, and metadata. Activity records do not include message bodies, note bodies, or credentials.

#Message content

Commonbox stores the metadata needed to list and manage mail. Opening a conversation loads the body from Gmail or IMAP, and downloading an attachment fetches those bytes at that moment. Neither is saved in the database.

  • The reading pane still renders HTML in a sandboxed frame and sizes the frame to the message. Remote images stay hidden until a reader chooses Show images.
  • If the provider cannot return a message, the conversation stays in place and the reading pane says it could not be loaded.
  • Internal notes, drafts, and queued replies remain in Commonbox until the provider has the message.

#Current limitations

  • Incoming HTML is rendered in a sandboxed frame from the provider’s current copy. The frame keeps the sender’s layout and styles, and it cannot run scripts, submit forms, or restyle the Filament page. Remote images stay hidden until a reader chooses Show images. Plain-text URLs and email addresses are clickable, and links open in a separate tab.
  • After upgrading, run the package migrations. That clears previously stored bodies and attachment bytes for mail Commonbox can read from the provider again. Opening a message requires the mailbox connection to be working.
  • Scheduled sending is not available.
  • Team workflow state (open, waiting, resolved), assignee, and star are shared. Unread state is personal. None of these are written to the provider. Provider folder membership syncs two ways; Gmail category/starred/unread/important labels and IMAP read flags are not mirrored as Commonbox state.
  • Long conversations load all messages; evaluate performance with your expected mailbox sizes before production use.

#Licence and support

Commonbox is proprietary software. Review the licence terms presented at checkout before purchasing. Publishing this documentation does not grant redistribution rights to the plugin source.

For installation questions or support, contact dandoingdev. Include your PHP, Laravel and Filament versions and the output of php artisan commonbox:doctor, with any private values removed. Never share mailbox passwords, Google tokens, licence keys or customer email content.

The author

DanDoingDev avatar Author: DanDoingDev

I advise founders and engineering leaders on clarity, delivery, and building AI into how teams ship, after 19 years in tech and a decade leading organisations, most recently as Senior Director of Product Engineering at Luno. Limited advisory and fractional capacity; mentoring via MentorCruise.

Plugins
1
Stars
1