Monitor incoming and outgoing mails with BCC

This tutorial describes how to configure your iRedMail server to monitor incoming and outgoing mails with BCC, via iRedAdmin-Pro or other tools.

Manage BCC settings with iRedAdmin-Pro

With iRedAdmin-Pro, you can configure BCC easily.

SQL: Manage BCC settings with SQL command line tools

We take MySQL backend for example, but the SQL commands should work with PostgreSQL too.

-- 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());
-- 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

# per-domain sender bcc
enabledService=senderbcc
domainSenderBccAddress=user@domain.com

# per-domain recipient bcc
enabledService=recipientbcc
domainRecipientBccAddress=user@domain.com
# per-domain sender bcc
enabledService=senderbcc
userSenderBccAddress=user@domain.com

# per-domain recipient bcc
enabledService=recipientbcc
userRecipientBccAddress=user@domain.com

Screenshot of iRedAdmin-Pro

Per-domain bcc settings:

Per-user bcc settings:


If you found something wrong in this document, please do contact us to fix it.

©© Creative Commons