Delete email - crons job - Unix

This is a discussion on Delete email - crons job - Unix ; 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 ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Delete email - crons job

  1. 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


  2. Re: Delete email - crons job

    In article <1138464257.574699.274110@g43g2000cwa.googlegroups. com>,
    "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.


    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 ***

  3. Re: Delete email - crons job

    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 ').

    --
    Chris F.A. Johnson, author |
    Shell Scripting Recipes: | My code in this post, if any,
    A Problem-Solution Approach | is released under the
    2005, Apress | GNU General Public Licence

  4. Re: Delete email - crons job

    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.

+ Reply to Thread