Server unable to send mail-how to configure

Hi All,

I'm unable to send out email using mailx command in a new server. I guess the server has to be configured for this. I searched a lot and everywhere it was asked to check /etc/sendmail.cf (I don't have this file in that path.)

And I don't have a folder called host or hosts in /etc folder. What should be my next step? How to make my server send emails?:confused:

Also,
The output of the command:

echo test | mail -v someone@server.com is

mail: illegal option -- v
mail: Usage: [-ehpPqr] [-f file] [-x debuglevel]
or [-tw] [-m message_type] [-T file] [-x debuglevel] persons
or [-x debuglevel]

What does this mean?

Thanks in advance.

the path in solaris should be:

/etc/mail/sendmail.cf

also check if the mailer is online with:

svcs -a | grep -i mail

you are using mail, and not mailx

>>mail: illegal option -- v <<
means that there is no option -v ..

Hi,
It says... svcs: not found. What does this mean?

That's true...:stuck_out_tongue:
btw..what do we understand from this?

to answer both of your posts

you don't need the -v flag, it's for more detailed output of linux mail command, and mailx in solaris

if you want it, use

echo bla | mailx -v emailaddress

>>It says... svcs: not found. What does this mean?<<
that means your shell could not find the svcs command in your path, set in PATH variable :wink:
your solaris is too old for svcs, or it's simply not in your path
check for sendmail in /etc/init.d

/etc/init.d/sendmail start

Hi:),
What should be done next. I could find this /etc/init.d/sendmail start in my server. What should I check and modify so that my server will be able to send mails...