Zimbra log with subject line
Results 1 to 3 of 3

Thread: Zimbra log with subject line

  1. #1
    Member
    Join Date
    Jun 2012
    Posts
    21

    Zimbra log with subject line

    Dear Cine,

    I am having zimbra 8.X open source edition. we want zimbra.log with mail subject line.

    I have refer bellow link however unable fulfill requirement.

    Logging subject line in zimbra.log?.

    Kindly requested Please suggest.

    Thanks,

    shashikant sutar

  2. #2
    Member
    Join Date
    Jun 2012
    Posts
    21
    Dear All,

    Please find the bellow steps to full-fill above requirement.

    1] vi /opt/zimbra/conf/custom_header_checks and add bellow line

    /^Subject:/ WARN subject

    Note:- do not change anything from line.

    2] Edit /opt/zimbra/bin/postfix

    postconf -e header_checks=pcre:/opt/zimbra/conf/postfix_header_checks,pcre:/opt/zimbra/conf/custom_header_checks

    Note:- Add above line before " ${zimbra_home}/postfix/sbin/postfix "$@"" line.

    Save file.

    3] Run bellow command
    su - zimbra
    postfix reload

    Thanks,
    shashikant sutar

  3. #3
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,365
    Hello Shashikant!

    Since this post is not relevant to ZeXtras Suite or any ZeXtras Product, I moved it to the "Zimbra HowTo" section.

    Thus said, editing the "postfix" binary (or any binary in general) is a big NO-NO for many reasons.

    While what you ask can be done in different ways, my colleagues and I prefer to keep customization separated from the default files, so this is what we usually do:

    - Create a new file called "custom_header_checks" in /opt/zimbra/conf/
    - Add the following line to the file:
    Code:
    /^subject:/ WARN
    - Add the new file to the list of header checks:
    *check current setting*
    Code:
    zimbra@mail:~$ zmlocalconfig | grep -i header_checks
    postfix_header_checks = pcre:/opt/zimbra/conf/postfix_header_checks
    *change the current setting*
    Code:
    zmlocalconfig -e postfix_header_checks='pcre:/opt/zimbra/conf/postfix_header_checks, regexp:/opt/zimbra/conf/custom_header_checks'
    zmprov mcf zimbraMtaBlockedExtensionWarnRecipient FALSE
    - Restart the MTA
    Code:
    zmmtactl reload
    Have a nice day,
    Cine
    the ZeXtras Team

LinkBacks (?)

  1. 07-29-2014, 09:57 PM

Bookmarks

Posting Permissions

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