aboutsummaryrefslogtreecommitdiff
path: root/README
blob: da80bc8c73e61dfa8c5d39fd79a885ac254acb00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
mockmta README

* Introduction

This is a simplistic implementation of the SMTP mail transport agent,
designed for testing purposes.  It behaves almost identically to any
real MTA, except that it listens on localhost only and delivers all
messages to the given UNIX mailbox file.

No attempts are made to interpret the data supplied during the STMP
transaction, such as domain names, email addresses, etc, neither is
the material supplied in the DATA command verified to be a valid
email message.  Except for being written to mailbox, these data are
ignored.

The program is derived from the eponymous tool I wrote for the GNU
mailutils testsuite.

* Compilation

The usual sequence applies:

  ./configure
  make
  make install

If you want mockmta to support STARTTLS command, make sure the GnuTLS
library version 3.3.0 or newer is installed on your system and is
reported correctly by pkg-config.

* Usage

Mockmta can work both as an inetd-style process (default) and as a
standalone daemon.

In inetd mode it reads SMTP commands from stdin and issues responses
on stdout.  Logging messages go to stderr.

To run mockmta as a daemon, give it the -d option.  In this mode it
listens on localhost port 25 by default.  The port number can be changed
using the -p command line option.

In daemon mode, logging goes to the syslog facility "mail".

In both modes, logging verbosity can be controlled using the -l (ell)
option.  By default, mockmta outputs error and warning messages, as well
as the status of each SMTP transaction.  This corresponds to the option
"-l info".  To request detailed transcript of each SMTP session, use
"-l debug".  To output only notices and more important messages, use
"-l notice".

Support for STARTTLS command is enabled using the following three
options:

    -c CERT
       Sets the name of certificate file.
       
    -a CA
       Sets the name of certificate authority file.
       
    -k KEY
       Sets the name of certificate key file.

Two informative options are provided: -? prints a short usage summary,
and -v prints the program version and TLS support status.

See documentation for a detailed discussion.

* Documentation

Manual page is included in distribution.  After successful installation,
run "man mockmta" and read the docs.

The online copy of the documentation is available at

  http://man.gnu.org.ua/1/mockmta

* Downloads

Mockmta is available for download from

  https://download.gnu.org.ua/release/mockmta

* Development and bug reports

To track development of mockmta, visit

  https://puszcza.gnu.org.ua/projects/mockmta

Use the bug tracker on that page to report bugs or problems, or mail
them to <gray@gnu.org.ua>

* License

Copyright (C) 2020-2021 Sergey Poznyakoff

Mockmta is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

Mockmta is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.


Local Variables:
mode: outline
paragraph-separate: "[ 	]*$"
version-control: never
End:

Return to:

Send suggestions and report system problems to the System administrator.