04-18-2007
How to block mails sent using rmail
Hi,
I have a bunch of cron jobs which sends e-mails to many set of users. My scripts invoked by cron jobs use "rmail" for this. I have to make a test run of the cron jobs and I don't want the users to get mail during my test run. I cannot got to each script and modify rmail as I have lots of scripts. Is there any way to temporarily block "rmail" from sending mails?
Or is there anyway to block mail being sent out from a particular id?
Please throw some light on this.
TIA
Vijay
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I am trying to setup a client (on separate network) to send mail via our local SMTP server. I do have responce when I do
#telnet mailhost 25
therefore, I can establish connection between the 2.
however, when I try to send out testing mail, the following mail is returned in my... (1 Reply)
Discussion started by: stancwong
1 Replies
2. Shell Programming and Scripting
hi,
can someone tell me how to findout the email server/outgoing SMTP used by rmail or mailx program ? (2 Replies)
Discussion started by: braindrain
2 Replies
3. AIX
Hi,
I am not able to send mails to the recipents.
I am using AIX 5.3 Version and using the below command.
cat test.log|mail -s "TestMail" user1@mail.com
Can you please tell me is there any configurations to be done or is the above command wrong?
Thanks & Regards
Sheshadri (3 Replies)
Discussion started by: arsheshadri
3 Replies
4. Shell Programming and Scripting
Could anyone tell me where the undelivered mails are stored in unix . i m using IBM AIX 3 version.
when i give command mail.it shows me all the mail .but where exactly the mails are stored esp undelivered ones (1 Reply)
Discussion started by: ali560045
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
how to put some receipients for mail in bcc and some receipients in to. (2 Replies)
Discussion started by: prasee
2 Replies
6. UNIX for Advanced & Expert Users
HI All,
I have a small question/clarification/doubt . Does anyone know how to provide alias in the mails that come from Unix servers.
Like i have a Unix server that generates status mails every hour for a scheduled job , it sends me mails with status with the ID in from field as... (3 Replies)
Discussion started by: bsandeep_80
3 Replies
7. Linux
Ok, i am using backupPC for backup machines, backuppc can send mail to one person, while i cannot get how to configure many users which seems kind of headache, i want to set a group with a mail so when i send to it it sends to all group members, can i do that using sendmail? again i want a group... (0 Replies)
Discussion started by: XP_2600
0 Replies
8. SuSE
Guys
I have not much idea on suse or any other linux flavour.
This is what i have:
cat /etc/issue
Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel \r (\l).
ps -ef |grep postfix |grep -v grep
root 18620 1 0 Mar17 ? 00:00:00 /usr/lib/postfix/master
postfix ... (0 Replies)
Discussion started by: ak835
0 Replies
9. UNIX for Advanced & Expert Users
Hi,
on AIX 6.1, I want to verify my night batch then I issued mail and :
> mail
/tmp: No space left on device
What does it mean ? How can I see my mails ?
What shoud I do ?
Also :
df -k
/dev/hd3 131072 125676 5% 46 1% /tmp
Thank you. (5 Replies)
Discussion started by: big123456
5 Replies
10. AIX
dear all please can any one help me how to configure the rmail in my system
theres is a mail server between the source server and the destination PC
i want to let the AIX send an email to the receiver email address (1 Reply)
Discussion started by: thecobra151
1 Replies
LEARN ABOUT CENTOS
crontabs
CRONTABS(4) Crontabs users' Manual CRONTABS(4)
NAME
crontabs - configuration and scripts for running periodical jobs
SYNOPSIS
run-parts [--list|--test]<directory>
DESCRIPTION
Crontabs is a historical name for the run-parts script and the system crontab. The run-parts script runs all executables in the specified
directory. Run-parts runs all executables in the specified directory. The execution of files can be allowed or denied by creating file
jobs.allow or jobs.deny which worked similar as other allow/deny config files. The file must be created in the specified directory.
--list print names of all files (not limited to executables), but don't run them. This option can't be used with test option.
--test print names of files, which would be run.
Randomization of jobs can be configured in the /etc/sysconfig/run-parts file. To enable randomization of jobs, set the RANDOMIZE
parameter to 1 and set the RANDOM parameter to an integer which determines a random seed. Additionally, you may configure the RAN-
DOMTIME parameter (again, by specifying an integer) to provide an additional level of randomization. Jobs are not randomized when
the RANDOM and RANDOMTIME parameters are set to 0. Values in these two parameters must be set to 1 or larger to provide a good
enough randomization.
Randomization of cron jobs can be useful for shared networks, where multiple cron jobs executed at once can cause spikes in traffic,
especially during daily jobs. With randomized jobs, the workload is evenly distributed throughout the day.
EXAMPLE OF CONFIGURATION FILE
RANDOMIZE=1
RANDOM=4
RANDOMTIME=8
Historically the crontab file contained configuration which called run-parts on files in cron.{daily,weekly,monthly} directories. These
jobs are now run indirectly through anacron to prevent conflicts between cron and anacron. That means the anacron package has to be
installed if the jobs in these directories should be running. Refer to the anacron(8) how to limit the time of day of the job execution.
EXAMPLE
/etc/cron.daily/jobs.deny could contain for example 0logwatch which forbid execution of this script.
SEE ALSO
anacron(8), crontab(5)
Marcela Malaova 2012-08-29 CRONTABS(4)