man Qpsmtpd::Connection () - A single SMTP connection
NAME
Qpsmtpd::Connection - A single SMTP connection
SYNOPSIS
my $rdns = $qp->connection->remote_host; my $ip = $qp->connection->remote_ip;
DESCRIPTION
This class contains details about an individual SMTP connection. A connection lasts the lifetime of a TCP connection to the SMTP server.
See also Qpsmtpd::Transaction which is a class containing details about an individual SMTP transaction. A transaction lasts from CWMAIL FROM to the end of the CWDATA marker, or a CWRSET command, whichever comes first, whereas a connection lasts until the client disconnects.
API
These API docs assume you already have a connection object. See the source code if you need to construct one. You can access the connection object via the CWQpsmtpd object's CW$qp->connection method.
remote_host( )
The remote host connecting to the server as looked up via reverse dns.
remote_ip( )
The remote IP address of the connecting host.
remote_info( )
If your server does an ident lookup on the remote host, this is the identity of the remote client.
hello( )
Either CW"helo" or CW"ehlo" depending on how the remote client greeted your server.
NOTE: This field is empty during the helo or ehlo hooks, it is only set after a successful return from those hooks.
hello_host( )
The host name specified in the CWHELO or CWEHLO command.
NOTE: This field is empty during the helo or ehlo hooks, it is only set after a successful return from those hooks. Connection-wide notes, used for passing data between plugins.