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 strongm 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.

beaster

Technical User
Aug 20, 2001
225
US
I have a Sun box that is set up on our network fine. I try to send an email using mailx

mailx user@domain.com
Subject: Test
Test Test
.
EOT

But the mail neve goes through. Is there someplace I should be checking to see why it does not?

Or does the domain I am sending to need to be configured someplace on the box?

Thanks!
 
don't confound mailx and sendmail
mailx -s "subject" user@domeain < texfile
or
cat textfile | mailx -s "subject" user@domeain
 
I have tried that as well, since it is my preference but it does not go through either.

mailx -s "subject" user@domeain < texfile

Is there a log file I can look at to see what is happening?

 
Hi beaster,

Check your syslog configuration file /etc/syslog.conf for the location of "mail.debug". By default it is /var/log/syslog .

I hope that helps.

Mike
 
Now I see what is going on. Any ideas?

Aug 5 12:27:17 vaossws03 sendmail[13121]: [ID 801593 mail.info] i7153MZ04572: to=user@domain.com, ctladdr=root (0/1), delay=4+05:23:55, xdelay=00:00:00, mailer=relay, pri=37358000, relay=mailhost.oss1, dsn=4.0.0, stat=Deferred: Connection refused by mailhost.oss1
 
by default sendmail connects DNS to resolve the Mailexchanger for your domain -> set this to your MX correctly

the host sendmail found right now is mailhost.oss1 which does not accept mails from this client
run
Code:
telnet mailhost.oss1 25
helo [i]your hostname[/i]
mail from: [i]president@whitehouse.gov[/i] ;)
rcpt to: [i]you@yourdomain.com[/i]
data
Sunject: test
huhu!
.

If this works sendmail can deliver mails and the userclient mailx, mail, dtmail, ... will work, too

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top