Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I am trying to do some special mail processing beyond what my mail client's rules/filters can handle (interact with a webservice API). Since I know Python, I am looking at using Lamson to process the e-mails. As I was going through the setup I realized that my virtual private server already had a mail server listening on port 25, postfix. This is a rather simple Ubuntu box and I believe postfix was installed as part of my other packages (Apache, MySQL, MySQL, Munin).

Rather than muck around with Postfix, I'd like to have mail addressed to * handled by my Lamson listener. Since Postfix controls port 25, what are my options? Is there a way I can configure Postfix to forward everything addressed to to my Lamson project listening on localhost:2525 (or other suitable port) for processing? If so, what configuration changes will be required to do so? Other suitable approaches?

share|improve this question
up vote 1 down vote accepted

You could setup a transport to deliver mail to Lamson. There is a previous post which could help you.

share|improve this answer
Wow, my search skills failed me. Thanks for the tip! – Chris Dec 7 '10 at 4:18

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.