forward all mail on a specified domain to script

Posted by David on Server Fault See other posts from Server Fault or by David
Published on 2011-02-02T04:34:42Z Indexed on 2011/02/02 7:27 UTC
Read the original article Hit count: 519

Filed under:
|
|
|

Hey all! I run a disposable e-mail service that accepts all incoming mail and forwards it to a PHP script that stores it in a database for people to view. Before now, I have been on shared hosting with cPanel, which makes it easy to pipe e-mails to a script. Now, however, I got my own VPS, and it doesn't have cPanel. How do I pipe e-mails to script? Further, how do I pipe emails to any address on certain specified domains to my script? You see, aside from the main domain, there are several alternate domains that people can use if the main domain is blocked, and on each domain I want any address to be usable (xyz@domain, abc@domain, anythingelse@domain).

The VPS has Ubuntu 9.04 installed, and I have been experimenting with Postfix, though I can switch to Exim or Sendmail if it is easier.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about email