Server unable to send mail-how to configure


 
Thread Tools Search this Thread
Operating Systems Solaris Server unable to send mail-how to configure
# 1  
Old 02-05-2009
Error 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?Smilie

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.

Last edited by Qwerty123; 02-05-2009 at 08:46 AM.. Reason: Additional Info
# 2  
Old 02-05-2009
the path in solaris should be:

/etc/mail/sendmail.cf

also check if the mailer is online with:

svcs -a | grep -i mail
# 3  
Old 02-05-2009
Quote:
Originally Posted by Qwerty123
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?Smilie

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.
you are using mail, and not mailx

>>mail: illegal option -- v <<
means that there is no option -v ..
# 4  
Old 02-05-2009
Quote:
Originally Posted by DukeNuke2
the path in solaris should be:

/etc/mail/sendmail.cf

also check if the mailer is online with:

svcs -a | grep -i mail

Hi,
It says... svcs: not found. What does this mean?
# 5  
Old 02-05-2009
Quote:
Originally Posted by funksen
you are using mail, and not mailx

>>mail: illegal option -- v <<
means that there is no option -v ..
That's true...Smilie
btw..what do we understand from this?
# 6  
Old 02-06-2009
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 Smilie
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
# 7  
Old 02-08-2009
Quote:
Originally Posted by funksen
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 Smilie
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

HiSmilie,
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...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to send mail with 'mail' command

I am unable to cause the 'mail' command to send mail from my linux ubuntu 15.10 computer. File 'mail.log' typically reports Connection timed out. I issue the command: mail -s "my subject" recipient@domain.com < filenamewhere filename is a file containing my message. Specifically, the... (3 Replies)
Discussion started by: tcnm
3 Replies

2. UNIX for Dummies Questions & Answers

Configure sendmail to Only send mail to one domain

On both Solaris 10 and RHEL, we would like to configure sendmail in such a way that the email sent from the server should only go to a particular domain. For eg. We want our server to ONLY send the mail to <user_name>@abc.com. All other domains should be blocked/restricted. The server should not... (0 Replies)
Discussion started by: sk2code
0 Replies

3. Red Hat

unable to send mail from redhat linux server

While sending mail from linux server we observed below logs, stat=Deferred: Name server: xxxxxxxxxx.: host name lookup failure Kindly suggest what we need to change? Thanks in Advance (2 Replies)
Discussion started by: hydoss1
2 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

6. Solaris

Unable to send mail

hi all i got two server, mercury and procyon mercury can send email but procyon cannot below is their syslog mercury: Jul 6 13:17:17 mercury sendmail: n665HGXg006886: to =<leecw@domain.com>, ctladdr=<ora10g@mercury.domain.com> (4001/101), d elay=00:00:01, xdelay=00:00:01,... (7 Replies)
Discussion started by: SmartAntz
7 Replies

7. Shell Programming and Scripting

Unable to send a mail

Hi, I have been trying to send a mail from a remote site using this script To send the mail: #!/bin/ksh MAILTO="abc@xyz.com" BACKUPDIR="/wls_domains/wli81_1/RHTEAM/OUTPUTBACKUP/" #BACKUPDIR="../OUTPUTBACKUP/" while ; do print $1 uuencode $1 $1 | mail $MAILTO ... (3 Replies)
Discussion started by: monicaminj2000
3 Replies

8. AIX

unable to send mail

hi, I have tried this code to send mail.Its not giving me error but I am not receiving mail also. #!/bin/ksh echo "The first mail" >msg cnt=`cat /dir1/msg | wc -l` if then mail -s "Hello" abc.xyz@domain.com < msg fi I have also tried with the command mailx -s "hello"... (0 Replies)
Discussion started by: monika
0 Replies

9. Solaris

unable to send mail?

i am trying to execute the below script for sending mails from unix MAIL1="xyz@yahoo.com" mailx -s "hi" $MAIL1<message.txt if then echo "failure" else echo "success" fi but iam unable to send this eventhough iam getting success in the output if i logout and login i have a "you... (1 Reply)
Discussion started by: shahnazurs
1 Replies

10. AIX

Configure AIX v5.1 for send mail

Hi, I wish to send a mail via ksh using this command: cat mailfile | mail -s "My Project." gio123bg@hel.com Is it necessary to configure some file? If yes, in which way? May you explain me all steps necessary to implement the above command? Many thanks in advance for your kind... (0 Replies)
Discussion started by: gio123bg
0 Replies
Login or Register to Ask a Question