Thanks for this but where would I find the "check_delivery" plugin? I don't see it in the standard qpsmtpd source.
--- Ed > -----Original Message----- > From: Bryan Scott [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2003 10:55 AM > To: [EMAIL PROTECTED] > Subject: Re: Valid account checks for vpopmail users > > > > Forgot to include the list on this one... > > I've added the following code to the check_delivery plugin to > check vpopmail > using 'vuserinfo'. It then proceeds to check for .qmail > files and everything > else as normal. > > My apologies for not having it "patch" ready, but it should > be a simple copy and > paste solution. > > -- Bryan > > CertaintyTech wrote: > > > I see on the qpsmtpd home page that it states "Can be > configured to know > > about local addresses and bounce invalid addresses at the > smtp level.". > > Has any one created a plugin for vpopmail? > > > > Also, is there someone to search the archives? Appears > that the archive > > site is not searchable. > > > > Thanks for any tips, > > --- > > Ed > > # --- Start after this line: > > return (DECLINED) unless $local; > > # --- my modification includes defining $count sooner... > > my $count; > > # --- Then call vuserinfo -- could probably be done cleaner; IWFM :) > > # first check vpopmail > if (-f "/home/vpopmail/bin/vuserinfo") { > my $result = `/home/vpopmail/bin/vuserinfo -n $delivery`; > chomp($result); > # logging only needed for debugging > $self->log(0,"Checked vpopmail: name = $result"); > $count = 1 if ($result eq lc($user)); # continue on > } > > # expand the address > my @deliverylist = $self->expand_address($delivery); > > # allow other plugins to hook into the results of this one > $self->qp->run_hooks("user_delivery", $delivery, @deliverylist); > > # --- then add the vpopmail count to whatever expand_address > was able to find > > $count .= $#deliverylist + 1; > my $msg; > > # ---- back to existing code > > > > > > > >
