Qmail: forward emails to a PHP script

In qmail, first add the domain alias.

For myscript@servername make /var/qmail/alias/.qmail-myscript

If its for myscript@mydomain.com /var/qmail/mailnames/mydomain.com/.qmail-myscript should do it.

Contents need to be along the lines of:

|/var/www/vhosts/mydomain.com/httpdocs/script.php

references:

http://www.devarticles.com/c/a/PHP/Incoming-Mail-and-PHP/1/

http://forum.swsoft.com/showthread.php?t=40510&highlight=qmail+alias

You can leave a response, or trackback from your own site.

Leave a Reply