Solaris sendmail issue

I am trying to send mail from a Solaris 10 machine to myself. The mail will be receive by a mail server.

The problem is sendmail doesn't report any errors and there is nothing in mailq output. In the logs the stat=queued. I do not receive the mail in my mailbox.

I could telnet to the mailserver and the mailserver responds to x.x.2.11 which is tied to hostname-bge3 in /etc/hosts. But my hostname is hostname without the bge and bind to x.x.1.2(virtual ip).

Setting in /etc/hosts is
------------------------
x.x.1.2 hostname
x.x.2.11 hostname-bge3

When telnet to mailserver 25, it responds to HELO >> Hello [x.x.2.11]

Could anyone help me to explain why I cannot receive mail

What and when was the recent changes made to your system? Previously was your sendmail working fine all the while?

Incredible, someone responded ;)!

No changes was done. I am trying to run a cron job which will mail me the output. Unfortunately, I haven't receive any mail. Consequently, the mail will end up undelivered by sendmail. This could be seen when I log into the machine, it says "You have mail".

Below are excerpts from syslog(edited)
Nov 4 10:02:20 hostname sendmail[4805]: [ID 801593 mail.info] mA4A10Gm004805: from=root, size=2467, class=0, nrcpts=2, msgid=<200811041001.mA4A10Gm004805@hostname>, relay=root@localhost
Nov 4 10:02:20 hostname sendmail[4805]: [ID 801593 mail.info] mA4A10Gm004805: to=xxxxxx, delay=00:01:20, mailer=esmtp, pri=62467, dsn=4.4.3, stat=queued
Nov 4 10:02:20 hostname sendmail[4805]: [ID 801593 mail.info] mA4A10Gm004805: to=xxxxxx, delay=00:01:20, mailer=esmtp, pri=62467, dsn=4.4.3, stat=queued
Nov 4 14:12:27 hostname sendmail[5009]: [ID 801593 mail.info] mA4A10Gm004805: mA4EB7I2005009: sender notify: Warning: could not send message for past 4 hours
....
Nov 4 14:28:00 hostname sendmail[16683]: [ID 801593 mail.info] mA4L00M0016683: to=oracle, ctladdr=oracle (101/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30448, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (mA4L00f1016690 Message accepted for delivery)

Please help!

Somewhat looks like DNS config conflict. Are you able to perform a nslookup to your domain/ip and get the right response?

I did a
#sendmail -Ac -v -q

and received this response

Running /var/spool/clientmqueue/mA55486v005844 (sequence 1 of 2)
u.com.my: Name server timeout
xxx@x.com.my... Transient parse error -- message queued for future delivery
Running /var/spool/clientmqueue/mA4A10Gm004805 (sequence 2 of 2)
u.com.my: Name server timeout
xxx@x.com.my... Transient parse error -- message queued for future delivery
u.com.my: Name server timeout
xxx@x.com.my... Transient parse error -- message queued for future delivery

There is no DNS server configured.
root@xxxx $ nslookup mailserver
;; connection timed out; no servers could be reached

That's the problem... you can see that something is not right here.. :confused:

Finally, it's solved! :smiley:

I edited /etc/nsswitch.conf and commented dns from the entry

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files #dns

However, could you tell me what issues might arise in future with the above setup?

Well done! when you perform this now,#sendmail -Ac -v -q, do you get errors?
/etc/resolve.conf file should have your DNS server names in a preceding order.Do you have any?