Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am looking for a way to check outgoing mails with rules like :

  • mails sent to a particular domain
  • mails sent without subject or with a specific subject
  • mails with an attachment of a certain size
  • mails sent to x recipients

What I want to do when a mail is recognised by one of these rules could be to send it to a special address, to save it with smtp-sink or return a special message.

Is this possible to do this check and apply an action within postfix or a couple of scripts called by postfix ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You could combine your Postfix setup with some other mail server dealing with the logic, like Lamson, a mail handling framework written/configurable in Python. See its documentation on the FSM logic, and the getting started.

share|improve this answer
    
That's a good idea. Thanks –  Coren Apr 27 '12 at 16:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.