| Welcome to the Zimbra :: Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | 
04-15-2010, 07:27 AM
| | Advanced Member | |
Posts: 178
| | [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 user@ourdomain.edu 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 user@ourdomain.edu 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). Quote:
# name Work
zimbraPrefMailSignature: ------------------------------------------
Paul Chauvet
UNIX/Linux Systems Administrator
State University of New York at New Paltz
845-257-xxxx xxxxxx@newpaltz.edu
------------------------------------------
zimbraPrefMailSignatureHTML: <table width='100%' cellpadding='15' summary='used for layout'><tr><td><img width='252' height='71' src='http://www.newpaltz.edu/styleguide/toolbox/emlogo.png' 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='http://www.newpaltz.edu'>www.newpaltz.edu</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>
www.newpaltz.edu</p><br><img src="http://www.newpaltz.edu/styleguide/toolbox/emlogo.png"><br>
zimbraSignatureId: 77bc4e4d-3421-4466-9a2f-734285d9cb64
zimbraSignatureName: Test | | 
04-15-2010, 07:40 AM
| | | here is the script i used to add a company signature to a person, ignore the mess of formatting Code: #!/bin/bash
/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;"><CHANGE NAME></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;"><CHANGE TITLE><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>' | 
04-15-2010, 07:55 AM
| | Advanced Member | |
Posts: 178
| | Maybe I should have tried just creating a new signature instead of attempting to modify one. Many thanks bdial - that did the trick! | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |