Stephen K Cheboi wrote:
Hi,

I would like to allow mail from a known e-mail address say a...@example.com <mailto:a...@example.com> with an attachment say X to a user in my domain say u...@kenkob.co.ke <mailto:u...@kenkob.co.ke> ,but at the same time reject another e-mail from an e-mail address different from a...@example.com <mailto:a...@example.com> to u...@kenkob.co.ke <mailto:u...@kenkob.co.ke> 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