This is a discussion on Re: howto disable filtering filtering for the contents of virtual_alias_table within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Wed, May 12, 2004 at 10:51:22AM +0200, LeVA wrote: > Hi! > > I'm running postfix ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Wed, May 12, 2004 at 10:51:22AM +0200, LeVA wrote:
> Hi! > > I'm running postfix 2.0.19. > I've set up a filtering with the help of the README_FILES/FILTER_README > file: > master.cf: > smtp inet n - y - 5 smtpd > -o content_filter=filter:dummy > > [...] > > filter unix - n n - 5 pipe > flags=Rq user=spam argv=/etc/postfix/filter_script/filter ${recipient} > > > I wish to exclude the recepients in the /etc/postfix/virtual file from > the filtering. Is this possible? I mean I only want to filter messages > which are coming to my local users. In the virtual file there is > redirecting from an email to another, and I don't want to filter those > messages. > If you want to enable a filter for specific users, define the filter in master.cf but do not add the "-o content_filter=xxx" to smtp. Instead, add an access table to the top of your smtpd_recipient_restrictions like this : check_recipient_access hash:/etc/postfix/filter ... and in that table activate the filter : -- /etc/postfix/filter : user1@dom.com FILTER filter:dummy dom2@com FILTER filter:dummy Remember to do a 'postmap filter' . /Torben |