Portal:Cloud VPS/Admin/Exim

From Wikitech
Jump to: navigation, search

A few pointers:

Total count for queue

$ sudo -i exim -bpc
286

Count for the queue per user

$ sudo -i exim -bp | grep '<' | awk '{print $4}' | sort | uniq -c |sort -n
      1 <someuser@some.tld>
    285 <>

Stats

$ sudo -i exim -bp | exiqsumm

Count  Volume  Oldest  Newest  Domain
-----  ------  ------  ------  ------

    1   106KB     28h     28h  A.tld
    1    4198      2h      2h  B.tld
    1   106KB      7h      7h  C.tld
    1   106KB     30h     30h  D.tld
    1   106KB     27h     27h  E.tld
    1   106KB     29h     29h  F.tld
    1   106KB     25h     25h  G.tld
    1   106KB     26h     26h  H.tld
    1   106KB     31h     31h  I.tld
    1   106KB      4h      4h  J.tld
    2    4300     31h     13h  K.tld
  271   629KB     22h      8h  tools.wmflabs.org
    1    87KB      5h      5h  L.tld
    1    57KB     12h     12h  M.tld
    1   106KB     46m     46m  N.tld
---------------------------------------------------------------
  286  1842KB     31h     46m  TOTAL

Blackhole an in-bound address

in /etc/aliases add a new line: <address>: :blackhole:

If this was for Tools exim to blacklist the user 'wiktcapt' we could do:

wiktcapt: :blackhole: