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.

How to check culprit user(s) in huge exim mail queue

Discussion in 'E-mail Discussions' started by Bashed, Apr 11, 2014.

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    78
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Anyone know how to check what user(s) are taking up the 700k+ (yes, 700,000+) emails in the exim queue? Either a command via ssh or using ConfigServer Mail Queues plugin?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you tried viewing a few of the messages to see the message contents and message headers?

    Code:
    exim -Mvb messageID
    exim -Mvh messageID
    Thank you.
     
  3. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    78
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    There's over 700,000 in the queue. I wiped the out last week, happened again today. I need to trace which user these mass emails are coming from. I want to know how to pull a stat/count of top user incoming/outgoing specifically in the queue but not sure how.
     
  4. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The first step as cPanelMichael has explained is to view the headers and body of a particular message ID. That will help in determining if you're dealing with a compromised account or not. Likewise you can also grep for the messageID in the /var/log/exim_mainlog file to determine how/where it originated and why it's getting stuck in the queue.

    Start there and it should lead you to a solution.
     
  5. acenetgeorge

    acenetgeorge Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2008
    Messages:
    64
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Southfield, MI
    cPanel Access Level:
    DataCenter Provider
    Check the /var/log/exim_maillog, and see if you see any patterns. Maybe grep the outlook for "<=" (the sending address) or look for "courier_login" or "dovecot_login" to see if maybe you have a compromised email account password. You could also look for "exceeded" or "failed" or "quota".

    If you do not have any mail send limits, you may want to limit the hourly rate. We use 600, so we do something like this to look for accounts sending out a lot of spam:

    Code:
    exigrep exceeded /var/log/exim_mainlog | grep 600
    
    There are all sorts of things you can search for in the mail logs to help track this down. Pattern recognition comes in VERY handy when digging through large logs.
     
Loading...

Share This Page