NAME
Mail::SpamAssassin::Spamd::Apache2::AclRFC1413 - check spamd's client ident
SYNOPSIS
##### in httpd.conf:
# engine; module has been separated in Apache 2.1
LoadModule ident_module modules/mod_ident.so
IdentityCheck on
IdentityTimeout 4
# enable check
PerlLoadModule Mail::SpamAssassin::Spamd::Apache2::Config
SAident on
##### in PerlProcessConnectionHandler:
Mail::SpamAssassin::Spamd::Apache2::AclRFC1413::check_ident($c, "user")
or return Apache2::Const::FORBIDDEN;
# or like this:
my $remote_logname =
Mail::SpamAssassin::Spamd::Apache2::AclRFC1413::get_ident($c)
DESCRIPTION
Queries remote ident server using mod_ident.so, saves result in $c->notes()
.
Returns Apache2::Const::FORBIDDEN
on failure.
The SAident On
directive actually does this: PerlPreConnectionHandler Mail::SpamAssassin::Spamd::Apache2::AclRFC1413
NOTE
Doing ident for non-localhost users is rather pointless. Unless you know what you're doing, listen only on 127.0.0.1
and/or ::1
, if you want to prevent users from lying about their identity. Or use SSL with client certificates (refer to mod_ssl
documentation for details).
FUNCTIONS
check_ident($c, $username)
Returns remote username (might be "0"), as returned by the ident server, if it matches supplied $username; undef otherwise.
get_ident($c)
Returns remote username (might be "0"), as returned by the ident server.
EXPORTS
Nothing.
BUGS
See <http://bugzilla.spamassassin.org/>
SEE ALSO
Mail::SpamAssassin::Spamd::Apache2::Config(3)