Running a script for email received

Running a script for email received

E.S. Rosenberg esr+linux-il at g.jct.ac.il
Tue Aug 12 12:47:06 IDT 2014


re:all
procmail and/or sieve seem to be the natural candidates....
With /etc/alias you could also pipe the mail into a script which would
trigger the script...




2014-08-12 12:45 GMT+03:00 E.S. Rosenberg <esr at g.jct.ac.il>:

> procmail and/or sieve seem to be the natural candidates....
> With /etc/alias you could also pipe the mail into a script which would
> trigger the script...
>
>
> 2014-08-11 19:38 GMT+03:00 Ori Idan <ori at helicontech.co.il>:
>
>> I am trying to run a script when an email is received on my server.
>> I tried what described here:
>>
>> http://blog.thecodingmachine.com/content/triggering-php-script-when-your-postfix-server-receives-mail
>>
>> But it invoked the script for all mails not mail to a specific user
>> I tried the simplest thing of /etc/alias
>> But got error: Recipient address rejected: User unknown in virtual alias
>> table
>>
>> Does anyone have any idea how to run a script for mail sent to a specific
>> user?
>>
>> --
>> Ori Idan
>>
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140812/0d438f81/attachment.html>


More information about the Linux-il mailing list