That info is in the connection object. I use:
my $remote_host = $self->qp->connection->remote_host; my $remote_ip = $self->qp->connection->remote_ip;
.enjoy -f
On Sat, 15 Jan 2005 [EMAIL PROTECTED] wrote:
Date: Sat, 15 Jan 2005 00:29:05 +0000 (UTC) From: [EMAIL PROTECTED] To: qpsmtpd ML <[email protected]> Subject: [QPSMTPD] Can I grab this info for use in plugins?
250-nylon.rope.net EHLO [66.206.23.240] [66.206.23.240]
I see that this information is output to the logs for each connection, as well as outputs it in the SMTP dialog. In this case, the first IP address is substituted for the hostname, since the hostname (reverse lookup) doesn't exist.
Is there some way I can pull that hostname variable into a plugin? What variable? How? I'd simply like to be able to get the hostname without having to run my own nslookup on the IP.
Thanks.
