Is there any postfix guru here who knows that after a mail gets into postfix what's the order it gets forwarded between the internal filters and components?
As I figured:
1, Postscreen
2, Recipient checks
smtpd_recipient_restrictions =
reject_non_fqdn_recipient
reject_unknown_recipient_domain
permit_mynetworks
check_client_access hash:/etc/postfix/rbl_override
reject_non_fqdn_sender
reject_unknown_sender_domain
check_policy_service inet:1.2.3.4:4000
reject_unauth_destination
reject_invalid_helo_hostname
reject_non_fqdn_helo_hostname
reject_rbl_client zen.spamhaus.org
3, Message passed on to dspam
virtual_transport = dspam:unix:/var/run/dspam/dspam.sock
4, Dspam does additional checks then forwards the mail to the next component.
Is this about right?