Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Few Exim Commands

Discussion in 'E-mail Discussion' started by Silvia, Sep 8, 2007.

  1. Silvia

    Silvia Member

    Joined:
    Nov 25, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Exim commands for Mail issue
    =====================



    /usr/sbin/exim -v -Mrm (MAIL ID HERE) ==> REMOVE MAILS BY ID

    /usr/sbin/exim -bp ==> LIST QUEUED MAILS

    /usr/sbin/exim -bpc ==> OUTPUT NUMBER OF QUEUED MAILS

    /usr/sbin/exim -bpr | grep ‘*** frozen ***’ | awk ‘{print $3}’ | xargs exim -Mrm ==> DELETE FROZEN MAILS

    /usr/sbin/exim -qff -v -C /etc/exim.conf & ==> DELIVER FORCEFULLY EMAILS

    /usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf ==> FREEZE MAILS FROM SENDER

    /usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm ==> REMOVE MAILS FROM SENDER

    exim -M email-id ==> Force delivery of one message.

    exim -qf ==> Force another queue run.

    exim -qff ==> Force another queue run and attempt to flush the frozen message.

    exim -Mvl messageID ==> View the log for the message.

    exim -Mvb messageID ==> View the body of the message.

    exim -Mvh messageID ==> View the header of the message

    exim -Mrm messageID ==> Remove message without sending any error message

    exim -Mg messageID ==> Giveup and fail message to bounce the message to the Sender

    exim -bpr | grep "<" | wc -l ==> How many mails on the Queue?

    exim -bpr | grep frozen | wc -l ==> How many Frozen mails on the queue




    Workout ;)

    By Silvia:cool:
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,341
    Likes Received:
    57
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tukaramg

    tukaramg Member

    Joined:
    Sep 22, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    few more exim commands

    Print what Exim is doing right now

    Code:
    root@server# ] exiwhat
    How to Freeze a message

    root@server# ] exim -Mf <message-id> [ <message-id> ... ]


    Remove 7 days old emails

    Code:
    root@server# ] exim -bpr | grep 7d | awk {'print $3'} | xargs exim -Mrm;

    Forcefully deliver one email from email queue:


    Code:
    root@Server [~]#exim -M message-id
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice