Philip Mak <[EMAIL PROTECTED]> writes:
> Hello,
>
> I am using qmail to run a mail forwarding service. When the mail server
> receives a message at [EMAIL PROTECTED], it looks up the alias in a MySQL
> database and forwards the message to an e-mail address given in the MySQL
> database.
>
> I am accomplishing this by putting in my .qmail-default file for that
> domain:
>
> |/home/brc/bin/forward
>
> where /home/brc/bin/forward is a perl script which:
>
> 1. connects to the MySQL database
> 2. looks up the database to determine which address to forward to
> 3. opens a pipe to /usr/sbin/sendmail (taking care to use exec so
> that special characters aren't interpreted by the shell) to
> deliver the message to the recipient
Use fastforward - http://cr.yp.to/fastforward.html
Periodically dump the relevant parts of your MySQL database into the
cdb that fastforward uses.
--
Frank Cringle, [EMAIL PROTECTED]
voice: (+49 7745) 928759; fax: 928761