Create BCC of incoming and outgoing mails without knowing the users - Qmail




BCC to Boss Function - Qmail


If you want to keep a copy of incoming and outgoing mail of an account in a qmail server, you can use the qmail-tap feature.

Qmail provides the ability to make a copy of each email that flows through the system. Qmail tap feature has the following functionalities.

**Specify which email addresses tap using a regex style control file. With the regex function, you can specify full domains or individual email addresses.
**Specify which email address to send the tapped email address.
**Qmail does not need to be restarted to change the above. Just update the taps control file.

The taps file is not included in the basic, default toaster install. You can configure it as follows.

[root@qmail ~]# touch /var/qmail/control/taps 
[root@qmail ~]# vi /var/qmail/control/taps

insert the tap information and save

Examples:

a) To tap a whole domain add a line like:

.*@domain.com:bcc@example.com

'bcc@example.com' gets a copy of all incoming and outgoing mail for the domain, 'domain.com'

b) To tap an individual email address add a line like:

user@domain.com:other@example.com 

'other@domain.com' gets a copy of all incoming and outgoing mail for 'user@domain.com'





Reference:
http://wiki.qmailtoaster.com/index.php/Taps
http://www.qmail.org/qmail-manual-html/

This entry was posted in by Arun Ghosh. Bookmark the permalink.