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 error

807557Nov 10 2005 — edited Aug 27 2006
Dear all,

New to Solaris and testing it out at the moment.

When I did the install, I accidentally did not put a hostname for my machine, so it came up as unknown. Then I changed it to an actual name, and started to get this sendmail error:

sendmail[2059]: [ID 702911 mail.alert] unable to qualify my own domain name (Fred2) -- using short name

At the moment, I am also not receiving any system mail at all.

Thanks in advance.

Regards,
Fred

Comments

abrante
well, sendmail needs to know which domain your host is in, if it can't determine the domain it will display the error you saw.

To cure this you could update your /etc/hosts file, and add <your hostname>.<your domain> to the line which contains the box main IP address.

If you are not receiving any system mail, try and send an email to root using mailx -v:

mailx -v root

(type some data here, then end with a single dot on a single line, or ctrl+d)

mailx will hopefully tell you why it can't deliver emails.

//M.
807557
Dear M.

Thanks for helping out. I've looked everywhere I could think of but could not find any reference to the domain. Where do I find this and how would I set it (if it's possible).

Also, I tried sending a message to myself using the command you provided and got the following:

Fred2 sendmail[3859]: [ID 702911 mail.alert] unable to qualify my own domain name (Fred2) -- using short name
WARNING: local host name (Fred2) is not qualified; see cf/README: WHO AM I?
root... Connecting to [127.0.0.1] via relay...
220 Fred2 ESMTP Sendmail 8.13.3+Sun/8.13.3; Fri, 11 Nov 2005 01:31:43 +1100 (EST)
EHLO Fred2
250-Fred2 Hello localhost [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:<root@Fred2> SIZE=51
051 Fred2: Name server timeout
050 <root@Fred2>... Transient parse error -- message queued for future delivery
051 Fred2: Name server timeout
051 Fred2: Name server timeout
250 2.1.0 <root@Fred2>... Sender ok
RCPT To:<root@Fred2>
DATA
051 Fred2: Name server timeout
050 <root@Fred2>... Transient parse error -- message queued for future delivery
051 Fred2: Name server timeout
250 2.1.5 <root@Fred2>... Recipient ok (will queue)
354 Enter mail, end with "." on a line by itself
.
050 <root@Fred2>... queued
250 2.0.0 jAAEVh0o003889 Message accepted for delivery
root... Sent (jAAEVh0o003889 Message accepted for delivery)
Closing connection to [127.0.0.1]
QUIT
221 2.0.0 Fred2 closing connection

When I type mail, I get No mail. Also, I do not see a root folder in /var/mail/...is that normal?

Regards,
Fred
abrante
It doesn't send the message, it queued it for future delivery, try and edit your /etc/hosts so "fred2" includes a domainname, and also make sure that you have a resolv.conf which points to a valid nameserver, then restart sendmail (svcadm disable smtp; svcadm enable smtp), and things should work again.
'
To view the contents of the mailqueue, run:
mailq

//M.,
807557
Sorry, I'm getting a bit confused. During the setup phase, I wasn't asked for any domain names. Is there some place that I need to set the domain name to or can I just add any domain to the /etc/hosts file eg 192.168.0.3 Fred2 Fred2@blah.com?

My current setup is the Solaris PC connects directly to my router/modem combo, which has DHCP enabled. So the router in this case cannot act as a name server.

Regards,
Fred
807557
Fred,
Did you have any luck with this? I've got the same issue.
Brian
807557
Hi Alf928
I found your message when I googled some words concearning sendmail-errormessages

First of all I have to tell you that I have the same problem on one of my solaris-systems and I could not fix it not yet

nevertheless here are some hints:
Under solaris the file /etc/resolv.conf can contain the domain name in the form "domain blah.com" (using your example).

Unfortunatly this will not solve your problem.

Regards,
Markus
807557
sendmail[2059]: [ID 702911 mail.alert] unable to
qualify my own domain name (Fred2) -- using short
name
Sendmail knows the machine name but does not know the domain name.

In your /etc/hosts file you have a line similar to:

10.1.1.1 my_machine_name

what you need is:

10.1.1.1 my_machine_name my_machine_name.domain.name

Then sendmail can extract the domain name and the error message will go away.

Check your ipnoes file as well.

alan
807557
hi all

when i am installing solaries 10 2nd cd .
i got this problem.
sendmail[693]: unable to qualify my own domain name (local host ) -- using short name
sendmail[692]: unable to qualify my own domain name (local host ) -- using short name

the disc you inserted is not the correct cd/dvd for solaris software 2 for x86 platforms .
plz try again.

<press enter to continue>
(i already inserted 2nd cd in cdrom. but ejects )
807557
Thanx very much for alan_pae

His answer worked fine with me & the message gone

also thanx to mAbrante
1 - 9
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 24 2006
Added on Nov 10 2005
9 comments
662 views