Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here's a use case for my application. All incoming emails to different email addresses have to be processed by reading the content of email messages, along with the information such as: from email address, subject line and date/time sent. This information later has to be HTTP POSTed to a web service API or stored in a DB.

We are thinking about using PostFix as our MTA software. Using PostFix, is it possible to implement such a process to read emails? If yes please explain how? Or are there any programs that are readily available to read emails and store in a DB from PostFix?


share|improve this question
up vote 3 down vote accepted

No, it is not possible with Postfix itself. As you said it is a MTA where T stands for transport. It is not a mail processing agent. But you can configure different MDAs (mail delivery agents).

You can do this with procmail for example or any other program that accepts mail via STDIN. These programs can be included into Postfix with the pipe configuration options. See the manual for details and instructions.

share|improve this answer

Your Answer


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.