'\" t
.\"     Title: mconnect
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\"      Date: January 4, 2014
.\"    Manual: User Commands
.\"    Source: mconnect
.\"  Language: English
.\"
.TH "MCONNECT" "1" "January 4, 2014" "mconnect" "User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
mconnect \- connect to SMTP mail server socket
.SH "SYNOPSIS"
.ad l
.hy 0
.HP \w'\fBmconnect\fR\ 'u
\fBmconnect\fR [\-p\ \fIport\fR] [\-r] [\fIhostname\fR]
.ad
.hy
.SH "DESCRIPTION"
.PP
The
\%\fBmconnect\fR
utility opens a connection to the mail server on a given host, so that it can be tested independently of all other mail software\&. If no host is given, the connection is made to the local host\&. Servers expect to speak the Simple Mail Transfer Protocol (SMTP) on this connection\&. Exit by typing the quit command\&. Typing EOF sends an end of file to the server\&. An interrupt closes the connection immediately and exits\&.
.SH "OPTIONS"
.PP
\-p \%\fIport\fR
.RS 4
Specify the port number instead of the default SMTP port (number 25) as the next argument\&.
.RE
.PP
\-r
.RS 4
"Raw" mode: disable the default line buffering and input handling\&. This produces an effect similar to telnet to port number 25\&.
.RE
.PP
\%\fIhostname\fR
.RS 4
The name of a given host\&.
.RE
.SH "USAGE"
.PP
The mconnect command is IPv6\-enabled\&.
See \fBip6\fR(7P)\&. \&.
.SH "FILES"
.PP
\%/etc/mail/helpfile
.RS 4
help file for SMTP commands
.RE
.SH "SEE ALSO"
.PP
\fBsendmail\fR(1M)
.PP
Postel, Jonathan B\&.,\fBSimple Mail Transfer Protocol, RFC 821\fR\&[1], Information Sciences Institute, University of Southern California, August 1982\&.
.SH "NOTES"
.IP " 1." 4
Simple Mail Transfer Protocol, RFC 821
.RS 4
\%\%http://tools.ietf.org/html/rfc821
.RE
