Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

sendmail to external user like gmail.com or hotmail.com not working in solaris11.1

User_G8U7OMar 12 2017 — edited Mar 22 2017

Dear Members,

I can able to send the email from server to my office email and its working without any problem, I can receive email from the server

when I try to send email to external user like my gmail or hotmail then its not working.. kindly let me what entry should i need to add.

sendemail services is online

root@test:/var/spool/mqueue# mshaik@xxx.yyy.sa... Connecting to [127.0.0.1] via relay...

220 test.xxx.yyy ESMTP Sendmail 8.14.7+Sun/8.14.7; Thu, 9 Mar 2017 06:58:52 +0300 (AST)

>>> EHLO test.xxx.yyy

250-test.xxx.yyy Hello localhost.localdomain [127.0.0.1], pleased to meet you

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-EXPN

250-VERB

250-8BITMIME

250-SIZE

250-DSN

250-ETRN

250-DELIVERBY

250 HELP

>>> VERB

250 2.0.0 Verbose mode

>>> MAIL From:<admin@test.xxx.yyy> SIZE=64

250 2.1.0 <admin@test.xxx.yyy>... Sender ok

>>> RCPT To:<mshaik@xxx.yyy.zz>

>>> DATA

250 2.1.5 <mshaik@xxx.yyy.zz>... Recipient ok

354 Enter mail, end with "." on a line by itself

>>> .

050 <mshaik@xxx.yyy.zz>... Connecting to owa.xxx.yyy.zz. via esmtp...

050 220 ****************************************************************************************

050 >>> EHLO test.xxx.yyy

050 250-test-abcd10.xxx.yyy Hello [10.245.70.138]

050 250-SIZE 10485760

050 250-PIPELINING

050 250-DSN

050 250-ENHANCEDSTATUSCODES

050 250-XXXXXXXA

050 250-XXXXXXXXXXXXXB

050 250-AUTH NTLM

050 250-XXXXXXXXXXXXXXXXXC

050 250-8BITMIME

050 250-BINARYMIME

050 250-XXXXXXXD

050 250 XXXXE

050 >>> MAIL From:<admin@test.xxx.yyy> SIZE=354

050 250 2.1.0 Sender OK

050 >>> RCPT To:<mshaik@xxx.yyy.zz>

050 >>> DATA

050 250 2.1.5 Recipient OK

050 354 Start mail input; end with <CRLF>.<CRLF>

050 >>> .

050 250 2.6.0 <201703090358.v293wqvI000167@test.xxx.yyy> [InternalId=7992934138474, Hostname=CC1001-EXCH04.kfmc.med] 1917 bytes in 0.157, 11.859 KB/sec Queued mail for delivery

050 <mshaik@xxx.yyy.zz>... Sent (<201703090358.v293wqvI000167@test.xxx.yyy> [InternalId=7992934138474, Hostname=test-abcd10.xxx.yyy] 1917 bytes in 0.157, 11.859 KB/sec Queued mail for delivery)

250 2.0.0 v293wqPk000168 Message accepted for delivery

mshaik@xxx.yyy.zz... Sent (v293wqPk000168 Message accepted for delivery)

Closing connection to [127.0.0.1]

>>> QUIT

221 2.0.0 test.xxx.yyy closing connection

root@test:/var/spool/mqueue# mailq

root@test:/var/spool/mqueue# mailq

/var/spool/mqueue is empty

                Total requests: 0

/etc/nsswitch.conf output

passwd: files

group:  files

hosts:  cluster files dns

ipnodes:        cluster files dns

networks:       files

protocols:      files

rpc:    files

ethers: files

netmasks:       cluster files

bootparams:     files

publickey:      files

netgroup:       files

automount:      files

aliases:        files

services:       files

printers:       user files

project:        files

auth_attr:      files

prof_attr:      files

tnrhtp: files

tnrhdb: files

sudoers:        files

DNS entry added

nameserver      10.241.11.4

nameserver      10.242.181.2

nameserver      10.241.11.2

nameserver      10.243.2.71

when I try to send email to external user like gmail or hotmail then its not working

root@test:/# mailx -v shaikmuneer.engr@gmail.com

subject: hi geof

hi test email

EOT

root@test:/# shaikmuneer.engr@gmail.com... Connecting to [127.0.0.1] via relay...

220 test.xxx.yyy ESMTP Sendmail 8.14.7+Sun/8.14.7; Wed, 8 Mar 2017 15:08:30 +0300 (AST)

>>> EHLO test.xxx.yyy

250-test.xxx.yyy Hello localhost.localdomain [127.0.0.1], pleased to meet you

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-EXPN

250-VERB

250-8BITMIME

250-SIZE

250-DSN

250-ETRN

250-DELIVERBY

250 HELP

>>> VERB

250 2.0.0 Verbose mode

>>> MAIL From:<admin@test.xxx.yyy> SIZE=82

250 2.1.0 <admin@test.xxx.yyy>... Sender ok

>>> RCPT To:<shaikmuneer.engr@gmail.com>

>>> DATA

250 2.1.5 <shaikmuneer.engr@gmail.com>... Recipient ok

354 Enter mail, end with "." on a line by itself

>>> .

050 <shaikmuneer.engr@gmail.com>... Connecting to gmail-smtp-in.l.google.com. via esmtp...

050 <shaikmuneer.engr@gmail.com>... Connecting to mailhost.kfmc.med via esmtp...

050 <shaikmuneer.engr@gmail.com>... Connecting to alt1.gmail-smtp-in.l.google.com. via esmtp...

050 <shaikmuneer.engr@gmail.com>... Connecting to alt2.gmail-smtp-in.l.google.com. via esmtp...

050 <shaikmuneer.engr@gmail.com>... Connecting to alt3.gmail-smtp-in.l.google.com. via esmtp...

050 <shaikmuneer.engr@gmail.com>... Connecting to alt4.gmail-smtp-in.l.google.com. via esmtp...

050 <shaikmuneer.engr@gmail.com>... Deferred: Name server: mailhost.xxx.yyy: host name lookup failure

250 2.0.0 v28C8UMe026317 Message accepted for delivery

shaikmuneer.engr@gmail.com... Sent (v28C8UMe026317 Message accepted for delivery)

Closing connection to [127.0.0.1]

>>> QUIT

221 2.0.0 test.xxx.yyy closing connection

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2017
Added on Mar 12 2017
2 comments
853 views