Hi,
So I'm migrating an old server to the last 8.8.15 version,
Previously this client had a script generating signatures based on LDAP attributes and 2 pictures. That was pretty fine but was hard to update for the client.
Now they have an easier way to update the signature and we've done a script doing this :
generating the url to curl the generated personal signature
putting the result in a variable
applying the signature via
zmprov csig <account> Global zimbraPrefMailSignatureHTML "$SIGNATURE"
zmsoap -z -type account -m <account> CreateSignatureRequest/signature @name="global" content="$SIGNATURE" @type="text/html"
This was working well in our test until we got a new image in the signature.
Now we are getting this error "Argument list too long" whenever we're using zmprov or zmsoap.
We double checked the zimbraMailSignatureMaxLength (even put it to 0 for testing purposes).
We've concluded that the problem is caused by the way the HTML signature are handled by zimbra, as we can't simply tell zimbra to use a file I think we are putting to much character on the buffer of the command (there 192k characters caused by base64 pictures)
If we simply copy/paste the curl result in the GUI of zimbra when manually editing a signature using the "source code" option we can install the signature but that is no something we want to do on every account.
Does anyone know a way to give a file in signature to zimbra and avoid putting all the characters in buffer ?
Regards