Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, March 14, 2019
 
 

mconnect(1)

Name

mconnect - connect to SMTP mail server socket

Synopsis

mconnect [-p port] [-r] [hostname]

Description

The mconnect 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.

Options

The following options are supported:

–pport

Specify the port number instead of the default SMTP port (number 25) as the next argument.

–r

Raw mode: disable the default line buffering and input handling. This produces an effect similar to telnet(1) to port number 25.

Operands

The following operand is supported:

hostname

The name of a given host.

Usage

The mconnect command is IPv6–enabled. For more information, see the ip6(4P) man page.

Files

/etc/mail/sendmail.hf

Help file for SMTP commands

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
mail/mconnect

See Also

telnet(1), ip6(4P), attributes(7), sendmail(8)

Postel, Jonathan B., RFC 821, Simple Mail Transfer Protocol, Information Sciences Institute, University of Southern California, August 1982.