08-06-2003
Please post the command string you are using. You can check /var/adm/messages to see what is being sent out.
If you are using only one receipent, then it's being sent locally which is why you pick it up on the system. You would need to look at .forward files or better yet, an alias.
Your /var/adm/messages file should have something like the following showing what message was sent and to where (if your /etc/syslog.conf was set up to log it):
Aug 3 03:20:19 abns1 sendmail[20839]: DAA20839: from=root, size=291, class=
0, pri=30291, nrcpts=1, msgid=<200308030720.DAA20839@abns1.prv.mycom.co
m>, relay=root@localhost
Aug 3 03:20:21 abns1 sendmail[20850]: DAA20839: to=upsops@mycom.com,
ctladdr=root (0/1), delay=00:00:02, xdelay=00:00:01, mailer=relay, relay=mailhos
t.mycom.com. [12.7.4.2], stat=Sent (2.0.0 h737KKQO016070 Message a
ccepted for delivery)
Last edited by RTM; 08-06-2003 at 05:49 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI
i wrote schell script to send e-mail automatically.
it works only e-mail for our company.say for example,
company name is : abc,
example: joe@abc.com
every body is receiving with xxx@abc.com (abc.com)
if any body from outside of our company like
joe@xyz.com.(xyz.com) are not... (3 Replies)
Discussion started by: raosurya
3 Replies
2. Solaris
Hi All,
I am working with solaris 5.9 servers.After some patch installation my mailx is not working in the server.I am using IBM Lotus Notes.
Please help me to solve this issue (4 Replies)
Discussion started by: Renjesh
4 Replies
3. UNIX for Dummies Questions & Answers
HI,
I am sending a html attachment with the help of mailx and uuencode command ..but it is not working properly.. :confused:
Following are the commands i tried out.
parmdir=/opt/dwqa1/TEST/status_test
uuencode $parmdir/some.html $parmdir/some.html | mailx -s TEST ajoshi@yahoo.com
But in... (5 Replies)
Discussion started by: Amey Joshi
5 Replies
4. Shell Programming and Scripting
Hi All,
I am strugging with mailx.
I have a shell script which triggers mail when executed.
I have mailx utility installed in system under /usr/bin/mailx but still when that script executes i am not getting mails..any idea why strange behaviour..?
Tha:(nks in advance
Usha (2 Replies)
Discussion started by: usha rao
2 Replies
5. Solaris
i am supporting a server running Solaris 5.6.I don't know if the mail is configured on this server.
i ran the following commands and got the corresponding output.
#which mailx
/usr/bin/mailx
#ps -ef | grep sendmail
root 601 1 0 Jan 10 ? 0:01 /usr/lib/sendmail... (1 Reply)
Discussion started by: asalman.qazi
1 Replies
6. Shell Programming and Scripting
Hello,
I have two unix boxes..
One of the unix box version is
Linux iduxlys 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
I have shell script which has the below script.
cat xyz.log|mailx -s "export is Successful" \ xyz.xyz@xyz
The above... (3 Replies)
Discussion started by: govindts
3 Replies
7. Shell Programming and Scripting
i have a file.i want to get that file to my mail.mail services are running.but still i didn't receive the mail.
i have used this command.
mailx -s file1 muraliinfy04@gmail.com < file2.txt.can anybody help me.it's urgent.I am new to unix.
actually file1 i have directed to a file2.txt (8 Replies)
Discussion started by: muraliinfy04
8 Replies
8. Shell Programming and Scripting
I am using mailx command in my script to attach a file and send an email. I need to attach a csv file and send email to a mail id -
I am using
uuencode output.csv output.csv | mailx -s "test mail" xyz@abc.com
This will send a mail with scrambled text in body.
am i missing something ?... (4 Replies)
Discussion started by: Sriranga
4 Replies
9. Shell Programming and Scripting
I m trying to send o/p of one file using mailx command but is not working
PFB command :
cat healthchecklog | mailx -s "HEALTH CHECKS" abc@jkl.com
also I have checked the ps -ef for mailx which is giveing below o/p
ps -ef | grep mail
root 364 1 0 Jun 08 ? ... (11 Replies)
Discussion started by: Jcpratap
11 Replies
10. Solaris
after a new patch set on the 14th. I noticed that mailx stopped working, as far a I can tell that is the only thing that changed.
solaris 10 OS
it seems everything is the same, sendmail seems to be running
root@server # ps -ef | grep -i sendmail
smmsp 687 1 0 10:42:25 ? ... (0 Replies)
Discussion started by: goya
0 Replies
LEARN ABOUT SUNOS
mailstats
mailstats(1) User Commands mailstats(1)
NAME
mailstats - print statistics collected by sendmail
SYNOPSIS
mailstats [-o] [-c ] [-C configfile] [-f statisticsfile] [-p] [-P]
DESCRIPTION
The mailstats utility prints out the statistics collected by the sendmail(1M) program on mailer usage. These statistics are collected if
the file indicated by the StatusFile configuration option of sendmail (defined in /etc/mail/sendmail.cf) exists. The default statistics
file is /etc/mail/statistics.
To enable mailstats, you must, as root, touch /etc/mail/statistics. See the StatusFile processing option in sendmail(1M).
mailstats first prints the time that the statistics file was created and the last time it was modified. Then, the statistics for each
mailer are displayed on a single line, each with the following whitespace-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 by the mailer.
msgsdis Number of messages discarded by the mailer.
msgsqur Number of messages quarantined by the mailer.
Mailer The name of the mailer.
The display of statistics described above is followed by a separation line containing only equal sign (=) characters. After the separation
line, a line preceded with a "T" and totaling the values for all of the mailers is displayed. This is followed by another line preceded
with a "C" that lists the number of TCP connections.
To reinitialize the statistics file once a night, add an entry to root's crontab(1):
mailstats -p > /dev/null
OPTIONS
The following options are supported:
-c Try to use submit.cf instead of the default sendmail configuration file.
-C configfile Specify a sendmail configuration file.
-f statisticsfile Specify a sendmail statistics file.
-o Do not display the name of the mailer in the output.
-p Output information in program-readable mode and clear statistics.
-P Output information in program-readable mode without clearing statistics.
USAGE
See largefile(5) for the description of the behavior of mailstats when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
FILES
/dev/null Zero-lined file
/etc/mail/statistics Default sendmail statistics file
/etc/mail/sendmail.cf Default sendmail configuration file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsndmu |
+-----------------------------+-----------------------------+
|Output Stability |Unstable |
+-----------------------------+-----------------------------+
SEE ALSO
crontab(1), cron(1M), sendmail(1M), attributes(5), largefile(5)
SunOS 5.10 24 Jun 2004 mailstats(1)