|
NAMEWhat::MTA - Find out about running MTASYNOPSIS$what = What->new( Host => my.domain.org, Port => 25, ); $what->mta; $what->mta_version; $what->mta_banner; DESCRIPTIONWhat::MTA is a part of "What" package. It provides basic information about running MTA: name, version and banner that MTA prints out upon connection to it. It is not meant to be used directly, but via its interface, class "What". MTA's supported are: Exim, Postfix (version only on localhost), Sendmail, Courier (name only), XMail, MaswMail.The What::MTA class is a subclass of Net::Cmd and IO::Socket::INET. CONSTRUCTOR
Host - is the name, or address, of the remote host
to which a connection to a running service is required to. It may be a single
scalar, as defined for the "PeerAddr" option
in IO::Socket::INET. "Host" is optional,
default value is "localhost".
LocalAddr and LocalPort - These parameters are passed directly to IO::Socket to allow binding the socket to a local port. Timeout - Maximum time, in seconds, to wait for a response from the server (default: 120) Port - Port to which to connect to (default: 25) Debug - Enable debugging information Example: $what = What->new( Host => 'my.mail.domain' Timeout => 30, Debug => 1, ); $what = What->new( Host => '10.10.10.1', Port => 25, ); METHODS
EXAMPLES OF MTA BANNERS
DIAGNOSTICS
DEPENDENCIESClass::Std depends on the following modules:
BUGSPlease report any bugs or feature requests to "bug-what@rt.cpan.org", or through the web interface at <http://rt.cpan.org>.ACKNOWLEDGEMENTSLot of code taken from Net::Cmd, without which this class probably wouldn't have been written.AUTHORToni Prug <toni@irational.org>COPYRIGHTCopyright (c) 2006. Toni Prug. All rights reserved.This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA See <http://www.gnu.org/licenses/gpl.html>
Visit the GSP FreeBSD Man Page Interface. |