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


> -----Original Message-----
> From: Rob Genovesi [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 12:38 PM
> To: [EMAIL PROTECTED]
> Subject: forwarding catchall
>
>
> Hello List,
>
> I've seen this question asked a few times, but never seem an answer .. so
> here it is one more time ..
>
> Is there anyway, via Qmailadmin, to create a catch-all forward
> ... so that
> all messages addressed to non-existing users is forwarded off to a remote
> account?
>
> If there is no way to do this in the current release is it something that
> is planned for the (near) future?
>
> Thanks much,
>
>       Rob Genovesi
>       [EMAIL PROTECTED]

Reply via email to