1. Home
  2. Docs
  3. Configure your Email Server
  4. Postfix
  5. Enable Journaling for all users

Enable Journaling for all users

Assume the Postfix configuration files are in /etc/postfix.

cd /etc/postfix

Edit main.cf

search for always_bcc and include the following line:

  1. In main.cf

    # Add the following lines
    sender_bcc_maps=pcre:/etc/postfix/sender_bcc_map
    recipient_bcc_maps=pcre:/etc/postfix/recipient_bcc_map

  2. In /etc/postfix/sender_bcc_map

    # Add line for each domain archiving to vaultastic
    # replace . (dot) in domain name with \. (slash dot)
    # For example domain acmecorp.com: /^(.*)@acmecorp\.com$/ [email protected]
    /^(.*)@$/ [email protected].www.vaultastic.com

  3. In /etc/postfix/recipient_bcc_map

    # Add line for each domain archiving to vaultastic
    # replace . (dot) in domain name with \. (slash dot)
    # For example domain acmecorp.com: /^(.*)@acmecorp\.com$/ [email protected]
    /^(.*)@$/ [email protected].www.vaultastic.com

  4. Configure Transports

    Edit transport add the following line before all the routes

    {domainprefix}.www.vaultastic.com smtp:in.www.vaultastic.com:25

    For example domain acmecorp.com:

    acmecorp.www.vaultastic.com smtp:in.www.vaultastic.com:25

    Save transport file

    postmap /etc/postfix/transport

  5. Reload postfix

    /etc/init.d/postfix reload