Unable to send email to the outside world

Hi all,
Iam unable to send mail from my unix machine(solaris x86,version 5.10) to the outside world.

I can able to access the internet,but not able to send to any yahoo or company email id.

Before posting this,i have searched this forum many times,but could not get the results what i needed.Given below are the details for your reference.Kindly help me out.

Error Details:
When i put mail,mailx or send mail iam getting the below error message:

For example:

# /usr/lib/sendmail -v <yahoo mail id>

WARNING: local host name (Jaya) is not qualified; see cf/README: WHO AM I?
Jul 26 09:37:15 Jaya sendmail[1181]: [ID 702911 mail.alert] unable to qualify my own domain name (Jaya) -- using short name

Sendmail version & other Details:

# /usr/lib/sendmail -d0.1 -bt < /dev/null

Version 8.13.8+Sun
Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS
NISPLUS PIPELINING SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT XDEBUG
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = Jaya
(canonical domain name) $j = Jaya
(subdomain name) $m = <null>
(node name) $k = Jaya

WARNING: local host name (Jaya) is not qualified; see cf/README: WHO AM I?
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>

Note:

I did not configure my machine as a DNS server but configured as DNS client.Is it necessary to configure a DNS server inorder to send email?or is it possible to make my machine itself as a mail server to send email?

:b:Regards,
jayaprakash.N

Hi,
Did you tried this by setting a full canonical domain name (for eg: s01.test.com) in /etc/hosts and thru hostname command.

Regards
Ramkumar

Hi ,

I never tried this .I have set the /etc/hosts as hostname(Jaya) followed by the ip address.

thanks,
jayaprakash

It's complaining that this is not a fully qualified name.

  1. Did you add MX record to your DNS server ? you should.

  2. Type this command:

# domainname

What's the output ?? you have set a fully qualified domain name

  1. Type this also:
# cat /etc/resolv.conf

We need to see your DNS client configuration too.

  1. type
# nslookup Jaya
# ping Jaya

tell us what's the result...

  1. Did you add MX record to your DNS server ? you should.

No i didn't.First of all ,i didn,t configure this as a DNS server,only as a DNS client.Also the /etc/mail/sendmail.cf is shown you for your reference.

##################
# local info #
##################

# my LDAP cluster
# need to set this before any LDAP lookups are done (including classes)
#D{sendmailMTACluster}$m

Cwlocalhost
# file containing names of hosts for which we receive email
Fw/etc/mail/local-host-names

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM

# host/domain names ending with a token in class P are canonical
CP.

# "Smart" relay host (may be null)
DS

# operators that cannot be in local usernames (i.e., network indicators)
CO @ % !

# a class with just dot (for identifying canonical names)
C..

# a class with just a left bracket (for identifying domain literals)
C[[

C{ResOk}OKR

# Hosts for which relaying is permitted ($=R)
FR-o /etc/mail/relay-domains

  1. Type this command:

# domainname

#
3. Type this also:

# cat /etc/resolv.conf
nameserver <ip address >

  1. type

# nslookup Jaya
Server: < ip address >
Address: < ip address >
** server can't find Jaya: NXDOMAIN

# ping Jaya
Jaya is alive

Regards,
jayaprakash.N

Just add the FQDN of Jaya in your hosts file to get rid of that error message.
I suspect that isn't the issue but let's start with the simple stuff first :slight_smile:
Modify /etc/hosts, adding the entry 'jaya.<your.domain.name>' to the end of the line for jaya's address.

The sendmail error should then go away. If mail is still not working to outside-world addresses, get the error message from /var/adm/messages (just grep for 'sendmail') and post it back.

I'd recommend against using a capital letter at the start of that hostname too - most of the addressing is case insensitive but every now and then you get a tool that isn't and it causes problems.