Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mconnect(1) [linux man page]

mconnect(1)							   User Commands						       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 soft- ware. 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 immedi- ately and exits. OPTIONS
The following options are supported: -p port 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. See ip6(7P). FILES
/etc/mail/sendmail.hf help file for SMTP commands ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
telnet(1), sendmail(1M), attributes(5), ip6(7P) Postel, Jonathan B., RFC 821, Simple Mail Transfer Protocol, Information Sciences Institute, University of Southern California, August 1982. SunOS 5.10 9 Nov 1999 mconnect(1)

Check Out this Related Man Page

Authen::Simple::SMTP(3pm)				User Contributed Perl Documentation				 Authen::Simple::SMTP(3pm)

NAME
Authen::Simple::SMTP - Simple SMTP authentication SYNOPSIS
use Authen::Simple::SMTP; my $smtp = Authen::Simple::FTP->new( host => 'smtp.company.com' ); if ( $smtp->authenticate( $username, $password ) ) { # successfull authentication } # or as a mod_perl Authen handler PerlModule Authen::Simple::Apache PerlModule Authen::Simple::SMTP PerlSetVar AuthenSimpleSMTP_host "smtp.company.com" <Location /protected> PerlAuthenHandler Authen::Simple::SMTP AuthType Basic AuthName "Protected Area" Require valid-user </Location> DESCRIPTION
Authenticate against a SMTP service. METHODS
* new This method takes a hash of parameters. The following options are valid: * host Connection host, can be a hostname or IP number. Defaults to "localhost". host => 'ftp.company.com' host => '10.0.0.1' * port Connection port, default to 25. port => 25 * timeout Connection timeout, defaults to 60. timeout => 60 * log Any object that supports "debug", "info", "error" and "warn". log => Log::Log4perl->get_logger('Authen::Simple::SMTP') * authenticate( $username, $password ) Returns true on success and false on failure. SEE ALSO
Authen::Simple. Net::SMTP. AUTHOR
Christian Hansen "ch@ngmedia.com" COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2008-03-01 Authen::Simple::SMTP(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

deferred: connection timed out with NT

We recently installed a new release of SCO UNIX (5.0.6) and when I try to relay e-mail from the UNIX box to my NT server (the mail server) I get the following message from sendmail. Deferred: Connection timed out with nt I have nt set up as my relay server in sendmail.cf and the mail seems to... (8 Replies)
Discussion started by: jmossman
8 Replies

2. Cybersecurity

SMTP Flooding - How can I stop it?

Please someone help! My SMTP server has been under attack for days and I'm at my wits end. I'm by no means a UNIX security expert but I've been reading and researching for days to no avail. I'm getting unauthorized mail from external servers being relayed or redirected through my SMTP server. The... (9 Replies)
Discussion started by: zaroundus
9 Replies

3. Shell Programming and Scripting

mail from unix

hi i looked at different threads on how to send mail from unix. but i want to ask how can i send mail when my unix server is only connected to mail server this i know cause i can ping it to that server. how can send mail with help of that mail server ? i do have mail id on that server. i know... (6 Replies)
Discussion started by: zedex
6 Replies

4. UNIX for Dummies Questions & Answers

Solaris mail routing to Windows SMTP server (trailing dot)

Hello, Firstly, appologies, i am a windows man but i'm picking things up really quickly.! We have some Unix boxes on our estate that route mail to a Windows SMTP server. This doesn't seem to work and after looking at the message headers it looks like the mail is getting bounced. :( -----... (4 Replies)
Discussion started by: M2TTJ
4 Replies

5. UNIX for Advanced & Expert Users

Configuring Linux box with the smtp mail server

Hi all, I was trying to configure SMTP server with my linux box. I made changes to the /etc/mail/sendmail.cf whereby editing the line DAEMON_OPTIONS(`Port=<port number>,Addr=<mail server name>, Name=MTA')dnl after this ive created a new sendmail.cf file by using the command m4... (4 Replies)
Discussion started by: amit_kv1983
4 Replies

6. UNIX Desktop Questions & Answers

Open other ports for sending mail

I am using mailx to sending out mail, but the mail server is not using SMTP port 25. how can i configure to use other port insted of 25 port. I have tried to modify the line in /etc/mail/sendmail.cf to change the port. But failed. below is the line that i modified. O... (5 Replies)
Discussion started by: Felixkoo
5 Replies

7. Shell Programming and Scripting

telnet to another server

hi all, i wanted to write a ksh script to telnet to another server on a particular port every 5 mins in order to send out an alert if that server went down. how do i read the response that comes back when the server is down i.e "telnet: Unable to connect to remote host: Connection refused" ... (5 Replies)
Discussion started by: cesarNZ
5 Replies

8. Solaris

Need help with mail service on Sol 10

Hello All: I am trying to configure mail service on Solaris 10 and I am unable to send using mailx. It appears the server may not be listening on port 25: bash-3.00# mconnect connecting to host localhost (127.0.0.1), port 25 connect: Connection refused services is configured to use port... (7 Replies)
Discussion started by: hoo5091
7 Replies

9. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

10. UNIX for Dummies Questions & Answers

How would i mail in html format?(Formatting Help)

I have written a scripts that checks the load average of server and if it is more than 5 it send a mail describing Current Load Average and High CPU/RAM processes . The problem is I want to send these information in html form .I have done necessary coding to do the same but whenever i try to... (7 Replies)
Discussion started by: pinga123
7 Replies

11. AIX

Help on activating port 25

Hi, I have started the sendmail service on aix box, using startsrc -s sendmail. but when I am using the command telnet <Server ip> 25, it is not showing as port open, Please suggest. Regards, Manu (6 Replies)
Discussion started by: manoj.solaris
6 Replies

12. Solaris

Telnet issue

Hi Gurus, I have solaris 10 server where I can telnet to one host and port <20011> with no problem..but when I am trying to telnet to another host same port (port is listening) I am not getting any success...it just says trying.... Now that I have both hosts listed in the /etc/hosts file,... (4 Replies)
Discussion started by: mohullah
4 Replies

13. UNIX for Dummies Questions & Answers

Linux telnet doesn't want to connect with mail servers

Hi, I have a problem which rely on the fact that I can't to connect from my Linux to any mail server (I have tried for example poczta.o2.pl 587 and poczta.onet.pl 587). It something strange because it works finely on Windows. Have you suggestions what can be source of troubles? I have tried to... (5 Replies)
Discussion started by: DavidMax
5 Replies

14. UNIX for Dummies Questions & Answers

I have firewall rules to open ports, why telnet refuses connection?

Alright... this question comes from the fact that I'm trying to setup postfix to relay messages to Office 365 SMTP but its giving me connection refused... I read that if you have doubts if your port is open or not you should telnet to them so thats what I did. This is a Red Hat 6.3 box. My... (4 Replies)
Discussion started by: RedSpyder
4 Replies

15. HP-UX

Sendmail Configuration

Hi All, Need help !. I am configuring SMTP server details in my sendmail.cf My SMTP server details are like MAC234.ad.compname.com, and i have configured my sendmail.cf with this address. But mail address is something like user1@compname.com. Now when i run the sendmail command, i get... (6 Replies)
Discussion started by: chpsam
6 Replies