Stephen K Cheboi wrote:
Hi,

I would like to allow mail from a known e-mail address say [email protected] <mailto:[email protected]> with an attachment say X to a user in my domain say [email protected] <mailto:[email protected]> ,but at the same time reject another e-mail from an e-mail address different from [email protected] <mailto:[email protected]> to [email protected] <mailto:[email protected]> with attachment X.

How do I implement this using header-checks?

You can't. Postfix header_checks operate one line at a time, so it's not possible to combine {sender + recipient + attachment} checks.
http://www.postfix.org/header_checks.5.html

You may be able to do this with a content_filter or milter, but I can't recommend a specific one.


  -- Noel Jones

Reply via email to