I had the same problem. Now after some reconfig I re-wrote an excisting script. This is what I re-use for each program that needs to mail something.
Hope you understand it a little, it's a cool one.
Regs David added code tags for readability --oombera
Hi All,
I am new to unix. I have created a cron job, that sends mail using sendmail utility. Am facing a unique problem while making a cron job for this script.
In the script I append a file to my mail using 'cat' command.
cat $report >> $mailMsg
& this $mailMsg is used as mail... (7 Replies)
Hi,
I am new to shell scripting and thus any help will be highly appreciated. I need to write a K shell script where in the email sending feature should be handled by sendmail utility and I have come up with the following :
#!/usr/bin/ksh
echo "This is a test mailest mail" | /usr/lib/sendmail... (4 Replies)
hi all,
i'm trying to use sendmail to send a message in html format with attachments but having some issues with the attachments. below is my code.
ATTACH1="/export/home/adshocker/attach.prog"
ATTACH_NAME1=${ATTACH1##*/}
echo "ATTACH_NAME1=$ATTACH_NAME1"... (2 Replies)
Hi,
I am building a web interface to run a series of shell scripts that reside on the web server. The bash script are written such that they can be used independently for the task they are meant for, or the same scripts can be run from this web UI. The scripts are mostly for doing software... (1 Reply)
Hi,
i've got a problem with a sendmail script, which sends HTML mails. Some mail will rejected by the mail server, because the fqdn doesn't exist.
Where can i set the sender-domainname by sendmail?
My mail server say: "Sender address rejected: Domain not found;", which is correct... (3 Replies)
Hi friends,
I want to converting a task ,of making few words in my task mail bold and underlined sometimes, automated through sendmail.
I have never used sendmail/mailx before.
What i want is my ouput which looks like below:
+++++++++++++++
DETAILS: sqlid:6mbiosdfsdff parsing_schema_name:... (1 Reply)
I am facing a peculiar problem in AIX 6.1
I can execute sendmail command using the following script
sendmail -f sender -v recepient
Body of email
^dThe command executes successfully and mail is sent to the intended recepient
but when I try to use the attached script, the mail is not sent... (3 Replies)
Hi all,
I have read about sendmail running as 2 separate process.
1 as a MSP, and the other as the real daemon or MTA.
In my current configuration,
the sendmail-client is disabled.
Both submit.cf and sendmail.cf are left as default untouch
I do not specified any mailhost... (3 Replies)
Hello,
I have a web server (apache, php-fpm) with several vhosts sending mail through php. In order to avoid IP blacklisting when spam is sent by a domain i'm looking for a way to setup a rate limit for outgoing mail and when this limit is reached I want to receive an email warning me that a... (1 Reply)
Hello,
Kindly guide.
SendMail function on my script is not working, but it works manually.
Any better way to handle the script is appreciable.
#!/bin/sh
GetHostConnection()
{
truncate --size 0 /home/web/for_mail.out
while read -r lines ;
do
ip=`echo $lines | awk '{print... (9 Replies)
Discussion started by: sadique.manzar
9 Replies
LEARN ABOUT SUSE
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/lib/sendmail/statistics
The default sendmail statistics file.
/etc/mail/statistics The symbolic link to the statistics file.
SEE ALSO mailq(1), sendmail(8)
$Date: 2002/06/27 22:47:29 $ MAILSTATS(8)