Pascal, You can create a mail filter for Postfix using Milter API.
For c implementation you can use lib-milter API and for Java implementation you can use 'Jilter' API. It's possible to write code depending on your requirement as mentioned by you: > can someone help me write a filter who would accept mail for >"postmas...@domain" and reject all other mails ? I have a sample Jilter implementation in java for understanding Jilter implementation, reply if you need it. Check these links for more info: http://en.wikipedia.org/wiki/Milter https://www.sendmail.org/doc/sendmail-current/libmilter/docs/ http://www.sendmail.org/doc/sendmail-current/libmilter/README http://sendmail-jilter.sourceforge.net/ Ashish -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of pascal valois Sent: Wednesday, November 04, 2009 11:05 PM To: postfix users list Subject: need help with pcre for postfix hi, i don't understand how the filter are processed ? can someone help me write a filter who would accept mail for "postmas...@domain" and reject all other mails ? -- Pascal Valois Service Informatique 01 41 16 70 33