Jeff Weinberger wrote:
Hi:

I"m using content filtering by using the following (this is the example) syntax in master.cf:

smtp      inet  ...other stuff here, do not change...   smtpd
        -o content_filter=myfilter:myfilter
myfilter     unix  -       n       n       -       10      pipe
   flags......

All is working as expected.

According to the directive documentation, the content_filter directive I am using above can take a transport(5) table (hash:, pcre:, etc.) to use different transports for different domains


no, it does not. it is the value of content_filter that has the same syntax as the _result_ from a transport map. content_filter may not be a map.


Does anyone know if I can use a MySQL lookup for this? with a syntax like:

[snip]



if you want per recipient filtering, use multiple instances and then use transport_maps insted of content_filter. alternatively, do the check in the filter.

note that using a FILTER statement in a check_recipient_access call doesn't always work "as intended", because one content_filter is used even if there are multiple recipients.



Reply via email to