Results 1 to 5 of 5

Thread: Useful exim commands

  1. #1

    Thumbs up Useful exim commands

    Check mail logs :

    root@server# ] tail -f /var/log/exim_maillog

    Print a count of the messages in the queue

    root@server# ] exim -bpc;


    Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient)

    root@server# ] exim -bp

    Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals)

    root@server# ] exim -bp | exiqsumm

    Print what Exim is doing right now


    root@server# ] exiwhat

    start a queue run

    root@server# ] exim -q -v

    Remove a message from the queue

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

    View a message's headers:

    root@server# exim -Mvh <message-id>


    View a message's body:

    root@server# exim -Mvb <message-id>


    View a message's logs:

    root@server# exim -Mvl <message-id>

    How to Freeze a message

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

    Remove 7 days old emails

    root@server# ] exim -bpr | grep 7d | awk {'print $3'} | xargs exim -Mrm;
    Regards,
    Tukaram
    System Admin
    Host.co.in

  2. #2
    Join Date
    Apr 2010
    Posts
    23

    Thumbs up

    Following are few more important exim commands to manage exim email queue

    List frozen email:
    root@Server [~]#exim -bp | grep frozen

    Count number of frozen email in email queue:
    root@Server [~]#exim -bp | grep frozen | wc -l

    Removing all frozen messages:
    root@Server [~]#exiqgrep -z -i | xargs exim -Mrm
    OR
    root@Server [~]#exim -bp | grep frozen | awk '{print$3}' | xargs exim -Mrm

    Forcefully deliver one email from email queue:
    root@Server [~]#exim -M message-id
    Regards,
    Kuldeep N.

  3. #3

    Thumbs up

    Force another queue run.

    root@Server [~]# exim -qf

    Force another queue run and attempt to flush the frozen message.

    root@Server [~]# exim -qff


    How many Frozen mails on the queue

    root@Server [~]# exim -bpr | grep frozen | wc -l
    Regards,
    Tukaram
    System Admin
    Host.co.in

  4. #4

    Default exim command

    Here is the command to see the exim configuration parameteres

    exim -bP
    Note that the 'P' is capital in this case.

    Example

    exim -bP | grep qualify_domain

    exim -bP +local_domains
    Last edited by kaustubh_s; 03-06-2011 at 03:58 PM.

  5. #5

    Default Exim Log line Flags

    Very important information must be known while examining the exim logs


    <= message arrival
    => normal message delivery
    -> additional address in same delivery
    *> delivery suppressed by -N
    ** delivery failed; address bounced
    == delivery deferred; temporary problem
    Read more about exim logs at


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •