|
Home > Archive > Unix administration > January 2006 > Delete email - crons job
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Delete email - crons job
|
|
|
| Hi on my domain, I have a fack email account to catch spam emails. Is
there a way I can run a cons job that will automatically delete all
emails in this account. I don't really know anything about a crons
job.
Thanks in advance
| |
| Barry Margolin 2006-01-29, 9:32 pm |
| In article <1138464257.574699.274110@g43g2000cwa.googlegroups.com>,
"Terry" <thawkins@tcbnetworks.net> wrote:
> Hi on my domain, I have a fack email account to catch spam emails. Is
> there a way I can run a cons job that will automatically delete all
> emails in this account. I don't really know anything about a crons
> job.
Write a script that does what you want. Then add a cron job that runs
the script at the times you want. "man 5 crontab" will show you the
syntax of a crontab entry.
Make sure your script doesn't depend on environment variables set by
your .profile, since this isn't executed automatically by cron.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
| |
| Chris F.A. Johnson 2006-01-29, 9:32 pm |
| On 2006-01-28, Terry wrote:
> Hi on my domain, I have a fack email account to catch spam emails. Is
> there a way I can run a cons job that will automatically delete all
> emails in this account. I don't really know anything about a crons
> job.
First, write a csript that does the deletion.
Second, make a crontab file ('man 5 crontab' for the format).
Third, install the crontab file ('crontab <FILENAME>').
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
| |
| base60 2006-01-29, 9:32 pm |
| Terry wrote:
> Hi on my domain, I have a fack email account to catch spam emails. Is
> there a way I can run a cons job that will automatically delete all
> emails in this account. I don't really know anything about a crons
> job.
Put up a procmail filter and route them to /dev/null
It's pretty easy and documented ad nauseum if you google it.
|
|
|
|
|