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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |