10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please help me in putting a trace on shell script running in AIX
Best regards,
Vishal (3 Replies)
Discussion started by: Vishal_dba
3 Replies
2. AIX
Please help, i can not to send email from AIX 6.1 to outside network through STMP - Exchange. Any one can help ? (1 Reply)
Discussion started by: ichsan
1 Replies
3. Shell Programming and Scripting
i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies
4. UNIX for Advanced & Expert Users
Hello,
I execute an application on my Unix AIX Server and that one crashes after reading some files. These files are very big (80 Mbytes), the application is a CVS Repository.
I have found with a comparaison on a Solaris Server that there are system limitations on my AIX Server in the... (2 Replies)
Discussion started by: steiner
2 Replies
5. Solaris
Hi
I would like to display only error messages from my log files while monotring application on my solaris box using tail command.
Is there other way we can monitor please let me know?
In general # tail -f "xyz.log' ---> this will display current activity of the logs, instead i would like... (4 Replies)
Discussion started by: gkrishnag
4 Replies
6. AIX
Hello,
Looking for Document how to install / configure SMTP Server on AIX 6.1
is it through smitty menu ? (3 Replies)
Discussion started by: filosophizer
3 Replies
7. AIX
I remember there is a command can trace what I have done on aix. such as when I run smitty user to add a new user, run any command on aix, install some application software on aix, just like trace every step and every screen out to a file.
I forget what command is, does anyone know it? (6 Replies)
Discussion started by: rainbow_bean
6 Replies
8. AIX
how do i turn on aix43 history command? so that i could recall the command with <esc>+k.
thanks (3 Replies)
Discussion started by: itik
3 Replies
9. AIX
Greetings. . .Can anyone out there explain how I would turn off the telnet service and close the telnet port on a AIX system?
Thank you,
outta. (2 Replies)
Discussion started by: outtacontrol
2 Replies
10. UNIX for Advanced & Expert Users
In my organization in order for anyone to go to any Unix server they have to go through "SERVER A" and login as themselves.
Then people are free to go enywhere they please.
For example:
SERVER A, loggs in as himself
telnets to SERVER B, loggs in as guest
telnets to SERVER C, loggs in as... (8 Replies)
Discussion started by: jraitsev
8 Replies
Net::SMTP::TLS(3pm) User Contributed Perl Documentation Net::SMTP::TLS(3pm)
NAME
Net::SMTP::TLS - An SMTP client supporting TLS and AUTH
VERSION
Version 0.12
SYNOPSIS
use Net::SMTP::TLS;
my $mailer = new Net::SMTP::TLS(
'your.mail.host',
Hello => 'some.host.name',
Port => 25, #redundant
User => 'emailguy',
Password=> 's3cr3t');
$mailer->mail('emailguy@your.mail.host');
$mailer->to('someonecool@somewhere.else');
$mailer->data;
$mailer->datasend("Sent thru TLS!");
$mailer->dataend;
$mailer->quit;
DESCRIPTION
Net::SMTP::TLS is a TLS and AUTH capable SMTP client which offers an interface that users will find familiar from Net::SMTP. Net::SMTP::TLS
implements a subset of the methods provided by that module, but certainly not (yet) a complete mirror image of that API.
The methods supported by Net::SMTP::TLS are used in the above example. Though self explanatory for the most part, please see the perldoc
for Net::SMTP if you are unclear.
The differences in the methods provided are as follows:
The mail method does not take the options list taken by Net::SMTP
The to method also does not take options, and is the only method available to set the recipient (unlike the many synonyms provided by
Net::SMTP).
The constructor takes a limited number of Net::SMTP's parameters. The constructor for Net::SMTP::TLS takes the following (in addition
to the hostname of the mail server, which must be the first parameter and is not explicitly named):
NoTLS - In the unlikely event that you need to use this class to perform non-TLS SMTP (you ought to be using Net::SMTP itself for
that...), this will turn off TLS when supplied with a true value. This will most often cause an error related to authentication
when used on a server that requires TLS
Hello - hostname used in the EHLO command
Port - port to connect to the SMTP service (defaults to 25)
Timeout - Timeout for inital socket connection (defaults to 5, passed directly to IO::Socket::INET)
User - username for SMTP AUTH
Password - password for SMTP AUTH
TLS and AUTHentication
During construction of an Net::SMTP::TLS instance, the full login process will occur. This involves first sending EHLO to the server, then
initiating a TLS session through STARTTLS. Once this is complete, the module will attempt to login using the credentials supplied by the
constructor, if such credentials have been supplied.
The AUTH method will depend on the features returned by the server after the EHLO command. Based on that, CRAM-MD5 will be used if
available, followed by LOGIN, followed by PLAIN. Please note that LOGIN is the only method of authentication that has been tested. CRAM-MD5
and PLAIN login functionality was taken directly from the script mentioned in the acknowledgements section, however, I have not tested them
personally.
ERROR HANDLING
This module will croak in the event of an SMTP error. Should you wish to handle this gracefully in your application, you may wrap your mail
transmission in an eval {} block and check $@ afterward.
ACKNOWLEDGEMENTS
This code was blatantly plagiarized from Michal Ludvig's smtp-client.pl script. See <http://www.logix.cz/michal/devel/smtp> for his
excellent work.
AUTHOR
Alexander Christian Westholm, awestholm at verizon dawt net
Improvements courtesy of Tomek Zielinski
perl v5.10.0 2006-01-17 Net::SMTP::TLS(3pm)