John C via Postfix-users:
> Howdy!
>
> I've a use case where I need to look up a recipient and block delivery if
> the user is present in a memcache. The NORMAL use case with my memcache
> works fine -- eg, the presence of a result, but I've been unable to find a
> way in my research so far that seems to allow me to negate a result. I see
> a regex table, but my use case needs to have another system add values to
> the memcache. I'm also going with the assumption here that a memcache
> would be more efficient performance-wise and allows me to leverage
> "expiring" values over time.
>
> I'm using smtpd_recipient_restrictions = permit_mynetworks, (***)
> check_recipient_access memcache:deny-recipients.cf type lookup, just need
> an idea on what that *** bit might look like.
I suppose that for some reason the memcache can't return 'reject',
but that is easily addressed' see below.
> I suspect I could cobble together a milter, but this use case feels well
> suited for a simple lookup and have less overhead than any milter would, if
> only I could negate it.
>
> Any suggestions, warnings NOT to do it this way, or pointers appreciated.
smtpd_recipient_restrictions = permit_mynetworks,
pipemap:{memcache:deny-recipients.cf, static:{reject whatever}}
Untested.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]