Skip to main content

Add a Campaign Banner to Zimbra Signatures for a Set Time

Every message your company sends is a small advertising space: a webinar, a trade fair stand, a product launch, the holiday opening hours. The hard part is not adding a banner but removing it on time, from every signature, on the right day. With MSH Zimbra Rules, the banner is a signature rule of its own with a date range. It appears under the signature on the first day and disappears after the last, with nobody having to remember it.

What you get​

From November 2 to 19, every new message from the company ends with the webinar banner, under the sender's usual signature. This is how it looks in the Modern Zimbra web client:

A message from James Carter in the Modern Zimbra web client: his text, his Sales signature with photo, and under it a blue banner Free webinar, November 19, 11:00 CT, Automate your Zimbra mail rules, with a yellow Register button

  • The signatures stay as they are. The banner is a separate rule and template, so the company and department signatures do not change for the campaign.
  • It switches itself off. On November 20 the rule no longer matches, and messages go out without the banner.
  • The whole banner is a link to the registration page, and the image travels inside the message, so it shows without loading anything from the internet.

How it works​

Every signature rule that matches adds its template. That is usually something to avoid, see Different Email Signatures per Department in Zimbra, but here it is exactly what you want: the signature rule adds the signature, and the banner rule adds the banner under it.

RuleConditionExceptionScheduler
Your signature rulesunchangedunchangedAlways on
Webinar banner (new)Sender in the domainMessage type ReplyNov 2 to Nov 19, 2026, America/Chicago

Before you start​

  • A signature rule, such as the one from One Email Signature for the Whole Company in Zimbra. The banner works without one too, then it is the only thing added.
  • The banner image, about 600 pixels wide and 100 high for the message. Make it twice as large, 1200 by 200, so it stays sharp on high-resolution screens, and keep it small in bytes: it travels with every message.
  • The landing page the banner links to.

Step 1 - Make the banner template​

The template is a few lines of Html around the image, and a text line for plain-text messages:

webinar-banner.html
<div style="margin-top:14px">
<a href="https://www.example.com/webinar"><img src="webinar-banner.png" width="600" height="100" alt="Free webinar on November 19, 11:00 CT: Automate your Zimbra mail rules. Register at example.com/webinar" style="display:block;border:0;max-width:100%;height:auto"></a>
</div>
webinar-banner.txt
Free webinar on November 19, 11:00 CT: Automate your Zimbra mail rules.
Save your seat at https://www.example.com/webinar

Write the main message in the alt text too: many mail clients block images until the reader allows them, and the alt text is then all they see.

Open Content > Templates, click Add Template... and choose Import from files.... Name the template Webinar banner, upload the Html file with Upload Html file... and the image with Upload images..., and keep Attach images. On the Text tab upload the text file. Click Save.

The Templates page with the Add Template menu button
Step 1 of 7

In Content > Templates, open Add Template....

Step 2 - Add the banner rule with a date range​

Open Rules > Signature Rules and click Add Rule.... Name the rule Webinar banner, and on the Signature tab choose the template Webinar banner.

  • Conditions: Add > Sender > Sender, In Domain, your domain.
  • Exceptions: Add > Message > Type, Reply. A banner in every reply of a thread is too much; new messages and forwards are enough.
  • Scheduler: choose Custom schedule, click Add, set Date from to November 2, 2026 and Date to to November 19, 2026, keep All day and No pattern, and click OK. Then choose your Time zone, here America/Chicago.

Click Save. Keep the banner rule below the signature rules in the list: the banner then comes after the signature, as on the message above.

The General tab of a new signature rule named Webinar banner
Step 1 of 10

Add a signature rule named Webinar banner.

The schedule is checked against the time the message reached the server, in the time zone of the rule, not against the sender's clock, see Scheduler.

Step 3 - Test it inside and outside the dates​

Inside the dates, send a real message: log in to the Zimbra web client and write to a colleague. Outside the dates, you do not have to wait: the Rules tester takes the date of a test message as the time it reached the server. On the Details tab of a Custom... test message, set Sent date to a day after the campaign and send it.

A new message from James Carter to Aisha Okafor in the Modern Zimbra web client, Join our webinar on November 19, with no signature typed
Step 1 of 4

On November 6, inside the dates, write a new message in the web client and click Send.

Variations​

  • Customers only. Add a second condition, Message > Direction, Outgoing, and keep All conditions are met. Colleagues then do not see the campaign; customers do.
  • One department. Use In Group instead of In Domain, for example to run a sales campaign only in the Sales team's mail.
  • Recurring banners. For the holiday opening hours every year, add one time range per season to the same rule. The entries of a schedule are combined with OR.
  • The next campaign. Edit the rule: choose another template on the Signature tab and change the dates. The change reaches every server within a minute.

If the banner is not what you expect​

  • No banner inside the dates. Check the time zone of the rule and the trace: the Checking scheduler line shows the time the message arrived in that zone. A message sent just after midnight in New York is still on the previous day in Chicago.
  • The banner is above the signature. Check the order in the list of signature rules: keep the banner rule below the signature rules, with Move Up and Move Down.
  • The banner is in every reply. The Reply exception is missing.
  • Readers see an empty box. Their mail client blocks images. They see the alt text instead, so keep the message there.

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