2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2014-09-30 10:13:21 -05:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Monitor incoming and outgoing mails with BCC< / title >
2015-07-31 23:14:52 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
2014-09-30 10:13:21 -05:00
< / head >
< body >
2019-07-13 06:21:55 -05:00
2014-09-30 10:13:21 -05:00
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-04-19 12:48:51 -05:00
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-02-29 02:15:19 -06:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "monitor-incoming-and-outgoing-mails-with-bcc" > Monitor incoming and outgoing mails with BCC< / h1 >
2014-09-30 10:13:21 -05:00
< div class = "toc" >
< ul >
< li > < a href = "#monitor-incoming-and-outgoing-mails-with-bcc" > Monitor incoming and outgoing mails with BCC< / a > < ul >
< li > < a href = "#manage-bcc-settings-with-iredadmin-pro" > Manage BCC settings with iRedAdmin-Pro< / a > < / li >
2014-10-13 06:04:48 -05:00
< li > < a href = "#sql-manage-bcc-settings-with-sql-command-line-tools" > SQL: Manage BCC settings with SQL command line tools< / a > < / li >
< li > < a href = "#ldap-manage-bcc-settings-with-phpldapadmin-or-other-ldap-client-tools" > LDAP: Manage BCC settings with phpLDAPadmin or other LDAP client tools< / a > < / li >
2016-07-24 22:35:57 -05:00
< li > < a href = "#monitor-all-inbound-and-outbound" > Monitor all inbound and outbound< / a > < / li >
2014-09-30 10:13:21 -05:00
< li > < a href = "#screenshot-of-iredadmin-pro" > Screenshot of iRedAdmin-Pro< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
2014-10-13 06:04:48 -05:00
< p > This tutorial describes how to configure your iRedMail server
to monitor incoming and outgoing mails with BCC, via iRedAdmin-Pro or other
tools.< / p >
2015-11-16 20:07:05 -06:00
< p > < strong > Important notes< / strong > :< / p >
< ul >
< li >
< p > the destination email address used to store emails must exist. In this
tutorial, they're < code > outbound@example.com< / code > and < code > inboud@example.com< / code > .< / p >
< / li >
< li >
< p > Multiple BCC destination addresses are < strong > NOT< / strong > supported by Postfix.< / p >
< / li >
< / ul >
2014-09-30 10:13:21 -05:00
< h2 id = "manage-bcc-settings-with-iredadmin-pro" > Manage BCC settings with iRedAdmin-Pro< / h2 >
< p > With iRedAdmin-Pro, you can configure BCC easily.< / p >
< ul >
< li > For per-domain BCC settings, please go to domain profile page, then you can
manage BCC settings under tab < code > BCC< / code > .< / li >
< li > For per-user BCC settings, please go to user profile page, then you can
manage BCC settings under tab < code > BCC< / code > .< / li >
< / ul >
2014-10-13 06:04:48 -05:00
< h2 id = "sql-manage-bcc-settings-with-sql-command-line-tools" > SQL: Manage BCC settings with SQL command line tools< / h2 >
< p > We take MySQL backend for example, but the SQL commands should work with
PostgreSQL too.< / p >
< ul >
< li > To add per-domain bcc settings for domain < code > mydomain.com< / code > , you can add
below records in SQL database < code > vmail< / code > :< / li >
< / ul >
< pre > < code class = "sql" > -- BCC outgoing emails to 'outbound@example.com'
2015-02-28 01:40:36 -06:00
mysql> INSERT INTO sender_bcc_domain (domain, bcc_address, active, created)
VALUES ('mydomain.com', 'outbound@example.com', 1, NOW());
2014-10-13 06:04:48 -05:00
-- BCC incoming emails to 'inbound@example.com'
2015-02-28 01:40:36 -06:00
mysql> INSERT INTO recipient_bcc_domain (domain, bcc_address, active, created)
VALUES ('mydomain.com', 'inbound@example.com', 1, NOW());
2014-10-13 06:04:48 -05:00
< / code > < / pre >
< ul >
< li > To add per-user bcc settings for user < code > user@mydomain.com< / code > , you can add
below records in SQL database < code > vmail< / code > :< / li >
< / ul >
< pre > < code class = "sql" > -- BCC outgoing emails to 'outbound@example.com'
mysql> INSERT INTO sender_bcc_user (username, bcc_address, domain, active, created)
VALUES ('user@mydomain.com', 'outbound@example.com', 'mydomain.com', 1, NOW());
-- BCC incoming emails to 'inbound@example.com'
mysql> INSERT INTO recipient_bcc_user (username, bcc_address, domain, active, created)
VALUES ('user@mydomain.com', 'inbound@example.com', 'mydomain.com', 1, NOW());
< / code > < / pre >
< h2 id = "ldap-manage-bcc-settings-with-phpldapadmin-or-other-ldap-client-tools" > LDAP: Manage BCC settings with phpLDAPadmin or other LDAP client tools< / h2 >
2014-09-30 10:13:21 -05:00
< ul >
< li > For per-domain BCC settings, you can add below LDAP attribute/value pairs
for domain object:< / li >
< / ul >
< pre > < code > # per-domain sender bcc
enabledService=senderbcc
2014-10-13 06:06:52 -05:00
domainSenderBccAddress=outbound@example.com
2014-09-30 10:13:21 -05:00
# per-domain recipient bcc
enabledService=recipientbcc
2014-10-13 06:06:52 -05:00
domainRecipientBccAddress=inbound@example.com
2014-09-30 10:13:21 -05:00
< / code > < / pre >
< ul >
< li > For per-user BCC settings, you can add below LDAP attribute/value pairs
for user object:< / li >
< / ul >
2019-05-22 19:45:20 -05:00
< pre > < code > # per-user sender bcc
2014-09-30 10:13:21 -05:00
enabledService=senderbcc
2014-10-13 06:06:52 -05:00
userSenderBccAddress=outbound@example.com
2014-09-30 10:13:21 -05:00
2019-05-22 19:45:20 -05:00
# per-user recipient bcc
2014-09-30 10:13:21 -05:00
enabledService=recipientbcc
2014-10-13 06:06:52 -05:00
userRecipientBccAddress=inbound@example.com
2014-09-30 10:13:21 -05:00
< / code > < / pre >
2016-07-24 22:35:57 -05:00
< h2 id = "monitor-all-inbound-and-outbound" > Monitor all inbound and outbound< / h2 >
< p > To monitor all inbound and outbound on the server, please specify the email
address used to receive BCCed email in Postfix parameter < code > always_bcc< / code > . For
example:< / p >
< pre > < code > always_bcc = user@domain.com
< / code > < / pre >
< p > Then all inbound and outbound will be BCCed to < code > user@domain.com< / code > .< / p >
2014-09-30 10:13:21 -05:00
< h2 id = "screenshot-of-iredadmin-pro" > Screenshot of iRedAdmin-Pro< / h2 >
2014-10-13 06:06:52 -05:00
< p > Per-domain bcc settings:< / p >
2019-05-22 19:45:20 -05:00
< p > < img alt = "" src = "./images/iredadmin/domain_profile_bcc.png" width = "1000px" / > < / p >
2014-10-13 06:06:52 -05:00
< p > Per-user bcc settings:< / p >
2019-05-22 19:45:20 -05:00
< p > < img alt = "" src = "./images/iredadmin/user_profile_bcc.png" width = "1000px" / > < / p > < div class = "footer" >
2019-09-06 00:54:43 -05:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://github.com/iredmail/docs/" > BitBucket repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://github.com/iredmail/docs/archive/master.zip" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2016-05-19 06:51:20 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2015-02-05 07:02:53 -06:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2014-10-13 19:28:43 -05:00
< / script >
< / body > < / html >