1bhm(8)                              Postal                              bhm(8)
2
3
4

NAME

6       bhm - program to send SMTP mail to /dev/null
7
8

SYNOPSIS

10       bhm [-m maximum-message-size] [-t threads] [-p listen-port] [ -s ] [-a]
11       [-[z|Z] debug-file] [-r reverse-dns] user-list-filename
12
13

DESCRIPTION

15       This manual page documents briefly the bhm, program.
16
17       It is designed to test the performance of SMTP relay servers by receiv‐
18       ing mail to /dev/null at random speeds.
19
20       The  user-list-filename  is the name of a file which contains a list of
21       valid user's email addresses.  The file may have three fields separated
22       by  spaces,  the  email  address,  the password (used for rabid) and an
23       optional third field to specify what is to be done with  the  mail.   A
24       'd'  character  means that it is to be deferred (SMTP 45x), a 'r' means
25       that it is to be rejected (SMTP 55x), a 'b' means  that  it  is  to  be
26       accepted and bounced, and a 'g' means that it is to be grey-listed.
27
28       The  reverse-dns file is in the same format as /etc/hosts and gives the
29       value that will be used in the 220 message.  Otherwise it will be bhm
30
31       The maximum-message-size indicates the size in Kilobytes that  will  be
32       the  maximum  size  of a message that will be accepted.  The default is
33       10240k.
34
35       The -s parameter enables SSL.
36
37       The listen-port parameter specifies the TCP port to listen on  (default
38       25).
39
40       The  threads  parameter is the number of threads that may be created to
41       receive mail.  Note that your BHM machine may have hardware and OS lim‐
42       its that determine how many connections it may receive.
43
44       The -a command turns on all logging.  All message data received will be
45       logged.  This will make it slow and it may not be able  to  saturate  a
46       fast Ethernet link...
47
48       The  -z  switch allows you to specify a debugging file base.  From this
49       base one file is created for each thread (with a  ':'  and  the  thread
50       number  appended),  each  file  is used to log all IO performed by that
51       thread for debugging purposes.
52
53       The -Z switch is the same but creates a separate file for each  connec‐
54       tion as well with an attitional ':' appended followed by the connection
55       number.
56
57

RETURN CODES

59       0      No Error
60
61       1      Bad Parameters
62
63       2      System Error, lack of memory or some other resource
64
65

AUTHOR

67       This program, it's manual page, and the Debian package were written  by
68       Russell Coker <russell@coker.com.au>.
69
70

AVAILABILITY

72       The source is available from http://doc.coker.com.au/projects/postal/ .
73
74       See  http://etbe.coker.com.au/category/benchmark  for  further informa‐
75       tion.
76
77

SEE ALSO

79       postal(8),postal-list(8),rabid(8)
80
81
82
83russell@coker.com.au                 0.70                               bhm(8)
Impressum