# Client portal branding, email and domain

Put your firm's name, logo, colour and cover on Truetask client pages, send client email from your own address, and serve the portal on your own domain.

URL: https://docs.truetask.io/clients/branding

A client reads your firm, not Truetask.
Their pages, the email they get and, with a client domain, the address in their browser all carry your name.

## What client pages wear

Client pages take the workspace's brand from **Settings > General > Workspace**, under **Identity**.

| Setting | On client pages |
| --- | --- |
| **Logo** | At the top of every page, in every client email, and beside your messages in their conversation. |
| **Workspace name** | Beside the logo, in client email subject lines, and as the email's sender when no sender name is set. |
| **Accent colour** | The colour of the buttons on their pages, and of the banner when you set no cover. |
| **Cover** | The banner across the top of every page. Cropped to a wide strip. PNG, JPG or WebP. |

Set any part of a brand and none of Truetask's marks appear on client pages.
A workspace that sets none gets the Truetask logo and a **Made with Truetask** line, because a blank square where a mark goes looks broken.

The brand is read before anyone signs in, so the sign-in page already wears it.
See [Workspace settings](https://docs.truetask.io/admin/workspace).

## Client email

### Who it comes from

Two optional settings sit in the same **Identity** section:

| Setting | What it does | Left empty |
| --- | --- | --- |
| **Sender name for client emails** | The name a client sees an email is from. | Your workspace name. |
| **Sender address for client emails** | The address client email comes from. | The workspace's own sender address. |

Your mail server must be allowed to send from the address you type.
If it is not, the message fails the receiving server's checks and never arrives, the sign-in code included.

### What a client is emailed

| Email | When | Can they stop it |
| --- | --- | --- |
| Sign-in code | They ask for one. | No |
| A page handed over | You share a task with **Email them the link** on, or press **Send the link**. | Yes |
| Things asked of them | You add requests. A batch is one email. | Yes |
| A reminder | Something they owe has gone quiet. See [Reminders](https://docs.truetask.io/clients/reminders). | Yes |
| Something sent back | You turn an answer down with a reason. | Yes |
| A reply | You write in their [Client conversation](https://docs.truetask.io/clients/conversation). The email carries your words. | Yes |

Booking, signing and payment send email of their own, described on [Booking](https://docs.truetask.io/clients/booking), [Signatures](https://docs.truetask.io/clients/signatures) and [Payments](https://docs.truetask.io/clients/payments).

Some things send nothing, on purpose: editing the words, panels or fields on a share, a client changing a field, a task moving to another list, a file arriving, a request answered, and a task finished.
A firm's clients are not to be written to more often than the firm expects.

### Their language

A client's language is theirs, never the workspace's.

1. Set it on their row in [Settings > Members & Teams > Clients](https://docs.truetask.io/clients/managing) when you know it.
2. Otherwise it is learned from their browser on their first contact, the moment they ask for a sign-in code, so even the first code arrives in their language.
3. Once learned it is not overwritten, so opening a link on a colleague's computer does not change it.
4. A language never learned is English.

Client email is written in English, Spanish, French, German and Portuguese.

### Stopping the emails

Every optional email ends with a link to a page, **Stop these emails**, with one button, **Stop them**.
Mail apps' own unsubscribe buttons work too.
**Start them again** on the same page turns them back on.

The sign-in code still arrives after a client stops the rest, so their page keeps working.
You can restart the emails for a client who asks you to, from their row in Settings, but you cannot stop them on a client's behalf.

### When an address fails

A mail server that refuses a message marks the client's row **Email failing** in Settings, with the reason and the date.
See [Managing clients](https://docs.truetask.io/clients/managing#editing-a-client).

Nothing rolls back when an email fails: the request, the share or the message is already on the client's page.

> **Self-hosted only**
>
> Client email goes through the instance's own SMTP server.
> Without working mail a client cannot get a sign-in code, and the sign-in page says so rather than pretending a code is coming.
> See [SMTP](https://docs.truetask.io/self-hosted/smtp).

## Client domain

By default, client pages open on your workspace's address.
A client domain puts them on yours instead, such as `clients.yourfirm.com`, and every link in a client's email follows.

Open **Settings > General > Client domain**.
Owners and admins only.

![The Client domain pane with a domain added, Not verified, and the TXT and CNAME records to publish](https://docs.truetask.io/screenshots/client-domain.webp)

> **Truetask Cloud only**
>
> Adding a client domain needs a paid plan on Truetask Cloud, or a running trial.
> A domain already in use keeps working if the plan changes.

### Adding the domain

Type the host your clients will open, such as `clients.yourfirm.com`, with no `https://` and no path, and press **Add**.
A workspace has one client domain at a time, because every client link is built from one address.

### The two DNS records

Under **Add two records**, the pane shows both records with their values filled in, ready to copy.

| Type | Name | Value | What it does |
| --- | --- | --- | --- |
| TXT | `_truetask-verify.` and your host | `truetask-verify=` and a token | Proves the domain is yours. |
| CNAME | Your host | Your workspace's address | Brings the host to the workspace. |

Most DNS providers add your domain to whatever you type as a name, so the pane shows each name the way your provider's form wants it typed, with the domain trailing it in grey.
It reads which provider your domain uses and offers a button to that provider's own DNS page, such as **Open Cloudflare DNS**, plus a line saying where the records go there.
When it cannot tell, **Choose your DNS provider** picks one.
**Ask ChatGPT how** hands your own records to ChatGPT for a walkthrough, where the workspace is allowed to reach the internet.

A host that is your whole domain cannot take a CNAME, and the pane says so: use your provider's ALIAS or ANAME record, or an A record to the same address.

The two records are independent.
You can publish the TXT record and prove the domain before pointing the CNAME.

### Verifying

Press **Verify** once the TXT record is published.
A new record can take a few minutes to be visible, longer at some providers.
You do not have to come back: Truetask checks again every hour.

| State | What it means |
| --- | --- |
| **Not verified** | Added, nothing proven yet. Nothing is served on it. |
| **Waiting for the certificate** | The TXT record was found, so the domain is yours. A certificate can now be issued for it. |
| **Live** | The host answers your workspace over HTTPS with a valid certificate. Every client link uses it. |
| **Not answering** | It was live and has stopped. Client links have gone back to the workspace's own address. |

Until the domain is live, the pane says **Until it is live, clients use** your workspace's address.
Once it is, it says **Clients open their pages at** your domain.

The **Certificate and routing** section shows the last check and what it found, in plain words, and **Certificate valid until** a date.
**Check now** runs the check at once.

### When it stops answering

After three failed checks in a row, client links go back to the workspace's own address with nobody acting.
Every page keeps working there, so a client gets a plainer link, never a dark page.

Proving the domain in your own DNS before anything is routed or issued is what keeps one workspace from claiming another's domain.

### Removing the domain

Choose **Remove** beside the domain and confirm.
It stops serving client pages, and every client link goes back to the workspace's own address.
Nothing a client already has goes dark.

> **Truetask Cloud only**
>
> There is nothing else to configure.
> Truetask obtains and renews the certificate once the domain is verified.

## Certificates on a self-hosted install (Self-hosted)

Truetask proves which hosts are yours, but it does not obtain certificates: the reverse proxy in front of your install does.
Point it at one endpoint, `GET /v1/client-domains/tls-allowed?domain=<host>`, which answers 200 for a host your workspace has proved and refuses every other.

With Caddy, on-demand TLS asks that endpoint before every certificate:

```caddyfile
{
	on_demand_tls {
		ask http://truetask-caddy/v1/client-domains/tls-allowed
	}
}

truetask.yourcompany.com {
	reverse_proxy truetask-caddy:80
}

https:// {
	tls {
		on_demand
	}
	reverse_proxy truetask-caddy:80
}
```

Replace `truetask-caddy` with however your proxy reaches the stack.
Never run `on_demand` without an `ask`: an open on-demand site tries to get a certificate for any name pointed at it.

With nginx, Traefik or anything else, obtain the certificate the way you already do, and serve the host by proxying all of it to the stack, as you serve the workspace's own address.
A script that reads the same endpoint before writing a site keeps the proxy and the workspace in agreement.

Two things have to be right on the install:

- **Proxy the whole host, not just `/client`.**
A client page loads the app's own scripts and your logo, so the client domain has to reach the stack for every path.
- **`PUBLIC_URL` is the address people really reach.**
The CNAME points at it, and client pages compare the arriving host against it.
Without it set, the pane has nothing to point a CNAME at and says so.

### Troubleshooting

| The check says | Usually |
| --- | --- |
| No TXT record exists at `_truetask-verify.` and the host | The record is missing, or not visible yet. |
| The host carries a different value | The record was added at the wrong name, or holds an old token. The pane shows the value to paste. |
| The host does not resolve | The CNAME is missing. |
| The certificate is not valid, or expired | The proxy's certificate does not match the host, or a renewal stopped working. With Caddy, check the proxy can reach the `ask` endpoint. |
| The host answers, but not from this workspace | The host reaches another workspace, another server, or a proxy's own page. |
| The host redirects instead of serving the client page | The proxy bounces the host to another address. It has to serve the page on your domain. |
| The host could not be reached, while clients say it works | The check runs from inside the install. A network that does not route its own public address back to itself fails it. Give the install a route to its own public name. |

## Related

- [Workspace settings](https://docs.truetask.io/admin/workspace)
- [Client portal](https://docs.truetask.io/clients/)
- [Managing clients](https://docs.truetask.io/clients/managing)
- [Install](https://docs.truetask.io/self-hosted/install)
