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.

Few Exim Commands

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

  1. Silvia

    Silvia Member

    Joined:
    Nov 25, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
  3. tukaramg

    tukaramg Member

    Joined:
    Sep 22, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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
     
Loading...

Share This Page