---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/04
Do this: (i know guys, there are other ways to do it with procmailrc, but
most people mess that file up)
in /etc/mail/virtusertable:
some...@somedomain.com aliasScriptName
then in /etc/alaises
aliasScriptName "| /etc/smrsh/scriptname"
then in /etc/smrsh/scriptname
#!/usr/bin/php -q
<?php
// read from stdin
$fd = fopen("php://stdin", "r");
while (!feof($fd))
{
$inData = fgets($fd, 1024);
$inData = trim($inData);
.. proccess $inData here ...
}
fclose($fd);
?>
--
Mike Bradley
http://www.gzentools.com -- free online php tools
Thats a lot of work :P
Following in procmailrc would satisfy:
# forward mail that is sent to maili...@foo.example
# to everybody that is in addresses.txt
:0
* ^TO_mailinglist@foo\.example$
! `cat addresses.txt`
It's a mail server (MTA) issue. In postfix:
Add this to /etc/postfix/aliases:
somePHPfunctions: |/path/to/scripts/somePHPfunctions.php
Then reload service. Please note somePHPfunctions.php should be a valid shell script:
#!/usr/bin/php -q
<?
.......
?>
Otherwise, I suppose you can call it with /usr/bin/php -q /path/to/scripts/somePHPfunctions.php
--
--
-- Álvaro G. Vicario - Burgos, Spain
--