Skip to main content

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:

A message from Andrew Collins to Aisha Okafor in the Classic Zimbra web client, ending with the Sales signature: his photo, Andrew Collins in orange, VP of Sales, Example Software Sales, Phone +1 312 555 0150, his own mobile number, email and New York office

SenderGroupsSignature
Andrew Collins, VP of SalesSalesSales signature
Henry Adams, Customer Success ManagerSupportSupport signature
Daniel Kim, Support Team LeadSales and SupportSales signature, see Step 3
Ava Sullivan, HR GeneralistneitherCompany 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:

RuleConditionExceptions
Company signatureSender in the domainSender in Sales, or sender in Support
Sales signatureSender in Salesnone
Support signatureSender in SupportSender 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:

TabFieldValue
PersonalPhoto{photo:80}
PersonalPhone+1 312 555 0150, the sales line, instead of {phoneNumber}
CompanyCompanyExample Software Sales, instead of {company}
DesignPrimary colorThe 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.

The signature wizard with the Template Name Sales signature
Step 1 of 5

Start a template with Add Template... > Signature wizard... and name it Sales signature.

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.

The Signature Rules page with User Signature with Photo and Company signature, and the Add Rule button
Step 1 of 8

In Rules > Signature Rules, click Add Rule....

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.

The Signature Rules page with Company signature, Sales signature and Support signature
Step 1 of 6

Double-click Company signature to edit it.

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:

The Support signature previewed with Henry Adams: his name in green, Customer Success Manager, Example Software Support, the support line +1 312 555 0160, his mobile number, email and office
Step 1 of 4

The Support signature with Henry Adams's details: the support line, his own mobile number.

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.

Small differences, one template

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.

Want to try it on your own server? Start a free trial.