1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Delete All Mails Automatically Cpanel

Discussion in 'Site & Server Administration' started by raeyo, Feb 17, 2013.

  1. #1
    Hi there,

    A client has a company and has about 200 domainnames registered to link to their site through a landingspage that is on a different domainname. Now that domainname with about 200 parked domainnames gets massive amount of mails daily so client wants to delete them all.

    What is the best way to do this?

    I can place a command for all those domainnames seperatly to place all mails sent to www watheverdomain dot com in trash.. but problem is that client sometimes deletes and adds domainnames. So want to do it more efficiently

    Thnx in advance

    Raey
     
    raeyo, Feb 17, 2013 IP
  2. pavv

    pavv Well-Known Member

    Messages:
    275
    Likes Received:
    8
    Best Answers:
    3
    Trophy Points:
    120
    #2
    Why you don't delete the email accounts ?
     
    pavv, Feb 18, 2013 IP
  3. raeyo

    raeyo Active Member

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    That's just the thing... all spammails sent to all parked domainnames are comming in that account. I raised the spam assasin filter but still every day have to remove those junk (100MB daily)
     
    raeyo, Feb 18, 2013 IP
  4. eldiablo

    eldiablo Active Member

    Messages:
    200
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    80
    #4
    You should setup a cron job to clean your emails on given basis... Daily? Monthly? Weekly? Hourly...

    I'm trying to find command that I'm using but you should be able to google it out fairly easy... I will edit post as soon as I find it...
     
    eldiablo, Feb 18, 2013 IP
  5. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #5
    You need to set the cron for that as that is the only way this can be done.
     
    hostechsupport, Feb 20, 2013 IP
  6. greatseeder

    greatseeder Greenhorn

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    This will remove mails older than 5 mins (300 seconds). adjust your time accordingly.
    exiqgrep -o 300 -i | xargs exim -Mrm
     
    greatseeder, Feb 23, 2013 IP
  7. GORF

    GORF Well-Known Member

    Messages:
    224
    Likes Received:
    21
    Best Answers:
    3
    Trophy Points:
    165
    #7
    In cPanel, you use Account or User Level Filtering for that. Create a rule to delete the unwanted email. It will work automatically as email is received.
     
    GORF, Feb 23, 2013 IP