{"id":306984,"date":"2020-07-15T15:01:11","date_gmt":"2020-07-15T15:01:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=306984"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=306984","title":{"rendered":"Zimbra \u2014 \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f HTML \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 LDAP"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/511094\/\">\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0412 \u0412\u0435\u0431-\u0410\u0434\u043c\u0438\u043d\u043a\u0435 Zimbra \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043a \u043f\u0438\u0441\u044c\u043c\u0430\u043c. \u041f\u0435\u0440\u0435\u043b\u043e\u043f\u0430\u0442\u0438\u0432 \u043a\u0443\u0447\u0443 \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432 \u2014 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u041d\u0438\u0445 \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442.<\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0439, \u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u043b\u043e\u0431 \u2014 \u043d\u0430\u0439\u0442\u0438 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043a\u0443\u0447\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0438\u043b. <\/p>\n<p>  \u0421 \u043c\u043e\u0435\u0439 \u0436\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u044d\u0442\u043e \u0432\u043a\u043b\u0430\u0434 \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e, \u0437\u0430 \u0440\u0430\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>  \u0441\u0438\u0441\u0442\u0435\u043c\u0430: Linux Ubuntu 18.04<br \/>  \u0432\u0435\u0440\u0441\u0438\u044f Zimbra: Zimbra 8.8.15<\/p>\n<h3>\u0421\u043a\u0440\u0438\u043f\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 HTML \u043f\u043e\u0434\u043f\u0438\u0441\u0438<\/h3>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u2026 \u043d\u0438\u0436\u0435 \u0434\u0430\u043c \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430. <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # created by Parfentiev Aleksey, Shultz Denis   SRC_LOGO=&quot;https:\/\/mail.domen.ru\/home\/it@domen.ru\/Briefcase\/Logo\/tl_logo.png&quot; SRC_TXT=&quot;\u041b\u041e\u0413\u041e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438&quot; SIGN_NAME=&quot;\u041f\u043e\u0434\u043f\u0438\u0441\u044c_\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438&quot; DOMEN=&quot;domen.ru&quot;   # Check for run as zimbra user ID=`id -u -n` if [ x$ID != &quot;xzimbra&quot; ]; then    echo &quot;Please run as ZIMBRA user&quot;    echo &quot;Exiting...&quot;    exit 1 fi   # Obtain all user accounts in $DOMEN (template: Family.IN@domen.com or family.in_jr@domen.com) accounts=`zmaccts | grep 'active'| grep $DOMEN | grep -P &quot;(\\b[A-z]+)\\.(\\D{2,5}@).*&quot; | awk '{print $1}'`   for ac in $accounts; do   echo -ne &quot;Checking account: $ac \\t&quot;       # Try delete signature     \/opt\/zimbra\/bin\/zmprov dsig $ac $SIGN_NAME       echo -ne &quot;Setting signature... &quot;       # Obtain signature from LDAP user atributes       declare -A arr     mapfile -t ARRAY &lt; &lt;(\/opt\/zimbra\/bin\/zmprov ga $ac | egrep &quot;(^cn|^title|^mobile|^zimbraPrefFromAddress|^st|^l|^street|^telephoneNumber|^pager|^postalCode)&quot; | sed 's\/: \/:\/')     for sgn in &quot;${ARRAY[@]}&quot; ; do         KEY=${sgn%%:*}         VALUE=${sgn#*:}         arr[$KEY]=$VALUE     done       HTML='&lt;div style=&quot;display: inline-block;&quot; data-mce-style=&quot;display: inline-block;&quot;&gt;'     HTML+='&lt;br&gt;&lt;table style=&quot;width: 550px; border: 0; border-top: 1px #e0e0e0 solid;&quot; align=&quot;left&quot; data-mce-style=&quot;width: 550px; border: 0; border-top: 1px #e0e0e0 solid;&quot;&gt;'     HTML+='&lt;tbody&gt;'     HTML+='&lt;tr&gt;&lt;td style=&quot;width: 87px; padding: 5px;&quot; valign=&quot;middle&quot; align=&quot;center&quot; data-mce-style=&quot;width: 87px; padding: 5px;&quot;&gt;'     HTML+='&lt;img src=&quot;'$SRC_LOGO'&quot;  alt=&quot;'$SRC_TXT'&quot;&gt;&lt;\/td&gt;'     HTML+='&lt;td style=&quot;font-size: 10pt; color: #808080; font-family: georgia, serif; width: 389px;&quot; data-mce-style=&quot;font-size: 10pt; color: #808080; font-family: georgia, serif; width: 389px;&quot;&gt;'     HTML+=&quot;${arr['cn']} - ${arr['title']}   &lt;br&gt;\u0442\u0435\u043b: ${arr[&quot;telephoneNumber&quot;]} \u0434\u043e\u0431.${arr[&quot;pager&quot;]}   \u043c\u043e\u0431: ${arr[&quot;mobile&quot;]}&quot;     HTML+=&quot;&lt;br&gt;e-mail: ${ac} &lt;br&gt;${arr['postalCode']} ${arr['st']} ${arr['l']} ${arr['street']}&lt;\/td&gt;&lt;\/tr&gt;&lt;\/tbody&gt;&lt;\/table&gt;&lt;\/div&gt;&quot;     unset arr       # Set signature for account $ac and obtain signature id account     sign_id=$(\/opt\/zimbra\/bin\/zmprov csig $ac $SIGN_NAME zimbraPrefMailSignatureHTML &quot;$HTML&quot;)     # Obtain delegates mailbox accounts     mapfile -t ARRAY &lt; &lt;(\/opt\/zimbra\/bin\/zmprov gid $ac name | cut -d &quot; &quot;  -f 3-7 | grep -P '[^.*]')     for gid in &quot;${ARRAY[@]}&quot; ; do     # Set defalt signature position (outlook (before) or internet (after attachments)) for each account     \/opt\/zimbra\/bin\/zmprov modifyIdentity $ac &quot;$gid&quot; zimbraPrefDefaultSignatureId $sign_id zimbraPrefForwardReplySignatureId $sign_id zimbraPrefMailSignatureStyle outlook     done     echo &quot;done!&quot;<\/code><\/pre>\n<p>  \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u0445\u043e\u0441\u0442\u043e\u0432\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443, \u043b\u044e\u0431\u044b\u043c \u0412\u0430\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. <\/p>\n<p>  \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \/usr\/local\/bin\u2026 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b zm_sign_html.sh \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u0443\u0442\u0438 \u0438 copy\/paste\u2026<\/p>\n<pre><code class=\"bash\">sudo -i # \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 sudo user # \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b  \/usr\/local\/bin\/zm_sign_html.sh touch \/usr\/local\/bin\/zm_sign_html.sh # \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c copy\/paste # \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c chmod 755 \/usr\/local\/bin\/zm_sign_html.sh <\/code><\/pre>\n<p>  <\/p>\n<h3>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/h3>\n<p>  <\/p>\n<ol>\n<li>\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f zimbra ( \u043a\u043e\u043c\u0430\u043d\u0434\u044b CLI \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f zimbra).<br \/>  \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443\u2026 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 runuser \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0437-\u043f\u043e\u0434 root.  <\/li>\n<li>\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u0435.\n<p>  \u0423 \u043d\u0430\u0441 \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439:<\/p>\n<p>  family.in@domen.ru \u0438\u043b\u0438 family.in_jr@domen.ru<\/p>\n<p>  \u0433\u0434\u0435: family \u2014 \u0444\u0430\u043c\u0438\u043b\u0438\u044f \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0435\u0439.<br \/>   in \u2014 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u044b \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/>   in_jr \u2014 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u044b \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c (\u0434\u043b\u044f \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0432\u043f\u0430\u043b\u0438 \u0424\u0430\u043c\u0438\u043b\u0438\u044f.\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u044b).<\/p>\n<p>  \u041e\u0442\u0441\u044b\u043b\u043a\u0430 \u043a \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435: <a href=\"https:\/\/habr.com\/ru\/post\/114079\/\">\u041a\u0430\u043a \u044f \u0432\u043d\u0435\u0434\u0440\u044f\u043b Zimbra<\/a><\/p>\n<p>  \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044f\u0449\u0438\u043a ivanov.aa@domen.ru \u043f\u043e\u043f\u0430\u0434\u0435\u0442 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u0430 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u044f\u0449\u0438\u043a zavod@domen.ru \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043d. <\/p>\n<p>  \u0417\u0430 \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430 <i>grep -P &quot;(\\b[A-z]+)\\.(\\D{2,5}@).*&quot;<\/i> \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <\/p>\n<pre><code class=\"bash\">accounts=`zmaccts | grep 'active'| grep $DOMEN | grep -P &quot;(\\b[A-z]+)\\.(\\D{2,5}@).*&quot; | awk '{print $1}'` <\/code><\/pre>\n<p>  <\/li>\n<li>\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0441 \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c SIGN_NAME ( \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0435\u0442 \u2014 \u0431\u0443\u0434\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u044d\u0442\u043e\u0439 CLI \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0439\u0434\u0435\u0442 \u0434\u0430\u043b\u0435\u0435 )   <\/li>\n<li>\u041f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.\n<p>  \u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441 LDAP, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c HTML \u043f\u043e\u0434\u043f\u0438\u0441\u044c (\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f HTML \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435).<\/p>\n<pre><code class=\"bash\"> mapfile -t ARRAY &lt; &lt;(\/opt\/zimbra\/bin\/zmprov ga $ac | egrep &quot;(^cn|^title|^mobile|^zimbraPrefFromAddress|^st|^l|^street|^telephoneNumber|^pager|^postalCode)&quot; | sed 's\/: \/:\/') <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c, \u043a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043f\u043e\u043b\u0435\u0439: cn, title \u0438 \u0442.\u0434.<\/p>\n<p>  \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0410\u0434\u043c\u0438\u043d\u043a\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nn\/5o\/my\/nn5omyx3rvtqijf5a9263b9w_-a.jpeg\"\/>  <\/li>\n<li>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u0434\u0435\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432 (\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0442 \u0438\u043c\u0435\u043d\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a) \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.\n<p>  \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u043a\u0430\u0436\u0443 \u043d\u0430 \u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 (\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2014 \u041f\u043e\u0434\u043f\u0438\u0441\u0438).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nk\/oz\/uc\/nkozucxqh0t_fjxjnkojxznlelk.jpeg\"\/><\/p>\n<p>  \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u043f \u043f\u0440\u043e\u0444\u0438\u043b\u044c (\u0437\u0434\u0435\u0441\u044c \u043e\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u00ab\u0418\u0442 \u043e\u0442\u0434\u0435\u043b\u00bb, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0442 \u0418\u043c\u0435\u043d\u0438\u00bb \u0438\u043b\u0438 \u00ab\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u043a\u00bb).<\/p>\n<p>  \u0422\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0434\u043e\u043f. \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u0438 \u0434\u043b\u044f \u041d\u0438\u0445 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u044c. <\/p>\n<p>  \u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">\/opt\/zimbra\/bin\/zmprov modifyIdentity $ac &quot;$gid&quot; zimbraPrefDefaultSignatureId $sign_id zimbraPrefForwardReplySignatureId $sign_id zimbraPrefMailSignatureStyle outlook<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>zimbraPrefMailSignatureStyle<\/i>: outlook \u2014 \u043f\u0435\u0440\u0435\u0434 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438, internet \u2014 \u043f\u043e\u0441\u043b\u0435\u2026<\/p>\n<p>  \u0421\u0430\u043c\u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0432 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2014 \u0423\u0447\u0435\u0442\u043d\u044b\u0435 \u0417\u0430\u043f\u0438\u0441\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/s-\/rk\/vi\/s-rkviskxcpk8utlk_uskj6miue.jpeg\"\/>  <\/li>\n<li>\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u044c.  <\/li>\n<li>\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.  <\/li>\n<\/ol>\n<p>  <\/p>\n<h3>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432<\/h3>\n<p>  <b>SRC_LOGO<\/b>=\u00ab<a href=\"https:\/\/mail.domen.ru\/home\/it@domen.ru\/Briefcase\/Logo\/tl_logo.png\">mail.domen.ru\/home\/it@domen.ru\/Briefcase\/Logo\/tl_logo.png<\/a>\u00bb \u2014 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u044f\u0449\u0438\u043a \u043e\u0442\u0434\u0435\u043b\u0430 \u0418\u0422 (it@domen.ru). \u0412 Zimbra \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 (\u041f\u043e\u0440\u0442\u0444\u0435\u043b\u044c). \u0412 \u044f\u0449\u0438\u043a\u0435 \u043e\u0442\u0434\u0435\u043b\u0430 \u0418\u0422 \u0432 \u041f\u043e\u0440\u0442\u0444\u0435\u043b\u0435, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 LOGO, \u0432 \u043d\u0435\u0451 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u0442\u0438\u043f \u041d\u0430\u0448\u0435\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jo\/bc\/fo\/jobcfousehzm16ceypi9vysqily.jpeg\" alt=\"image\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u041d\u0430\u0448\u0435\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: <br \/>  <a href=\"https:\/\/mail.domen.ru\/home\/it@domen.ru\/Briefcase\/Logo\/tl_logo.png\">mail.domen.ru\/home\/it@domen.ru\/Briefcase\/Logo\/tl_logo.png<\/a><\/p>\n<p>  <b>SRC_TXT<\/b>=\u00ab\u041b\u041e\u0413\u041e \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438\u00bb \u2014 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<\/p>\n<p>  <b>SIGN_NAME<\/b>=\u00ab\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f\u00bb \u2014 \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 ( \u043c\u043e\u0436\u043d\u043e \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0442\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u043f\u043e-\u0440\u0443\u0441\u0441\u043a\u0438).<\/p>\n<p>  <b>DOMEN<\/b>=\u00abdomen.ru\u00bb \u2014 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0434\u043e\u043c\u0435\u043d, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u0438.<\/p>\n<h3>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/h3>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c crontab \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f zimbra:<\/p>\n<pre><code class=\"bash\">sudo su zimbra crontab -e <\/code><\/pre>\n<p>  \u0411\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b, \u0432 crontabe \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0444\u043e\u043d\u043e\u0432\u044b\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f zimbra (\u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u043a\u0446\u0438\u044f\u043c\u0438 ZIMBRA_START \u0438 ZIMBRA_END).<\/p>\n<p>  \u0414\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u041d\u0430\u0448\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430\u2026 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u043a\u043e\u043d\u0446\u0435! <\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \/usr\/local\/bin\/zimbra\/zm_sign_html.sh \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0432 6:00.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 crontab:<\/p>\n<pre><code class=\"bash\"># 35 3 * * * \/opt\/zimbra\/bin\/zmcbpadmin --cleanup &gt;\/dev\/null 2&gt;&1 # ZIMBRAEND -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRASTART 0 6 * * * \/usr\/local\/bin\/zm_sign_html.sh <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u043a\u0430 \u0432\u0441\u0435. \u041c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 e-mail. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u2014 \u0434\u043e\u043f\u043e\u043b\u043d\u044e.<br \/>  \u041f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0445\u2026<\/p>\n<p>  \u0412\u0441\u0435\u043c \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f! \u0418 \u043d\u0435 \u0431\u043e\u043b\u0435\u0442\u044c!<\/p>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438<\/h3>\n<p>  <a href=\"http:\/\/phas13.blogspot.com\/search\/label\/Zimbra\">phas13.blogspot.com\/search\/label\/Zimbra<\/a><br \/>  <a href=\"https:\/\/wiki.zimbra.com\/wiki\/Setting_automatic_Default_Signature\">wiki.zimbra.com\/wiki\/Setting_automatic_Default_Signature<\/a><\/p>\n<p>  P.S.: \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c \u0428\u0443\u043b\u044c\u0446 \u0414\u0435\u043d\u0438\u0441\u0443 (<a href=\"https:\/\/habr.com\/ru\/users\/tlk234\/\" class=\"user_link\">tlk234<\/a>) \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0432 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 Zimbra CLI.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/511094\/\"> https:\/\/habr.com\/ru\/post\/511094\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/511094\/\">\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0412 \u0412\u0435\u0431-\u0410\u0434\u043c\u0438\u043d\u043a\u0435 Zimbra \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043a \u043f\u0438\u0441\u044c\u043c\u0430\u043c. \u041f\u0435\u0440\u0435\u043b\u043e\u043f\u0430\u0442\u0438\u0432 \u043a\u0443\u0447\u0443 \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432 \u2014 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u041d\u0438\u0445 \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442.<\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0439, \u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u043b\u043e\u0431 \u2014 \u043d\u0430\u0439\u0442\u0438 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043a\u0443\u0447\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0438\u043b. <\/p>\n<p>  \u0421 \u043c\u043e\u0435\u0439 \u0436\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u044d\u0442\u043e \u0432\u043a\u043b\u0430\u0434 \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e, \u0437\u0430 \u0440\u0430\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-306984","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/306984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=306984"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/306984\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=306984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=306984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=306984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}