There's one way (till now) to integrate Spider with Postfix, more options will be offered in future release.
Spider Email Archiver has a builtin SMTP server that listens on port
default, Postfix can be configured to forward a copy of all received and sent
emails to this port with the
REQUIRED: Add parameter
always_bccin Postfix config file
/etc/postfix/main.cf, set its value to the Archiving Address.
always_bcc = firstname.lastname@example.org
REQUIRED: Update parameter
transport_maps, insert a hash map file
transport_maps = hash:/etc/postfix/transport, ...
REQUIRED: Create (or open existing)
/etc/postfix/transportfile, append transport for Spider server hostname
If you use host IP address as archiving domain name, it's required to add transport for host IP (Spider server) too. For example:
# - IP address must be surrounded by [ and ]. # - 192.168.1.1 is the IP address of Spider server. [192.168.1.1] smtp:[192.168.1.1]:25
REQUIRED: Run command:
OPTIONAL BUT HIGHLY RECOMMENDED: Update
smtpd_recipient_restrictionsto add a
check_recipient_accessrule to always prepend
X-Envelope-To:header with the final delivery address:
Spider collects final recipient addresses from
X-Envelope-To:header, if it doesn't exist,
Bcc:are used instead, this causes Spider considers email alias/forwarding addresses as a mailbox and counts in license.
smtpd_recipient_restrictions = ... reject_non_fqdn_recipient reject_unlisted_recipient check_recipient_access pcre:/etc/postfix/recipient_access.pcre ...
/etc/postfix/recipient_access.pcrewith content below:
/(.*)/ prepend X-Envelope-To: $1
OPTIONAL: If you choose to enable SMTP authentiction in Spider, you must configure Postfix to perform smtp authentiction.
Add or append below settings in Postfix config file
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password smtp_sasl_auth_enable = yes smtp_sasl_mechanism_filter = plain login smtp_sasl_security_options = noanonymous
Write the smtp username and password in
user:passwordby the ones you set in Spider settings: SMTP Listener):
Run shell commands:
Restart postfix service to load modified config files:
service postfix restart