MOCKMTA
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXIT CODES
BUGS
AUTHOR
LICENSE
NAME
mockmta - mock MTA server for experimental purposes
SYNOPSIS
mockmta [-dv?] [-c CERT] [-a CA] [-k KEY] [-l LEVEL] [-P FILE] [-p PORT] [-t SEC] MAILBOX
DESCRIPTION
Starts a mock MTA, which behaves almost identically to the real one, except that it listens on localhost only and delivers all messages, no matter their actual recipients, to the given 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 as being written to MAILBOX, these data are ignored.
Mockmta can work both as an inetd-style process and as a standalone daemon. The inetd mode can be used with GNU pies as follows:
component sm {
mode inetd;
socket inet://0.0.0.0:25;
command "/usr/bin/mockmta
/var/spool/mail/dropmail";
}
When run as a daemon, mockmta starts listening on localhost port PORT (default 25).
To support TLS, the program must be compiled with the GnuTLS library.
To enable the STARTTLS ESMTP command, supply the names of the certificate (-c CERT) and certificate key (-k KEY) files.
OPTIONS
-a CA |
Name of certificate authority file. |
-c CERT
Name of the certificate file.
-d |
Daemon mode. |
|||
-f |
Remain in foreground (implies -d). |
|||
-k KEY |
Name of the certificate key file. |
-l PRIO
Log messages of priority PRIO and lower. Valid priorities (ordered by their numeric value) are: emerg, alert, crit, err, warning, notice, info, debug.
Default is info.
-P FILE
Write PID of the daemon process to FILE (with -d or -f).
-p PORT
Listen on this port.
-t SEC |
Set SMTP timeout. |
|||
-v |
Print program version and exit. |
|||
-? |
Print short usage summary and exit. |
EXIT CODES
0 |
Success. |
|||
1 |
Failure (see stderr for details). |
|||
2 |
Timed out waiting for I/O. |
|||
3 |
Command line usage error. |
BUGS
At most 32 RCPT commands are allowed.
AUTHOR
Sergey Poznyakoff <gray@gnu.org>
LICENSE
Copyright (C)
2020-2021 Sergey Poznyakoff, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and
redistribute it. There is NO WARRANTY, to the extent
permitted by law.
Manpage server at man.gnu.org.ua.
Powered by mansrv 1.1