Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mconnect(1) [opensolaris 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: -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. 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 |SUNWsndmu | +-----------------------------+-----------------------------+ 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.11 28 Jan 2008 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. UNIX for Dummies Questions & Answers

Sending mail in the dead.letter file

Sorry for this one ladies and gents, it's probably very easy but I don't know how to, sound familiar :-) I'm using sendmail on a web server that sends some mail through forms, not many. I've got sendmail configured to use our networks relay host and everything was working well. The power... (4 Replies)
Discussion started by: mjdavies
4 Replies

4. 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

5. 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

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. HP-UX

HP UX - Mail

Hi, How do you set up a HPUX server to send mail ? When I try and send mail and use the mailq -v -d command getting the following ; WARNING: local host name (XXXXX) is not qualified; see cf/README: WHO AM I? Thanks in advance (6 Replies)
Discussion started by: belfastbelle
6 Replies

8. 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

9. 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

10. 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

11. BSD

Mail not working and probably never has

Hi hopefully I am in the right forum I am trying to get mail working on a 15 year old server which has probably never been configured to work before The server is on a network with TCP installed and the different servers on this network can all see each other with ping and rsh when I try... (4 Replies)
Discussion started by: DanJSC
4 Replies

12. 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

13. 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

14. 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

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