• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    Stop Exim if a lage number of emails are in the queue


    In this example, Exim4 stops if the queue grows lager then 100

    #!/bin/bash
    TERM=linux
    export TERM
    _limit=100
    clear;
    _queue=”`/usr/sbin/exim -bpc`”
    if [ “$_queue” -ge “$_limit” ]; then
    /etc/init.d/exim4 stop
    fi

    Exit mobile version