Configure a domain in Solaris.

People i have 2 solaris 10
A webserver and a mailserver.

What i need to do is to send a mail inside de webserver to the domain company
In the webserver When i use mailx -v -s Prueba me@gmail.com
This is ok and the mail is send.
But when i try to send a mail to someone inside de company
mailx -v -s Prueba other@domain.com
The mail is not send, any idea? the hosts of 2 solaris are this

ip webserver.domain.com.ar
ip mailserver.domain.com.ar

Please if anybody cant help me where to look or what to touch.

Post the output from the "mailx -v" of the failed email attempt.

Here i copy the log:

>>> EHLO webserver.domain.com.ar
250-webserver.domain.com.ar
250-8BITMIME
250-PIPELINING
250-CHUNKING
250-DSN
250-ENHANCEDSTATUSCODES
250-EXPN
250-HELP
250-XADR
250-XSTA
250-XCIR
250-XGEN
250-XLOOP 1F467FF9595AB5E30D948CE5610FC5F9
250-ETRN
250-NO-SOLICITING
250 SIZE 0
>>> MAIL From:<superuser@webserver.domain.com.ar> SIZE=80
250 2.5.0 Address and options OK.
>>> RCPT To:<other@domain.com.ar>
>>> DATA
550 5.1.1 unknown or illegal alias:other@domain.com.ar
554 5.5.0 No recipients have been specified.
>>> RSET
250 2.5.0 Ok.
>>> RSET
250 2.5.0 Ok.
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> MAIL From:<> SIZE=1104
250 2.5.0 Address and options OK.
>>> RCPT To:<superuser@webserver.domain.com.ar>
>>> DATA
250 2.1.5 superuser@webserver.domain.com.ar OK.
354 Enter mail, end with a single ".".
>>> .
250 2.5.0 Ok, envelope id 0KYB0470T6O0@mailserver.domain.com.ar
root... Sent (Ok, envelope id 0KYB0470T6O0
@mailserver.domain.com.ar)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.3.0 Bye received. Goodbye.

I think that what i have to change is superuser@webserver.domain.com.ar
its only have to say superuser@domain.com.ar

Thank you for your time.

Please any suggestion?? I m still having this problem

The problem is here:

The strange format of the error messages suggests that your "aliases" file contains bad characters.