on 6/14/01 12:00 AM, Lu Vo at [EMAIL PROTECTED] spake:
> Here is how I do it and may not be for everyone.
>
> modify the alias.c file:
>
> under the adddotqmailnow() function:
>
> @@ -502,6 +503,9 @@
> dotqmail_add_line(Alias, TmpBuf2);
> } else if (!(strcmp(AliasType, "forward"))) {
> sprintf(TmpBuf2, "&%s\n", ActionUser);
> + if (strcmp(Alias, "default")==0) {
> + dotqmail_delete_files(Alias);
> + }
> dotqmail_add_line(Alias, TmpBuf2);
> } else {
> err=1;
>
>
> under the deldotqmailnow() function:
>
> @@ -559,10 +570,19 @@
> fprintf(actout, "<h2>%s %s %s</h2>\n", get_html_text("167"),
> Alias, ActionUser);
> } else {
> + if (strcmp (ActionUser, "default") == 0) {
> + dotqmail_add_line(ActionUser, "\0");
> + }
> fprintf(actout, "<h2>%s %s %s</h2>\n", get_html_text("168"),
> Alias, ActionUser);
> }
>
>
>
> rebuild qmailadmin and install.
>
> Then in qmailadmin form, when you wish to forward catchall to an outside
> address such as [EMAIL PROTECTED], just create a forward "default" like this:
>
> Forward Email Address: [EMAIL PROTECTED]
> Local Name: default
>
> Lu
Lu this is a good idea, but the result is that the .qmail-default file no
longer has:
| /home/vpopmail/bin/vdelivermail ''
preceding the outside address.. Instead, you get:
&[EMAIL PROTECTED]
Does anyone know how to modify this to make sure that message gets piped to
vdelivermail before going to the catch-all address?
Also, it would be good to update the "showusers" page to display that
catch-alls are going to an outside address, instead of just "account" or
"bounced".
Thanks,
Bill