This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MASTER PRE-REQS | |
# Install docker, docker-compose | |
# mkdir -p ~/{jenkins,jnlp_slave} | |
# master | |
# docker run -d \ | |
# -u root \ | |
# --name=jenkins \ | |
# -e TZ=America/Denver \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import xml.etree.ElementTree as ET | |
import requests | |
url = 'https://<ZIMBRA_SERVER_URL>:7071/service/admin/soap' | |
headers = { 'Content-Type': 'application/soap+xml' } | |
# Get the credentials through zmlocalconfig | |
# zmlocalconfig zimbra_user |
Para apresentar o Subject no log precisamos configurar isso no header checks. O header checks nas versões 6+ vem por padrão desabilitado. Portanto vamos habilitar no nível global.
zmprov mcf zimbraMtaBlockedExtensionWarnRecipient FALSE
Agora no arquivo /opt/zimbra/conf/postfix_header_checks.in adicionar ao arquivo a seguinte linha:
Code examples from this stack overflow answer.