Oracle Solaris System Administration (MOSC)

MOSC Banner

Sending email using external SMTP server

edited Jul 10, 2015 11:25AM in Oracle Solaris System Administration (MOSC) 3 commentsAnswered

Hi all,

I need to send email connecting to an external SMTP server, using user/password, like I do in linux via nail in the command line.

What I am using now is:

1) Getting the connection string

root@myserver:~# perl -MMIME::Base64 -e 'print encode_base64("\000myuser\@mysmtpserver.com\000mypass")'

2) Opening a connection using the connection string to authenticate:

root@myserver:~# openssl s_client -crlf -connect mail.mysmtpserver.com:465

...

EHLO mail.mysmtpserver.com

250-

...

AUTH PLAIN <CONNECTION STRING...>

235 2.7.0 Authentication successful

...

MAIL FROM: <...

...

.

QUIT

DONE

root@myserver:~#

Do we have any similar tool in solaris 10 or 11 that makes my life simpler, like mailx.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center