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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail problem on new solaris 9 box

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
US
I recently installed Solaris 9. I'm having trouble sendmail mail via mailx command.
Do I need to setup or installing anything in order to sendmail from this newly installed
Solaris 9 server?
 
Please let me re-phrase. Sorry for the cryptic english I posted earlier.

I have freshly installed Solaris 9 OS. I want to be able to send
messages via mailx. Do I need to configure anything? Do I need to enable
any services?

I tried to send a message: mailx -s 'blah blah' name@domain.com </tmp/mail.log

No errors, but I did not recieve the message.


I want to know how mailx works on Solaris 9. If one can point me to a link or
explain, I would really appreciate it.

 
I found that all my messages are in /var/spool/clientmqueue.

I am also getting these messages on my /var/adm/messages log every time I try to send a messages:

Jul 1 09:25:24 hostname sendmail[25274]: [ID 801593 mail.info] k61EPO76025274: from=root, size=98, class=0, nrcpts=1, msgid=<200607011425.k61EPO76025274@hostname.testdomain.com>, relay=root@localhost
Jul 1 09:25:24 hostname sendmail[25274]: [ID 801593 mail.info] k61EPO76025274: to=name@testdomain.com, delay=00:00:00, mailer=relay, pri=30098, dsn=4.4.3, stat=queued

Please advise.
 
sendmail doesn't have to be running, ie, ps -ef | grep sendmail unless you want the server to receive mail.

All messages go to /var... when they are unable to send and will retry for (i forget - 5 days before they are removed).

do you have a route defined for mailhost in /etc/hosts?
 
ponetguy2, fyi... I most likely won't be answering or viewing any posts here the rest of the Independence day weekend.

Have a happy and safe Fourth of July!
 
enjoy your holiday, kHz!!!

you are absolutely correct. sendmail does not need to run.

good news, i fixed the problem. i'm not sure how i fixed it, but i did. i added our external dns namserver in /etc/resolv.conf. i also made some changes in local-host-names, relay-domains. i should have been writing notes when i fixed it. oh well.

thank you again. you've always helped me. i feel like i'm getting my unix training from you :)

"Not all operating systems suck, it's just that some operating systems suck worst than others"


 
I know you said you fixed it. Usually though you just have to copy /etc/mail/subsidary.cf /etc/mail/sendmail.cf. Also there should be an entry for mailhost.domain.name in /etc/hosts, DNS, or NIS. You can also run mailx with the -v option to get a verbose output to what it is doing.
 
A few pitfaults:

1) by default sendmail/SMTP works with DNS, you can configure sendmail not to use DNS, there are cookbooks at sunsolve.sun.com
2) sendmail/SMTP tries to derive domainname from the FQHN, the workaround to add a "ip.ip.ip.ip hostname hostname." line to /etc/hosts WILL JUST avoid error messages but not solve
3) you may (should!) shutdown sendmail if the host is not receiving, you better configure sendmail if you plan to use it


Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
thank you for the advise from everyone :)

"Not all operating systems suck, it's just that some operating systems suck worst than others"


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top