Link to home
Start Free TrialLog in
Avatar of Alundrez
AlundrezFlag for Australia

asked on

Postfix whitelist based on sender AND recipient addresses

Hi all,

I have stumbled upon a requirement to postfix whitelist all emails that

originates from: abby@*

     AND

is sent to "david@company.com"

Any idea how to implement this ?
ASKER CERTIFIED SOLUTION
Avatar of David Beveridge
David Beveridge
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Whiltelisting has no benefit unless there is something causing some addresses to be rejected.


Why do you want to perform whitelisting?
If its because some emails are falsely being classed as spam then do the whitelisting in the spam filter.
Avatar of Alundrez

ASKER

I wish it was the spam filter that blocks the emails... In this particular problem, they are blocked by postfix smtp recipient restrictions.
Do you need more assistance with this?

You could just block by the sender or the recipient!
or do you REALLY need to do it on both?
Thanks for the replies. I don't need anymore assistance with this since it's impossible to do with whatever Postfix has out of the box.

I can't afford to lose a single email so baking a homemade policy server is a risk I'm unwilling to take. Greylisting won't work in my particular situation because more than half of the sending nodes never retry (it sucks I know)
bevhost,

To answer your last question, I need the emails be filtered based on both criteria.