Firebird News

Thursday, April 17, 2008

bounce processing in qmail

i wanted to collect the emails that don't exists on servers and bounce back to webmaster
with php

This is the script for test

cat /usr/local/bin/bounce_process.php
#!/usr/bin/php -q
// read from stdin
$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
$email .= fread($fd, 1024);
$outFile = fopen("/tmp/emailResult.txt","w");

and here is the .qmail file for webmaster
cat .qmail
| /usr/local/bin/bounce_process.php

Next i need to create an table with users that don't exists

No comments: