Skip to main content

halonadm

Manage Halon (http://halon.se) SP servers easily.

installing

Just use the pip

$ pip install halonadm

configuration

Configuration file can be copied from */site-packages/halonadm/halonadm.conf into ~/.halonadm.conf.

Other paths beeing scanned for are ~/.config/halonadm/halonadm.conf and /etc/halonadm.conf.

usage

Run halonadm –help for usable options and arguments.

qshape

Example 1: qshape - postfix qshape like output - info from queue

$ halonadm qshape

  ,.-~*´¨¯¨`*·~-.¸-(  mailQueue  )-,.-~*´¨¯¨`*·~-.¸
                     T 5 10 20 40 80 160 320 640 1280 1280+
  domain      TOTAL 11 0  0  0  0  0   0   0   0    0    11
  example.com       11 0  0  0  0  0   0   0   0    0    11

Example 2: qshape with sender and verbose - info from history

$ halonadm qshape -msv

  ,.-~*´¨¯¨`*·~-.¸-( mailHistory )-,.-~*´¨¯¨`*·~-.¸
                                                    T 5 10 20 40 80 160 320 640 1280 1280+
  domain                                    TOTAL 328 0  0  0  0  0   0   0  19   25   284
  example.se                                      122 0  0  0  0  0   0   0   0    0   122
   └─johan@example.se (122)

  centerturf.net                                  107 0  0  0  0  0   0   0  12   20    75
   ├─webmail-unittests@centerturf.net (102)
   ├─andreas@centerturf.net (3)
   └─sss@centerturf.net (2)

  simonavikstrom.se                                34 0  0  0  0  0   0   0   0    0    34
   └─simona@simonavikstrom.se (34)

  biona.net                                        28 0  0  0  0  0   0   0   7    5    16
   ├─gno@biona.net (24)
   └─ajb@biona.net (4)

  ponies.re                                        28 0  0  0  0  0   0   0   0    0    28
   └─johan@ponies.re (28)

  <MAILER-DAEMON>                                   6 0  0  0  0  0   0   0   0    0     6
   └─None (6)

  simonvik.se                                       3 0  0  0  0  0   0   0   0    0     3
   └─simon@simonvik.se (3)

mailq

Example 3: mailq - postfix mailq like output

$ halonadm mailq

  msgid                                arrival time      sender/recipient
  1ee87321-3416-11e4-b1af-b8ca3afa9d73 09/04/14 11:30:34 johan@example.se
                                                         sdfwjsv@example.com
                                                          └───error: Hold list

  1db9ef95-3416-11e4-b1af-b8ca3afa9d73 09/04/14 11:30:32 johan@example.se
                                                         sdfwjsv@example.com
                                                          └───error: Hold list

  1d261e9f-3416-11e4-b1af-b8ca3afa9d73 09/04/14 11:30:31 johan@example.se
                                                         sdfwjsv@example.com
                                                          └───error: Hold list

view

Example 4: view - show a message from the queue

$ halonadm view /storage/mail/processed/1e/1ee87321-3416-11e4-b1af-b8ca3afa9d73.eml halonsp1.example.com

  Received: from private.example.com (unknown [10.246.192.112])
          by halonsp1.example.com (Halon Mail Gateway) with ESMTPSA
          for <sdfwjsv@example.com>; Thu, 28 Aug 2014 16:16:28 +0200 (CEST)
  Date: Thu, 28 Aug 2014 14:17:27 +0000
  To: sdfwjsv@example.com
  From: johan@example.se
  Subject: test Thu, 28 Aug 2014 14:17:27 +0000
  X-Mailer: swaks v20100211.0 jetmore.org/john/code/swaks/

  This is a test mailing

Release files for halonadm 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for halonadm 1.0.0
File Size Uploaded
halonadm-1.0.0.tar.gz 13.9 kB Details

Release files / halonadm-1.0.0.tar.gz

Download URL halonadm-1.0.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
94c03a5a66ef1f36a567c7e80ac20c18086581ef871efd81e2856823926f41a0
BLAKE2b-256 checksum
How to use checksums
3bcbe0a4e39c379fdc13a990c468dd985f3a9b48ca1004ba9d79a24a01825498
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page