There's one way (till now) to integrate Spider with Postfix, more options will be offered in future release.

The Always BCC Approch

Spider Email Archiver has a builtin SMTP server that listens on port 25 by default, Postfix can be configured to forward a copy of all received and sent emails to this port with the always_bcc parameter.

  • Add parameter always_bcc in Postfix config file/etc/postfix/, set its value to the Archiving Address.

    always_bcc =
  • Update smtpd_recipient_restrictions to add a check_recipient_access rule to always prepend X-Envelope-To: header with the final delivery address:

    smtpd_recipient_restrictions =
        check_recipient_access pcre:/etc/postfix/add-x-envelope-to.pcre
  • Create file /etc/postfix/add-x-envelope-to.pcre with content below:

    /(.*)/  prepend X-Envelope-To: $1
  • Restart postfix service to load modified config files:

    service postfix restart