How to create auto Bcc for Recipient mails for Zimbra 8.6

How to auto copy of all email from bcc2_huupv@mail.huuphan.local to huupv@mail.huuphan.local. Every email recipient of bcc2_huupv@mail.huuphan.local from email another, then automation bcc send to huupv@mail.huuphan.local. 
How to create auto Bcc for Recipient mails for Zimbra 8.6


How to create auto Bcc for sender mails for Zimbra 8.6

To check "recipient BCC Maps" recipient_bcc_maps on your zimbra 8.6
$ postconf | egrep "recipient_bcc_maps"
To configure recipient bbc maps on zimbra 8.6
# su - zimbra
$ cd /opt/zimbra/postfix/conf/
To create recipient_bcc
$ vim recipient_bcc
Input the content as below
bcc2_huupv@mail.huuphan.local huupv@mail.huuphan.local
To add recipient_bcc_maps in main.cf file
$ vim /opt/zimbra/postfix/conf/main.cf
To add the following line in below
recipient_bcc_maps = lmdb:/opt/zimbra/postfix/conf/recipient_bcc
To apply configure recipient_bcc_maps
$ postmap /opt/zimbra/postfix/conf/recipient_bcc
To restart the zimbra postfix
$ postfix reload
To check "Recipient BCC Maps" recipient_bcc_maps on your zimbra 8.6
$ postconf | egrep "recipient_bcc_maps"
The output as below
recipient_bcc_maps = lmdb:/opt/zimbra/postfix/conf/recipient_bcc
File log zimbra.log




Aug 14 15:52:57 mail postfix/smtpd[80438]: connect from mail.huuphan.local[172.16.235.150]
Aug 14 15:52:58 mail postfix/smtpd[80438]: NOQUEUE: filter: RCPT from mail.huuphan.local[172.16.235.150]: <huupv10@mail.huuphan.local>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<huupv10@mail.huuphan.local> to=<bcc2_huupv@mail.huuphan.local> proto=ESMTP helo=<mail.huuphan.local>
Aug 14 15:52:58 mail postfix/smtpd[80438]: 23A9D2309B: client=mail.huuphan.local[172.16.235.150]
Aug 14 15:52:58 mail postfix/cleanup[80442]: 23A9D2309B: message-id=<491555568.5.1502700776934.JavaMail.zimbra@mail.huuphan.local>
Aug 14 15:52:58 mail postfix/qmgr[79376]: 23A9D2309B: from=<huupv10@mail.huuphan.local>, size=1181, nrcpt=2 (queue active)
Aug 14 15:52:58 mail postfix/smtpd[80438]: disconnect from mail.huuphan.local[172.16.235.150]
Aug 14 15:52:58 mail amavis[3275]: (03275-01) ESMTP:[127.0.0.1]:10026 /opt/zimbra/data/amavisd/tmp/amavis-20170814T155258-03275-JnexXveb: <huupv10@mail.huuphan.local> -> <bcc2_huupv@mail.huuphan.local>,<huupv@mail.huuphan.local> Received: from mail.huuphan.local ([127.0.0.1]) by localhost (mail.huuphan.local [127.0.0.1]) (amavisd-new, port 10026) with ESMTP; Mon, 14 Aug 2017 15:52:58 +0700 (ICT)
Aug 14 15:52:58 mail amavis[3275]: (03275-01) Checking: xC4Pvm0Yp6WL ORIGINATING/MYNETS [172.16.235.150] <huupv10@mail.huuphan.local> -> <bcc2_huupv@mail.huuphan.local>,<huupv@mail.huuphan.local>
Aug 14 15:52:58 mail postfix/amavisd/smtpd[80445]: connect from localhost[127.0.0.1]
Aug 14 15:52:58 mail postfix/amavisd/smtpd[80445]: E99D42309C: client=localhost[127.0.0.1]
Aug 14 15:52:58 mail postfix/cleanup[80442]: E99D42309C: message-id=<491555568.5.1502700776934.JavaMail.zimbra@mail.huuphan.local>
Aug 14 15:52:58 mail postfix/qmgr[79376]: E99D42309C: from=<huupv10@mail.huuphan.local>, size=1522, nrcpt=2 (queue active)
Aug 14 15:52:58 mail amavis[3275]: (03275-01) xC4Pvm0Yp6WL FWD from <huupv10@mail.huuphan.local> -> <bcc2_huupv@mail.huuphan.local>,<huupv@mail.huuphan.local>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E99D42309C
Aug 14 15:52:59 mail amavis[3275]: (03275-01) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [172.16.235.150]:43052 <huupv10@mail.huuphan.local> -> <bcc2_huupv@mail.huuphan.local>,<huupv@mail.huuphan.local>, Queue-ID: 23A9D2309B, Message-ID: <491555568.5.1502700776934.JavaMail.zimbra@mail.huuphan.local>, mail_id: xC4Pvm0Yp6WL, Hits: -, size: 1180, queued_as: E99D42309C, 801 ms
Aug 14 15:52:59 mail postfix/smtp[80443]: 23A9D2309B: to=<bcc2_huupv@mail.huuphan.local>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.97, delays=0.07/0.08/0.03/0.78, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E99D42309C)
Aug 14 15:52:59 mail postfix/smtp[80443]: 23A9D2309B: to=<huupv@mail.huuphan.local>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.97, delays=0.07/0.08/0.03/0.78, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E99D42309C)
Aug 14 15:52:59 mail postfix/qmgr[79376]: 23A9D2309B: removed
Aug 14 15:52:59 mail amavis[3275]: (03275-01) extra modules loaded: /opt/zimbra/zimbramon/lib/x86_64-linux-thread-multi/auto/Net/SSLeay/autosplit.ix, /opt/zimbra/zimbramon/lib/x86_64-linux-thread-multi/auto/Net/SSLeay/randomize.al, Convert/UUlib.pm, IO/Socket/SSL.pm, Net/SSLeay.pm, unicore/lib/gc_sc/Digit.pl, unicore/lib/gc_sc/SpacePer.pl
Aug 14 15:52:59 mail postfix/lmtp[80449]: E99D42309C: to=<bcc2_huupv@mail.huuphan.local>, relay=mail.huuphan.local[172.16.235.150]:7025, delay=0.68, delays=0.01/0.02/0.13/0.52, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
Aug 14 15:52:59 mail postfix/lmtp[80449]: E99D42309C: to=<huupv@mail.huuphan.local>, relay=mail.huuphan.local[172.16.235.150]:7025, delay=0.69, delays=0.01/0.02/0.13/0.52, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
Aug 14 15:52:59 mail postfix/qmgr[79376]: E99D42309C: removed

Comments

Popular posts from this blog

Bash script list all IP addresses connected to Server with Country Information

zimbra some services are not running [Solve problem]

Whitelist and Blacklist domain in zimbra 8.6