Skip to content

serialsmtp.1

Manvendra Bhangui edited this page Oct 5, 2023 · 3 revisions

NAME

serialsmtp - blast files across SMTP

SYNOPSIS

serialsmtp prefix helohost [do-not-quit]

DESCRIPTION

serialsmtp is similar to serialqmtp(1), except that it transfers messages over SMTP. serialsmtp uses helohost as the local host name for saying hello to the remote SMTP server. helohost must be a fully-qualified domain name. If the argument do-not-quit is given, serialsmtp does not issue the SMTP QUIT command when it exits. This is useful when serialsmtp is running under tcpclient, where serialsmtp can be invoked multiple times in the same tcpclient session.

serialsmtp supports ESMTP PIPELINING. serialsmtp assumes that all sender and recipient domain names have already been canonicalized.

serialsmtp sends messages to a SMTP server. It expects to be run under an UCSPI client; it sends data to the server on descriptor 7, and reads data from the server on descriptor 6..

serialsmtp reads the messages from separate files. It reads the filenames from stdin. Each filename is terminated by a 0 byte.

serialsmtp retrieves a message's envelope sender address and envelope recipient address from the Return-Path and Delivered-To lines at the top of the message header. It removes these lines before passing the message along.

serialsmtp removes prefix from the beginning of each envelope recipient address. It ignores any message whose recipient address does not begin with prefix.

serialsmtp reports its results on stdout. Each result is a 0-terminated filename, followed by a status byte, followed by an LF-terminated readable status message. The status byte is K if the SMTP server has accepted responsibility for the message, Z if the SMTP server has temporarily rejected the message, and D if the SMTP server has permanently rejected the message. serialsmtp silently truncates excessively long status messages. serialsmtp does not necessarily print a result for every file:

it may skip files, it may have trouble reading a file from disk, or it may have trouble talking to the SMTP server.

serialsmtp uses a 73-second timeout on each network write.

SEE ASO

tcpclient(1), serialsmtp(1), maildirserial(1), qmail-smtpd(8)

Clone this wiki locally