Showing results for 
Search instead for 
Did you mean: 

mailx (sendmail) does not work

Go to solution
John A. Hegedus_1
Occasional Contributor

mailx (sendmail) does not work

While executing sendmail or mailx to try and email messages I get error Service Unavailable.
Do you know what would possibly cause this problem??? I've check all dns entries /hosts and .cf / .cw files.. Everything seems ok...I'm doing this from a new work station which coincedently is on the same subnet as my lap top... Other servers on diff subnets works fine
Rick Garland
Honored Contributor

Re: mailx (sendmail) does not work

Have you configured the sendmail config file at all?

Do you have a Smart Relay defined?

How is the resolution working on your new work station? Is the DNS service defined?

Honored Contributor

Re: mailx (sendmail) does not work

Hi John,

You may be having anti-spamming configured on the mail relay. check the anti-spamming control on your system as well as the mail relay.

Do a

/usr/sbin/sendmail -v
your test here

this will give you the debug results which may help in identifying the problem.

Hope this helps.

Steven E. Protter
Exalted Contributor

Re: mailx (sendmail) does not work

I'd do a mod on Sanjay's command.

/usr/sbin/sendmail -v -d8.99 38.99
your test here


The diagnostics will be more verbose.

looking at the /var/adm/syslog/mail.log
may prove useful as well.

Steven E Protter
Owner of ISN Corporation

Re: mailx (sendmail) does not work

Is your sendmail daemon runing ? this can be chacked with "ps -aef | grep sendmail".

Also depending upon the address where you are sending the e-mail, you may have to configure the /etc/mail/ or /etc/resolv.conf or /etc/nsswitch.conf file.

You can check if you are able to receive e-mails locally by -
sendmail -v root this will re-direct the containts of the /etc/hosts file to the mail box of root.
If this works, then there is some config. issue.
Nothing is impossible
John A. Hegedus_1
Occasional Contributor

Re: mailx (sendmail) does not work

Upon investigation of /var/adm/syslog/mail.log the following errors show -----

return to sender insufficient permission relay=(completely qualified DNS entry) stat=Service unavailable
DSN: Service unavailable
I can ping the relay address no prob and the DS entry in the .cf file contains the right address???