Old 13th March 2011, 17:48
Hanpan Hanpan is offline
Junior Member
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix as pseudo mailserver

I'm trying to setup postfix to handle incoming mail in a rather unusual way. I don't need any MDA setup, I just want to receive all incoming emails and run a python script on them when they arrive, regardless of the address they are sent to.

New email arrives at postfix (anyuser@mydomain.com) -> Python script called to run on new email -> Mail is marked for removal

I'm wondering if this kind of setup is even possible without a MDA... is there any way I can hook into postfix to call my python script when a new mail is received? I suppose an alternative method would be to set the python script to run on the postfix mail queue on an interval and check for new mail but I'd prefer to only call the script when necessary.

I'd appreciate any advise as to how I can achieve this setup.
Reply With Quote
Sponsored Links
Old 14th March 2011, 14:00
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

You could create a filter: http://www.postfix.org/FILTER_README.html
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 07:37
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36

All times are GMT +2. The time now is 08:18.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.