1821984 Members
3361 Online
109638 Solutions
New Discussion юеВ

How do i enable mailx

 
whiteSox
Frequent Advisor

How do i enable mailx

Hi ,

How do i enable mailx on B.11.23 U ia64 and what is the diff b/w sendmail and mailx on hp-ux .Thanks for your reply..
10 REPLIES 10
Vijaya Kumar_3
Respected Contributor

Re: How do i enable mailx

mailx is a mail client (you can compare with Outlook) while sendmail is being the Mail Transfer Agent (kind of mail server). Using mailx, you can send and receive emails.

What do you mean by enabling mailx? Do you want to send or receive emails using mailx?

Regards
Vijay Chinnasamy
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
TTr
Honored Contributor

Re: How do i enable mailx

You don't enable/disable mailx. It is a program used to send or read emails. You enable sendmail to transport mail between servers. Search for "sendmail DS" in this forum for details about enabling senmail.
whiteSox
Frequent Advisor

Re: How do i enable mailx

yes! How would you configure this ..it is not working ...
Vijaya Kumar_3
Respected Contributor

Re: How do i enable mailx

Please define "not working". What did you do? what is the error etc...
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
whiteSox
Frequent Advisor

Re: How do i enable mailx

/usr/sbin/sendmail test abcd@xyz.com
test... User unknown
TTr
Honored Contributor

Re: How do i enable mailx

Did you search for "sendmail DS"? And what have you done so far to configure sendmail?
Rita C Workman
Honored Contributor

Re: How do i enable mailx

To start sendmail it is:

/sbin/init.d/sendmail start

To configure sendmail takes a good bit more. How do you currently get/send email? If you already have a mail server, then you need to set up the /etc/mail/sendmail.cf file to relay the mail server.
To relay to mail server edit sendmail.cf file:
DSsmtp:smtprelay.
To masquerade name:
DM

This is a really really limited amount of information. You need to do a man on sendmail and do some searches here on setting up sendmail.

Rgrds,
Rita
Vijaya Kumar_3
Respected Contributor

Re: How do i enable mailx

As I said earlier, sendmail is a server and not a mail client. You can NOT use sendmail utility for sending an email. You have to use mailx for this purpose. Here is the syntax:

mailx -s abc@abc.com

Regards
Vijay Chinnasamy
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Patrick Wallek
Honored Contributor

Re: How do i enable mailx

>>/usr/sbin/sendmail test abcd@xyz.com
>>test... User unknown

The error is exactly what it says. It expects test to be a user, while you probably expect it to be the subject.

>>You can NOT use sendmail utility for sending an email.

Not true at all.

To send e-mail with sendmail you can do:

echo "some test here" | /usr/sbin/sendmail abcd@xyz.com

Vijaya Kumar_3
Respected Contributor

Re: How do i enable mailx

Oh... Thanks Patrick. I didnt know the sendmail syntax for sending emails. I always use mailx and mail. Thx.
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com