The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

step by step to clean up mail queue

Discussion in 'E-mail Discussions' started by salvatore333, Jul 14, 2005.

  1. salvatore333

    salvatore333 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    I was wondering if we could configure a step by step guide to eliminate unwanted emails from building up in the email queue. I am always having to delete about 1000 emails every 6 hours. I admit I have no clue where to start to help this problem.

    In tweak settings I have it set to default catchall to : fail
    Number of minutes between mail server queue runs: 60
    The maximum each domain can send out per hour: 500
    The number of times users are allowed to check their mail using pop3: 0

    I have these checked off in the exim advanced config:
    Verify the existance of email senders
    Discard emails for users who have exceeded their quota

    I have this in the first open box of the advanced exim config:
    timeout_frozen_after = 7d
    ignore_bounce_errors_after = 12h
    auto_thaw = 12h
    av_scanner = clamd:/var/run/clamav/clamd

    Other than that I do not know what the hell I'm doing sorry to say. Should I check the mail statistics for something? Should I tail an email log file?

    Please help and go easy on me, Thanks
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
  3. salvatore333

    salvatore333 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the advice but I already checked all the threads and wanted answers to my specific questions. I'll wait for somebody else to respond.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You're probably looking at this from the wrong end ;) You need to look at the actual email in the queue and find out why it is queuing as you should never really have more than a couple of hundred emails in a queue on a normally loaded server (broad statement). Most commonly, the problem is people using :blackhole: instead of :fail: for catchall and other aliases - make sure that you change those. Other issues can be down to local DNS resolution, or, as you've mentioned, sites over quota. Worst case, is if you have a spammer on the server.
     
  5. salvatore333

    salvatore333 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Thank you for your reply. There is no spammer or else I would know about it by now. It's an old server which I do not put customers on anymore, so it's steady good customers on this one.

    Is there an easy way to switch ALL default email addresses to "fail" without going into each account's cpanel and doing it?

    When I go to "account functions, quota modification" in whm I have no customers over quota.

    Dont understand the local DNS response you mentioned but a reverse DNS is setup on this server for the two nameservers if that's what you mean.

    Thanks again.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    To replace users that have :blackhole: to :fail: you can use:

    replace :blackhole: :fail: -- /etc/valiases/*

    Regarding DNS. If you run named on your server, check that it is working from shell using:

    rndc status

    If that comes back OK, makse sure that your servers main ip appears in /etc/resolv.conf at the top:

    nameserver 11.22.33.44

    This means that you'll get quick DNS resolution which can be helpful for exim when processing email - slow lookups can cause email to be queued.
     
  7. salvatore333

    salvatore333 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Thank you very much for the response again.

    How can I change all default emails to "fail" even if the default is their username and not blackhole?


    root@ns1 [~]# rndc status
    number of zones: 334
    debug level: 0
    xfers running: 0
    xfers deferred: 0
    soa queries in progress: 0
    query logging is OFF
    server is up and running


    My two nameservers are already at the top of pico /etc/resolv.conf

    nameserver xx.xx.xxx.x1
    nameserver xx.xx.xxx.x2


    Thanks again.
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess

Share This Page