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?
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 ..
10 More Discussions You Might Find Interesting
1. AIX
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
2. Solaris
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
3. AIX
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
4. Shell Programming and Scripting
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
5. Solaris
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
6. HP-UX
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
7. UNIX for Advanced & Expert Users
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
8. Red Hat
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
9. UNIX for Dummies Questions & Answers
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
10. UNIX for Advanced & Expert Users
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
System Administration Commands etrn(8)
NAME
etrn - start mail queue run
SYNOPSIS
etrn [-v] server-host [client-hosts]
DESCRIPTION
SMTP's ETRN command allows an SMTP client and server to
interact, giving the server an opportunity to start the pro
cessing of its queues for messages to go to a given host.
This is meant to be used in start-up conditions, as well as
for mail nodes that have transient connections to their ser
vice providers.
The etrn utility initiates an SMTP session with the host
server-host and sends one or more ETRN commands as follows:
If no client-hosts are specified, etrn looks up every host
name for which sendmail(1M) accepts email and, for each
name, sends an ETRN command with that name as the argument.
If any client-hosts are specified, etrn uses each of these
as arguments for successive ETRN commands.
OPTIONS
The following option is supported:
-v The normal mode of operation for etrn is to do all of
its work silently. The -v option makes it verbose,
which causes etrn to display its conversations with
the remote SMTP server.
ENVIRONMENT
No environment variables are used.
FILES
/etc/mail/sendmail.cf sendmail configuration file
SEE ALSO
sendmail(1M), RFC 1985.
CAVEATS
Not all SMTP servers support ETRN.
CREDITS
Leveraged from David Muir Sharnoff's expn.pl script. Chris
tian von Roques added support for args and fixed a couple of
bugs.
AVAILABILITY
The latest version of etrn is available in the contrib
directory of the sendmail distribution through anonymous ftp
at ftp://ftp.sendmail.org/ucb/src/sendmail/.
AUTHOR
John T. Beck <john@beck.org>