Home       Servicebereich  Projekte  Kontakt  

smtptest.pl


Download


SYNOPSIS

 smtptest [-r] [-h] [-v] [-D] [-f <senderaddr>] [-t <recipientaddr>]
          [-s subject] [-b <contentfile>] [-a attachment_file] [-V] [-S]
          <hostname>


DESCRIPTION

Smtptest is a program to check mail delivery directly via the SMTP protocol. The smtptest program needs at least the hostname of the smtp server to test.

Smtptest can be used to check your SMTP AUTH setup. In this case the modules MIME::Base64 and Authen::SASL must be installed. If the content filter at the smtp server should be tested with attachments, the MIME::Lite module must be installed.

ARGUMENTS

-r
Relay test. The communication with the smtp server will be dropped before the DATA command.

-h
Print help text.

-v
Be verbose in relay test.

-D
Debug mode. Prints the SMTP communication to STDERR.

-f <senderaddress>
Sets the envelpe from and From: header address (default: testsender@lw-systems.de)

-t <recipientaddress>
Sets the envelpe to and To: header address (default: testrecipient@lw-systems.de)

-s <subject>
Sets the subject line of the test mail (default:'Test mail from smtptester')

-b <contentfile>
Path to a file with the body text of the test mail.

-a <attachmentfile>
Path to a file which will be attached to the mail. This option needs the MIME::Lite module to be installed.

-u <username>
Set the username for SMTP AUTH. If this parameter and the -p <password> parameter is set, smtptest will try to authenticate at the server. Requires the modules MIME::Base64 and Authen::SASL.

-p <password>
Set the password for SMTP AUTH. If this parameter and the -u <username> parameter is set, smtptest will try to authenticate at the server. Requires the modules MIME::Base64 and Authen::SASL.

-V
The eicar virus test pattern will be set to the body of the mail. The signature will overwrite the body text given with the -b switch or the -S switch.

-S
The GTUBE spam test pattern will be set to the body text of the mail. This signature will take precendece over the body text given by teh -b switch but will be overwritten by the virus test signature of the -V switch.


EXAMPLES

SMTP AUTH relay test

smtptest -r -u mailuser -p secret mail.lw-systems.de

Check if virus attachment will be stripped

smtptest -a virus.exe -t user@yourdomain.com smtp.yourdomain.com


BUGS

Bugs? Features!


SEE ALSO

perl(1)


AUTHOR

 Copyright (c) 2005 Martin Werthmoeller <mw@werthmoeller.de>
   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 Fre e 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
   MERCHANTABILIT Y 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., 5 9 Temple Place, Suite 330, Boston, MA
   02111-1307 USA

< zurück  | weiter >