#1  
Old 13th March 2011, 16: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
  #2  
Old 14th March 2011, 13:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
 
Default

You could create a filter: http://www.postfix.org/FILTER_README.html
__________________
Falko
--
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
Reply

Bookmarks

Tags
postfix

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 22:58
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 06:37
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 06:09.


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