Postfix Integration
Configure SecZim to work with standalone Postfix mail servers.
Overview
SecZim integrates with Postfix as a policy delegation server. Postfix queries SecZim for every email, and SecZim decides whether to accept, reject, or defer the message based on your policies.
The SecZim installer automatically configures Postfix integration. This guide is for manual setup or troubleshooting.
Configuration
SecZim uses the Postfix policy delegation protocol on port 10031.
main.cf Settings
Add SecZim to your recipient restrictions:
For Outbound (Submission Port)
To also check outbound mail on port 587, add to master.cf:
Apply Changes
Test the Integration
Verify SecZim is responding to policy queries:
Postfix Variables
SecZim receives these variables from Postfix for each email:
- sender - Envelope sender address
- recipient - Envelope recipient address
- client_address - Connecting IP address
- client_name - Reverse DNS of client
- helo_name - HELO/EHLO hostname
- sasl_username - Authenticated user (if any)
- ccert_subject - Client certificate (if TLS)
Troubleshooting
Policy Server Not Responding
Emails Being Rejected
- Check the SecZim dashboard for recent blocked emails
- Review your policies - a restrictive policy may be triggering
- Check RBL settings if legitimate senders are blocked
Postfix Errors
If SecZim is unavailable, Postfix will temporarily defer emails (4xx response). Ensure the SecZim daemon is set to start automatically on boot.