Hello, I would like to use /etc/postfix/rbl_override to whitelist ip ranges but it seems to have no effect. I have added "check_client_access hash:/etc/postfix/rbl_override" to smtpd_recipient_restrictions in /etc/postfix/main.cf:

Re: Trying to use RBL Overrides to whitelist IP Range.

It's clear now.

Postfix checks restriction rules in order, so you can try to move 'check_client_access hash:/etc/postfix/rbl_override' to the front of 'reject_unauth_destination', then reload Postfix service and try again.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

Re: Trying to use RBL Overrides to whitelist IP Range.

I've moved 'check_client_access hash:/etc/postfix/rbl_override' to the begining of smtpd_recipient_restrictions and also tried before 'reject_unauth_destination', according to logs amavis is still blocking it:

I have also tried using each IP rather than the CIDR notation. From my own reading it sounds like we need to inject emails from there to postfix on port 10025 so it will bypass amavis? Thanks for your help.

Re: Trying to use RBL Overrides to whitelist IP Range.

Going back to your original suggestion of using 68.178.252.0/24 FILTER smtp-amavis:[127.0.0.1]:10025 in the rbl_override file does seem to bypass amavisd scanning, however I'm using this: $forward_method = 'smtp:[192.168.2.15]:25'; to forward emails to an exchange server and these don't get blocked as spam but do not get forwarded either.

Re: Trying to use RBL Overrides to whitelist IP Range.

Strange, re configuring and using your information from last post works now. I must have had a typo somewhere. It does log the client host triggering the FILTER smtp-amavis:[127.0.0.1]:10026...in /var/log/maillog

Also it is now forwarding the email to the exchange server where it wasn't before when I did get it to trigger the filter, which is strange. I might have to do some further testing to find out about that. I appreciate your persistence, thank you!