Execute a command every time a message is recieved

This is a discussion on Execute a command every time a message is recieved within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi, I'm looking to write my own autoresponder system in php, my reason for doing so is that I ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2005
l_jurgs@yahoo.com.au
 
Posts: n/a
Default Execute a command every time a message is recieved

Hi,
I'm looking to write my own autoresponder system in php, my reason for
doing so is that I need to tie it in with our CMS. All I need postfix
to do is call a command line script every time one of our local mail
boxes recieves an email, I still want the email to go into the mail
box, I just need to pick up the reciepent address and the sender
address. For Example: "php /blah/mailmon.php ${sender} ${reciepent}" or
something to that effect. Picking up the user name of the sender would
be a nice touch as well.

Thanks in advance

Luke Jurgs

Reply With Quote
  #2 (permalink)  
Old 03-10-2005
Bioperler
 
Posts: n/a
Default Re: Execute a command every time a message is recieved

l_jurgs@yahoo.com.au wrote:
> Hi,
> I'm looking to write my own autoresponder system in php, my reason for
> doing so is that I need to tie it in with our CMS. All I need postfix
> to do is call a command line script every time one of our local mail
> boxes recieves an email, I still want the email to go into the mail
> box, I just need to pick up the reciepent address and the sender
> address. For Example: "php /blah/mailmon.php ${sender} ${reciepent}" or
> something to that effect. Picking up the user name of the sender would
> be a nice touch as well.
>
> Thanks in advance
>
> Luke Jurgs
>

You could tell postfix to use procmail as delivery agent. Procmail
would pipe (for example) all mails trough a perl script you wrote
(like the mechanism spamassassin uses) Maybe it's also possible to
tell procmail to export the adresses to variables that could be used
by your program.
Reply With Quote
  #3 (permalink)  
Old 03-11-2005
Paul-Wilhelm Hermsen
 
Posts: n/a
Default Re: Execute a command every time a message is recieved

l_jurgs@yahoo.com.au schrieb:
> Hi,
> I'm looking to write my own autoresponder system in php, my reason for
> doing so is that I need to tie it in with our CMS. All I need postfix
> to do is call a command line script every time one of our local mail
> boxes recieves an email, I still want the email to go into the mail
> box, I just need to pick up the reciepent address and the sender
> address. For Example: "php /blah/mailmon.php ${sender} ${reciepent}" or
> something to that effect. Picking up the user name of the sender would
> be a nice touch as well.
>
> Thanks in advance
>
> Luke Jurgs
>


http://userpages.umbc.edu/~ian/procmail.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:45 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0