Net::Server::Mail::ESMTP::XFORWARD 0.15
Sponsored Links
Net::Server::Mail::ESMTP::XFORWARD 0.15 Ranking & Summary
File size:
0.015 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
922
Date added:
2007-04-19
Publisher:
Xavier Guimard
Net::Server::Mail::ESMTP::XFORWARD 0.15 description
Net::Server::Mail::ESMTP::XFORWARD is a Perl module to add support to the XFORWARD command in Net::Server::Mail::ESMTP.
SYNOPSIS
use Net::Server::Mail::ESMTP;
my @local_domains = qw(example.com example.org);
my $server = new IO::Socket::INET Listen => 1, LocalPort => 25;
my $conn;
while($conn = $server->accept)
{
my $esmtp = new Net::Server::Mail::ESMTP socket => $conn;
# activate some extensions
$esmtp->register(Net::Server::Mail::ESMTP::XFORWARD);
# adding some handlers
$esmtp->set_callback(RCPT => &validate_recipient);
$esmtp->process();
$conn->close()
}
sub validate_recipient
{
my($session, $recipient) = @_;
my $domain;
if($recipient =~ /@(.*)>s*$/)
{
$domain = $1;
}
if(not defined $domain)
{
return(0, 513, Syntax error.);
}
elsif(not(grep $domain eq $_, @local_domains) && $session->get_forwarded_addr != "10.1.1.1")
{
return(0, 554, "$recipient: Recipient address rejected: Relay access denied");
}
return(1);
}
When using a Net::Server::Mail::ESMTP script inside a MTA and not in front of Internet, values like client IP address are not accessible to the script and when the script returns mail to an other instance of smtpd daemon, it logs "localhost" as incoming address. To solve this problem, some administrators use the XFORWARD command. This module gives the ability to read and store XFORWARD informations.
SYNOPSIS
use Net::Server::Mail::ESMTP;
my @local_domains = qw(example.com example.org);
my $server = new IO::Socket::INET Listen => 1, LocalPort => 25;
my $conn;
while($conn = $server->accept)
{
my $esmtp = new Net::Server::Mail::ESMTP socket => $conn;
# activate some extensions
$esmtp->register(Net::Server::Mail::ESMTP::XFORWARD);
# adding some handlers
$esmtp->set_callback(RCPT => &validate_recipient);
$esmtp->process();
$conn->close()
}
sub validate_recipient
{
my($session, $recipient) = @_;
my $domain;
if($recipient =~ /@(.*)>s*$/)
{
$domain = $1;
}
if(not defined $domain)
{
return(0, 513, Syntax error.);
}
elsif(not(grep $domain eq $_, @local_domains) && $session->get_forwarded_addr != "10.1.1.1")
{
return(0, 554, "$recipient: Recipient address rejected: Relay access denied");
}
return(1);
}
When using a Net::Server::Mail::ESMTP script inside a MTA and not in front of Internet, values like client IP address are not accessible to the script and when the script returns mail to an other instance of smtpd daemon, it logs "localhost" as incoming address. To solve this problem, some administrators use the XFORWARD command. This module gives the ability to read and store XFORWARD informations.
Net::Server::Mail::ESMTP::XFORWARD 0.15 Screenshot
Advertisements
Net::Server::Mail::ESMTP::XFORWARD 0.15 Keywords
ESMTP
XFORWARD
XFORWARD 0.15
to add
support to
Perl module
Add Support
recipient
module
command
support
Perl
0.15
Net::Server::Mail::ESMTP::XFORWARD
NetServerMailESMTPXFORWARD
Net::Server::Mail::ESMTP::XFORWARD 0.15
Bookmark Net::Server::Mail::ESMTP::XFORWARD 0.15
Net::Server::Mail::ESMTP::XFORWARD 0.15 Copyright
WareSeeker periodically updates pricing and software information of Net::Server::Mail::ESMTP::XFORWARD 0.15 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Net::Server::Mail::ESMTP::XFORWARD 0.15 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Net::Server::POP3proxy is a Perl module with POP3 Proxy class for working with virus scanners and anti-spam software. Free Download
Net::DAAP::Server::AAC is a DAAP server that handles MP3 and AAC. Free Download
Generation 2.x of the most popular HTTP server on the net. Free Download
DeniX Server OS is an independent Linux based distribution built from scratch by Denis Salmanovich. Free Download
AXIGEN - secure, highly configurable mail server with domain based licensing. Free Download
AXIGEN Mail Server ISP/SP Edition 7.1.4 / 7.2 Beta is a perfect choice for Service Providers, the ISP email server solution offers high-end features Free Download
Net::Server is an extensible, general Perl server engine. Free Download
An ideal solution to the complex challenges & requirements of collaborative enterprises Free Download
Latest Software
Popular Software
Favourite Software
- AXIGEN Mail Server for Linux 7.0 Beta
- AXIGEN Mail Server Office Edition Free 7.1.4 / 7.2 Beta
- Net::CyanChat::Server 0.04
- AXIGEN Mail Server Service Provider Edition 7.1
- Merak Email Server Suite 8.9.2-6
- OfficeSpot.Net Collaboration Server Preview 2
- Mail::Bulkmail::Server 3.12
- AXIGEN Mail Server Service Provider Edition for Windows 6.1