Different Email Signatures per Department in Zimbra
One company signature is a good start. Then Sales wants its own color and the sales line instead of everyone's desk phone, and Support wants the support line. With MSH Zimbra Rules, each department gets its own template and its own signature rule, chosen by the Zimbra group the sender is in. This article adds a Sales and a Support signature next to the company signature, and makes sure that every sender gets exactly one of them.
What you get
A message from sales ends with the Sales signature: the name in orange, the department after the company name and the sales line as the phone number. Everything else still comes from the sender's own entry in the directory:

| Sender | Groups | Signature |
|---|---|---|
| Andrew Collins, VP of Sales | Sales | Sales signature |
| Henry Adams, Customer Success Manager | Support | Support signature |
| Daniel Kim, Support Team Lead | Sales and Support | Sales signature, see Step 3 |
| Ava Sullivan, HR Generalist | neither | Company signature |
How MSH Zimbra Rules picks a signature
Every signature rule whose conditions match adds its signature. There is no "first rule wins": a sales user who matches both the company rule and the Sales rule gets both signatures, one under the other. The Exceptions of each rule are what keeps it to one:
| Rule | Condition | Exceptions |
|---|---|---|
| Company signature | Sender in the domain | Sender in Sales, or sender in Support |
| Sales signature | Sender in Sales | none |
| Support signature | Sender in Support | Sender in Sales |
The last exception decides who wins for users in both groups. Here it is Sales; put the exception on the Sales rule instead to give them the Support signature.
Before you start
- The company signature from One Email Signature for the Whole Company in Zimbra, or any signature rule for the whole domain. This article builds on it.
- One Zimbra distribution list per department, with its members. The rules match the sender by the lists they are a member of, synced by the directory service. The Groups tab of your domain under Domains lists them with their members.
Step 1 - Make a template for each department
Open Content > Templates, click Add Template..., choose Signature
wizard... and name the template Sales signature. Then replace the values that are the
same for the whole department with fixed text, and keep the variables for the rest:
| Tab | Field | Value |
|---|---|---|
| Personal | Photo | {photo:80} |
| Personal | Phone | +1 312 555 0150, the sales line, instead of {phoneNumber} |
| Company | Company | Example Software Sales, instead of {company} |
| Design | Primary color | The color of the department, here orange |
Click Save. Make the Support signature the same way, with the support line
+1 312 555 0160, Example Software Support and green.
Step 2 - Add a signature rule for each department
Open Rules > Signature Rules, click Add Rule... and name the rule
Sales signature. On the Signature tab choose the template Sales signature.
On the Conditions tab click Add, choose Sender > Sender and then In Group. Open Group, type the name of the list and select it. Click OK and Save. In Group matches the members of the list, not mail sent from the list's own address, see Message sender.
Add the Support signature rule the same way, with the template Support signature
and the group Support.
Step 3 - Make sure nobody gets two signatures
As it stands, a sales user matches the company rule and the Sales rule, and gets both
signatures. Double-click the rule Company signature, open Exceptions and add two:
Sender > Sender, In Group, Sales, and the same with Support. Leave Any
exception is met chosen, so that a member of either group is skipped, and click
Save.
Then give the Support signature rule one exception, In Group Sales, for the users
who are in both lists.
Step 4 - Check who gets which signature
Preview with user on the Templates page shows a template with the details of any user. Use it to see each department's signature before anyone sends a message. To see which rules a sender's message matches, send a test message from them in the Rules tester and open its Processing trace. Here Daniel Kim, who is in both groups, is the interesting case:
Then send a real message from a member of each department. The message at the top of this article is Andrew Collins's, with the Sales signature.
One signature per domain or brand
A server that hosts several companies works the same way, with In Domain instead of In Group: one template with the brand's name, colors and phone number per domain, and one rule per domain with the condition Sender > Sender > In Domain. Since a sender is in one domain only, these rules need no exceptions between them. Department rules inside a domain still need the exceptions of step 3.
When the departments differ in a word or two, a single template can do it with a
comparison block on the sender's department from the directory, for example
{#eq department "Sales"}Example Software Sales{else}Example Software{/eq}, see
Comparison blocks. Separate templates are
easier to read and to hand over to a designer when the layouts differ.
If a signature is not what you expect
- Two signatures under one message. Two rules matched. Open the message's processing trace in the Rules tester or in Message history: every rule that says applied added a signature. Add an exception to the rule that should not.
- A department member gets the company signature. They are not in the group the rule looks for, or the directory has not synced since they were added. Check the group's members under Domains, and run Sync on Directory service.
- The wrong department for users in two groups. The exception decides it: the rule without the exception wins. Move the exception to the other rule.
- A user sends as the list, for example from
sales@. In Group matches members, not the list's own address. Add a condition Sender > Sender > Group for mail sent from the list itself.
Related reading
- One Email Signature for the Whole Company in Zimbra
- the company signature this article builds on
- Signature rules - every tab of a signature rule
- Conditions and exceptions - what a signature rule can match
- Variables - the values a template can use, and the
{#if}and{#eq}syntax
Want to try it on your own server? Start a free trial.






















