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?
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
LEARN ABOUT CENTOS
mailstats
MAILSTATS(8) System Manager's Manual MAILSTATS(8)
NAME
mailstats - display mail statistics
SYNOPSIS
mailstats [-c] [-o] [-p] [-P] [-C cffile] [-f stfile]
DESCRIPTION
The mailstats utility displays the current mail statistics.
First, the time at which statistics started being kept is displayed, in the format specified by ctime(3). Then, the statistics for each
mailer are displayed on a single line, each with the following white space separated fields:
M The mailer number.
msgsfr Number of messages from the mailer.
bytes_from Kbytes from the mailer.
msgsto Number of messages to the mailer.
bytes_to Kbytes to the mailer.
msgsrej Number of messages rejected.
msgsdis Number of messages discarded.
msgsqur Number of messages quarantined.
Mailer The name of the mailer.
After this display, a line totaling the values for all of the mailers is displayed (preceded with a ``T''), separated from the previous
information by a line containing only equals (``='') characters. Another line preceded with a ``C'' lists the number of TCP connections.
The options are as follows:
-C Read the specified file instead of the default sendmail configuration file.
-c Try to use submit.cf instead of the default sendmail configuration file.
-f Read the specified statistics file instead of the statistics file specified in the sendmail configuration file.
-P Output information in program-readable mode without clearing statistics.
-p Output information in program-readable mode and clear statistics.
-o Don't display the name of the mailer in the output.
The mailstats utility exits 0 on success, and >0 if an error occurs.
FILES
/etc/mail/sendmail.cf The default sendmail configuration file.
/var/log/mail/statistics The default sendmail statistics file.
SEE ALSO
mailq(1), sendmail(8)
$Date: 2002/06/27 22:47:29 $ MAILSTATS(8)