Hi,
I am using a small perl-script, which is far from perfect, that does
the trick. Some users on this list raised concerns about the script,
but I still haven't found someone to make this script failsafe. Use
at your own risk.
I use this script, since i really don't want that extra ~qmail user.
qmail-domainforward.pl:
$uservariable="$ENV{LOCAL}\@$ARGV[0]";
exec "/var/qmail/bin/qmail-inject",$uservariable || print "Problem with Domain F
orwarding (Could not execute qmail-inject)" && exit 111;
in ldap database: (for entry catchall@domain1)
deliveryprogrampath: preline /usr/sbin/qmail-domainforward.pl domain2
this makes anyuser@domain1 go to anyuser@domain2
> -add domain2.com:domain2
>
> to virtualdomains and a file called
>
> .qmail-domain2-default
>
> in /var/qmail/alias, containing
>
> |/var/qmail/bin/forward $[EMAIL PROTECTED]
>
> Greetings
>
> Henning
>
>
> --
| Ace Suares, Internet Consultancy and Training
| Keizersgracht 132, 1015 CW AMSTERDAM, NL
| phone: 06 557 06 554 (+31 6 557 06 554)
| fax: 08 48 707 705 (+31 84 870 770 5)
| mailto:[EMAIL PROTECTED] PGP Key idea: 0x39B81FE5
| http://www.suares.com