Hi,
> We talked about this on the list last week. Henning Brauer
> straightened me out...
I read that thread, but had not guessed it was about domain
forwarding at all, sorry.
>
> First, read about how virtual domains work in Life with Qmail.
My virtual domains run fine, without using the virtualdomains file; I
use rcpthosts and locals and the ldap databse sorts it out.
THe virtualdomains file has always baffled me because it is talking
about 'users' to which domainmail is rerouted. I imagined a domain
rewrite would happen BEFORE any user-based lookups...
> Then, here's an example of how I set it up:
>
> in /var/qmail/control/virtualdomains:
> nettonettech.de:quser
> nettonettech.co.uk:quser
> nettonettech.net:quser
>
> in ~quser/.qmail-default:
I am confused about your solution; I am not using strange ~ signs in
my qmail ;-) All users come from ldap and that's it. No homedirs,
only maildirs... So I guess I should make a whole new domain
'domainrewrite.com' and then for every real domain add a user to the
ldap database, like '[EMAIL PROTECTED]' and then put the
preline/forward stuff in the DeliveryProgramPath attribute for that
pseudo user.
> |/var/qmail/bin/preline /var/qmail/bin/forward
> $[EMAIL PROTECTED]
I am not trying to be cynical, I just don't really seem to understand
how this is working.
Or is domainrewriting something that should not be in this list but
taken to some other list concerned with plain qmail !?
With Regards,
Ace Suares
PS Come to think of it, maybe this will work:
1. Create the new domain as requested.
2. Make an entry in the ldap databse for the domain, user info,
mailalternateaddress catchall
3. add as deliveryprogrampath
|/var/qmail/bin/preline /var/qmail/bin/forward $DEFAULT@otherdomain
I'll try that now...
_Ace
| Ace Suares, Internet Consultancy and Training
| Keizersgracht 132, 1015 CW AMSTERDAM, NL
| phone: 06 557 06 554 (+31 6 557 06 554)
| fax: 020 870 770 5 (+31 20 870 770 5)
| mailto:[EMAIL PROTECTED] PGP Key idea: 0x39B81FE5
| http://www.suares.com