Unable to send mail

Hey guys i got this error my logs

  • I ping 127.0.0.1 and it says that its alive

  • I checked sendmail and it is running

  • I tried to send a test email but nothing happens it seems that it hangs

  • What is the possible cause of this?

use mailx command and try

I tried that but its the same issue.

I tried restarting sendmail then another error occured "DSN: Service unavailable ()"

is your solaris box configured as a DNS client?

yes it is..

relay=[127.0.0.1]

means that your machine is configured as smtp-server in /etc/mail/sendmail.cf

if thats true, check if port 25 is open, netstat -an | grep -i listen

if your server is not a mail server, ask for the ip of the right server, write it to sendmail.cf and restart you service