Thanks,
i now don't need a new header, as i have checked
header is alredy there.
but how to solve my first problem.
i have written a new plgin called
check_auth_vpop
code is like
========
sub register {
my ($self, $qp) = @_;
$self->register_hook("mail", "mail_handler");
$self->register_hook("rcpt", "rcpt_handler");
}
sub mail_handler {
my ($self, $transaction, $sender, $header) = @_;
my $host = lc $sender->host;
my $from = lc($sender->user) . '@' . $host;
return (DENY, "DENY : From: $from :: Auth : $user");
}
sub rcpt_handler {
my ($self, $transaction, $rcpt, $sender, $user) =
@_;
my $host = lc $sender->host;
my $from = lc($sender->user) . '@' . $host;
return (DENY, "DENY : From: $from :: Auth : $user");
}
i have written lot and tested a lot, but did not get
the Authentication user name, please help me in this.
i need $user should be Authenticated Users name.
Anil
--- John Peacock <[EMAIL PROTECTED]> wrote:
> Anilkumar wrote:
> > get the name of Authenticated user.
> > i also want to add a custome Heade
> >
> > like "X-Auth-User: email"
> > for all the authentication mail.
>
> You should read lib/Qpsmtpd/Auth.pm, since it
> contains all of the support code
> for generic auth methods. In particular, you will
> find the following
> assignments (line 329):
>
> $session->{_auth_user} = $user;
> $session->{_auth_mechanism} = $mechanism;
>
> However, if you look beginning at about line 521 of
> lib/Qpsmtpd/SMTP.pm, you'll
> see that the Received: header includes the auth
> information already (i.e. you
> shouldn't need a seperate header).
>
> HTH
>
> John
>
> --
> John Peacock
> Director of Information Research and Technology
> Rowman & Littlefield Publishing Group
> 4720 Boston Way
> Lanham, MD 20706
> 301-459-3366 x.5010
> fax 301-429-5747
>
__________________________________________________________
Enjoy this Diwali with Y! India Click here
http://in.promos.yahoo.com/fabmall/index.html