Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailx question

Status
Not open for further replies.

ponetguy2

MIS
Joined
Aug 28, 2002
Messages
442
Location
US

hello gurus,

I'm trying to send mail from a Solaris 9 box on a Domain.

I used the command below, but no dice.

mailx -s 'test mail from blahserver' meme@domain.com</tmp/mail.log

here is my nslookup output.


# nslookup mailserver.domain.com
Server: dnsserver.domain.com
Address: 10.20.10.60

Non-authoritative answer:
Name: mail.domain.com
Address: 10.1.1.24
Aliases: mailserver.domain.com

internal dns: dnsserver.domain.com

I also disabled sendmail. I believe that sendmail is not needed to send
mail, using mailx.

Please help.
 
Sendmail only needs to run to accept incoming mail. Look in /var/spool/mqueue for the message that didn't get delivered. It will have the errors in the message.
 
Do an [tt]nslookup[/tt] of "[tt]mailhost[/tt]". I believe that's the name that sendmail uses (I believe [tt]mailx[/tt] uses [tt]sendmail[/tt] to actually send the mail (I could be wrong)).

If it's not in DNS, do this. If [tt]10.1.1.24[/tt] is the IP of your mail server, add the following line to your [tt]/etc/hosts[/tt] file...

Code:
10.1.1.24      mailhost mailhost.domain.com
 
If you do a:

Code:
mailx [b]-v[/b] -s 'test mail from blahserver' meme@domain.com</tmp/mail.log

You can see where it is connecting up to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top