Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

Explore the world of seamless email management with Zimbra Mail on Linux! Our blog delves into a step-by-step guide on harnessing the potential of Linux commands, providing easy-to-follow how-tos, and unlocking the magic of Bash scripting. Simplify your email administration journey and enhance your skills with our insightful tips and tricks.

How to create auto Bcc for sender mails for Zimbra 8.6

How to auto copy of all email from [email protected] to [email protected]. Every email send from [email protected] to email another, then automation bcc to [email protected].
How to create auto Bcc for sender mails for Zimbra 8.6

How to create auto Bcc for Recipient mails for Zimbra 8.6







To check "Sender BCC Maps" sender_bcc_maps on your zimbra 8.6
$ postconf | egrep "sender_bcc_maps"
The output as below
sender_bcc_maps =
To configure sender bbc maps on zimbra 8.6
# su - zimbra
$ cd /opt/zimbra/postfix/conf/
To create sender_bcc
$ vim sender_bcc
Input the content as below
[email protected] [email protected]
To add sender_bcc_maps in main.cf file
$ vim /opt/zimbra/postfix/conf/main.cf
To add the following line in below
sender_bcc_maps = lmdb:/opt/zimbra/postfix/conf/sender_bcc
To apply configure sender_bcc_maps
$ postmap /opt/zimbra/postfix/conf/sender_bcc
To restart the zimbra postfix
$ postfix reload
To check "Sender BCC Maps" sender_bcc_maps on your zimbra 8.6
$ postconf | egrep "sender_bcc_maps"
The output as below
sender_bcc_maps = lmdb:/opt/zimbra/postfix/conf/sender_bcc

Test send email from [email protected] to [email protected], then auto bcc email to [email protected]

File log zimbra.log

Aug 10 10:14:38 mail amavis[2981]: (02981-01) ESMTP:[127.0.0.1]:10026 /opt/zimbra/data/amavisd/tmp/amavis-20170810T101438-02981-X60RTMsg: -> , Received: from mail.huuphan.local ([127.0.0.1]) by localhost (mail.huuphan.local [127.0.0.1]) (amavisd-new, port 10026) with ESMTP; Thu, 10 Aug 2017 10:14:38 +0700 (ICT)
Aug 10 10:14:38 mail amavis[2981]: (02981-01) 5q6Qbhxu_dx2 FWD from -> ,, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5D52B2307D

Aug 10 10:14:38 mail postfix/smtp[28641]: 17CEA2307C: to=, relay=127.0.0.1[127.0.0.1]:10026, delay=0.4, delays=0.01/0/0.05/0.34, 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 5D52B2307D)
Aug 10 10:14:38 mail postfix/smtp[28641]: 17CEA2307C: to=, relay=127.0.0.1[127.0.0.1]:10026, delay=0.4, delays=0.01/0/0.05/0.34, 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 5D52B2307D)
Aug 10 10:14:38 mail postfix/qmgr[27563]: 17CEA2307C: removed

Aug 10 10:14:38 mail postfix/lmtp[28644]: 5D52B2307D: to=, relay=mail.huuphan.local[172.16.235.150]:7025, delay=0.45, delays=0.02/0.01/0.16/0.26, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
Aug 10 10:14:38 mail postfix/lmtp[28644]: 5D52B2307D: to=, relay=mail.huuphan.local[172.16.235.150]:7025, delay=0.45, delays=0.02/0.01/0.16/0.26, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
Aug 10 10:14:38 mail postfix/qmgr[27563]: 5D52B2307D: removed

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com

1 Comments :

Hello,

would Like to know if you can help me with one of my task. I needed an automated script to identify the newly create Zimbra user and create a New archive mailbox for that user and make the entry in sender_bcc and recipient_bcc to send copy of incoming and outgoing mail to archive user.

Thanks in advance.

Relay

This Blog is protected by DMCA.com