But vdelivermail is for delivering mails to a virtual user.
What I am doing here is delivering mails to an external e-mail address.

Once you change your mind and want to deliver mail back to a virtual user,
just click on the catchall for that user in the POP accounts window and the
line

| /home/vpopmail/bin/vdelivermail ''

will be added back to prepend whatever POP account you have selected.

Lu.


> -----Original Message-----
> From: Bill Shupp [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 10:26 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: forwarding catchall
>
>
> 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

Reply via email to