2014-09-26 01:55:52 -05:00
|
|
|
# Monitor incoming and outgoing mails with BCC
|
|
|
|
|
|
|
|
[TOC]
|
|
|
|
|
2014-10-13 06:04:48 -05:00
|
|
|
This tutorial describes how to configure your iRedMail server
|
|
|
|
to monitor incoming and outgoing mails with BCC, via iRedAdmin-Pro or other
|
|
|
|
tools.
|
2014-09-26 01:55:52 -05:00
|
|
|
|
2014-10-13 19:16:58 -05:00
|
|
|
__Important note__: the destination email address used to store emails
|
|
|
|
must exist. In this tutorial, they're `outbound@example.com` and
|
|
|
|
`inboud@example.com`.
|
2014-10-13 19:15:23 -05:00
|
|
|
|
2014-09-26 01:55:52 -05:00
|
|
|
## Manage BCC settings with iRedAdmin-Pro
|
|
|
|
|
|
|
|
With iRedAdmin-Pro, you can configure BCC easily.
|
|
|
|
|
|
|
|
* For per-domain BCC settings, please go to domain profile page, then you can
|
|
|
|
manage BCC settings under tab `BCC`.
|
|
|
|
* For per-user BCC settings, please go to user profile page, then you can
|
|
|
|
manage BCC settings under tab `BCC`.
|
|
|
|
|
2014-10-13 06:04:48 -05:00
|
|
|
## SQL: Manage BCC settings with SQL command line tools
|
|
|
|
|
|
|
|
We take MySQL backend for example, but the SQL commands should work with
|
|
|
|
PostgreSQL too.
|
|
|
|
|
|
|
|
* To add per-domain bcc settings for domain `mydomain.com`, you can add
|
|
|
|
below records in SQL database `vmail`:
|
|
|
|
|
|
|
|
```sql
|
|
|
|
-- BCC outgoing emails to 'outbound@example.com'
|
|
|
|
mysql> INSERT INTO sender_bcc_domain (username, bcc_address, domain, active, created)
|
|
|
|
VALUES ('mydomain.com', 'outbound@example.com', 'mydomain.com', 1, NOW());
|
|
|
|
|
|
|
|
-- BCC incoming emails to 'inbound@example.com'
|
|
|
|
mysql> INSERT INTO recipient_bcc_domain (username, bcc_address, domain, active, created)
|
|
|
|
VALUES ('mydomain.com', 'inbound@example.com', 'mydomain.com', 1, NOW());
|
|
|
|
```
|
|
|
|
|
|
|
|
* To add per-user bcc settings for user `user@mydomain.com`, you can add
|
|
|
|
below records in SQL database `vmail`:
|
|
|
|
|
|
|
|
```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());
|
|
|
|
```
|
|
|
|
|
|
|
|
## LDAP: Manage BCC settings with phpLDAPadmin or other LDAP client tools
|
2014-09-26 01:55:52 -05:00
|
|
|
|
|
|
|
* For per-domain BCC settings, you can add below LDAP attribute/value pairs
|
|
|
|
for domain object:
|
|
|
|
|
|
|
|
```
|
|
|
|
# per-domain sender bcc
|
|
|
|
enabledService=senderbcc
|
2014-10-13 06:06:52 -05:00
|
|
|
domainSenderBccAddress=outbound@example.com
|
2014-09-26 01:55:52 -05:00
|
|
|
|
|
|
|
# per-domain recipient bcc
|
|
|
|
enabledService=recipientbcc
|
2014-10-13 06:06:52 -05:00
|
|
|
domainRecipientBccAddress=inbound@example.com
|
2014-09-26 01:55:52 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
* For per-user BCC settings, you can add below LDAP attribute/value pairs
|
|
|
|
for user object:
|
|
|
|
|
|
|
|
```
|
|
|
|
# per-domain sender bcc
|
|
|
|
enabledService=senderbcc
|
2014-10-13 06:06:52 -05:00
|
|
|
userSenderBccAddress=outbound@example.com
|
2014-09-26 01:55:52 -05:00
|
|
|
|
|
|
|
# per-domain recipient bcc
|
|
|
|
enabledService=recipientbcc
|
2014-10-13 06:06:52 -05:00
|
|
|
userRecipientBccAddress=inbound@example.com
|
2014-09-26 01:55:52 -05:00
|
|
|
```
|
|
|
|
|
2014-09-26 11:00:29 -05:00
|
|
|
## Screenshot of iRedAdmin-Pro
|
|
|
|
|
|
|
|
Per-domain bcc settings:
|
2014-10-13 06:06:52 -05:00
|
|
|
|
2014-10-13 05:03:19 -05:00
|
|
|
![](../images/iredadmin/domain_profile_bcc.png)
|
2014-09-26 11:00:29 -05:00
|
|
|
|
|
|
|
Per-user bcc settings:
|
|
|
|
|
2014-10-13 06:06:52 -05:00
|
|
|
![](../images/iredadmin/user_profile_bcc.png)
|