Results 1 to 3 of 3

Thread: [SOLVED] HTML signatures via zmprov CLI

  1. #1
    Join Date
    Apr 2008
    New Paltz, NY
    Rep Power

    Default [SOLVED] HTML signatures via zmprov CLI

    Hello all,

    I'm having a problem getting HTML signatures setup via zmprov's CLI. I've looked through lots of different forum posts and the answers I see there do not seem to work for me.

    For example:
    zmprov ma zimbraPrefMailSignatureHTML "someHTML"

    This does place the zimbraPrefMailSignatureHTML in the settings (verified with zmprov ga) but it doesn't appear in the ZWC settings for the signature. It still shows a blank "Signature #1".

    I tried instead using the zmprov modifysignature command that is in the documentation but I can't seem to craft the correct command for it. I've tried the following:

    zmprov msig Test "<some html>"

    where 'Test' is the name of an existing HTML signature on the account that I want to replace. This just shows me the zmprov help so I obviously have the command wrong.

    If I use zmprov gsig for my own account I get three things (a normal signature - plain text, an existing HTML signature that I manually put in via the ZWC, and the 'zimbraPrefMailSignatureHTML' that I added at first which didn't seem to have an effect. Below is what zmprov gsig gives for my own user (phone/email redacted):

    Any advice you can give (especially using zmprov msig with an HTML signature) would be very much appreciated).

    # name Work
    zimbraPrefMailSignature: ------------------------------------------
    Paul Chauvet
    UNIX/Linux Systems Administrator
    State University of New York at New Paltz
    zimbraPrefMailSignatureHTML: <table width='100%' cellpadding='15' summary='used for layout'><tr><td><img width='252' height='71' src='' alt='State University of New York at New Paltz logo' /><br /><br /><p>other text here</p></td><td>Paul Chauvet, UNIX & Linux Systems Administrator/><br />Phone: (845) 257-xxxx<br />Fax: (845) 257-xxxx<br /><a href=''></a><br /></td></tr></table>
    zimbraSignatureId: 7f945003-738e-4e28-a521-de5748626ad0
    zimbraSignatureName: Work

    # name Test
    zimbraPrefMailSignatureHTML: <p>Paul Chauvet<br>UNIX/Linux Systems Administrator<br>Computer Services<br>New Paltz, NY 12561-2443</p>

    <p>Phone: (845) 257-xxxx<br>
    Fax: (845) 257-xxxx<br></p><br><img src=""><br>
    zimbraSignatureId: 77bc4e4d-3421-4466-9a2f-734285d9cb64
    zimbraSignatureName: Test

  2. #2
    Join Date
    Jul 2007
    Rep Power


    here is the script i used to add a company signature to a person, ignore the mess of formatting

    /opt/zimbra/bin/zmprov csig $1 ourcompany-zimbra-sig zimbraPrefMailSignatureHTML '<div><div><div><div><div><div><div><font style="color: rgb(0, 68, 124);" size="2"><span style="color: rgb(0, 68, 124); font-weight: bold; font-family: arial,helvetica,sans-serif;">___________________________________</span><br style="font-family: arial,helvetica,sans-serif;"><br style="color: rgb(0, 68, 124); font-weight: bold; font-family: arial,helvetica,sans-serif;"><span style="color: rgb(0, 68, 124); font-weight: bold; font-family: arial,helvetica,sans-serif;">&lt;CHANGE NAME&gt;</span><br style="color: rgb(0, 68, 124); font-family: arial,helvetica,sans-serif;"><span style="font-weight: bold; color: rgb(166, 180, 172); font-family: arial,helvetica,sans-serif;">&lt;CHANGE TITLE&gt;<br></span><span style="color: rgb(166, 180, 172);"><br style="font-family: arial,helvetica,sans-serif;"><span style="color: rgb(0, 0, 0);"><span style="font-family: arial,helvetica,sans-serif;">COMPANY NAME</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">COMPANY ADDRESS</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">Baltimore, MD ZIPCODE</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">PHONE NUMBER P</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">FAX NUMBER F</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">WEBSITE</span><br style="font-family: arial,helvetica,sans-serif;"><br style="font-family: arial,helvetica,sans-serif;"><br></span></span><span style="font-weight: bold; color: rgb(153, 153, 153);"><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"></span></span></span></font></div></div></div></div></div></div></div>'

  3. #3
    Join Date
    Apr 2008
    New Paltz, NY
    Rep Power


    Maybe I should have tried just creating a new signature instead of attempting to modify one. Many thanks bdial - that did the trick!

Similar Threads

  1. HTML Signatures
    By amnz in forum Users
    Replies: 5
    Last Post: 06-21-2011, 01:18 AM
  2. html signatures, embedded images from shared briefcase
    By captainmish in forum Administrators
    Replies: 5
    Last Post: 03-17-2010, 08:38 AM
  3. [SOLVED] can not find the CLI commands like zmprov
    By Gil Bauman in forum General Questions
    Replies: 1
    Last Post: 05-19-2009, 04:11 AM
  4. Domain alias with zmprov
    By Klug in forum Administrators
    Replies: 2
    Last Post: 03-25-2009, 07:49 AM
  5. Moving to different server
    By AaronW1000 in forum Installation
    Replies: 2
    Last Post: 07-03-2008, 07:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts