You can make a script in your preferred language that reads the message, get
the destination address (Delivered-To:), query for its alias in a DB, and
finally reinject it into the queue using qmail-inject, sendmail or other,
keeping the original sender address and optionally adding your ads, tails...

.qmail-default:

|/path_to_your_script

Regards
Wagner.

> -----Original Message-----
> From: Kim Chr. Hvidkjaer [mailto:[EMAIL PROTECTED]]
> Sent: Quinta-feira, 3 de Maio de 2001 14:38
> To: [EMAIL PROTECTED]
> Subject: forwarding to a dynamic / variable address ??
>
>
> Hello All,
>
> I'm trying to do a forwaring-service, where the users each have an address
> (ie [EMAIL PROTECTED]) and any mail sent to this address is
> forwarded to their
> _actual_ address (perhaps a hotmail-address or similiar).
>
> I know how to forward (& [EMAIL PROTECTED]) but how do I do it
> dynamically? I
> can do a php or perl-script that will digg out the needed
> to-address from my
> mySql-database, but don't know how to do the actual forwarding??
>
> any help is greatly appriciated!!!!!
>
>
>
>
> (I've subscribed to the list, but am not getting any mail yet, so
> please cc:
> [EMAIL PROTECTED])
>
> // Kim
>
> [EMAIL PROTECTED]
>
>

Reply via email to