Wydawca |
|
Release Submission Daemon |
Sergey Poznyakoff |
To send messages, mod_mailutils
uses a special logical entity
called a mailer. It is set in the module-init
block using
the mailer
keyword.
Set mailer URL.
A mailer URL consists of a scheme specification, followed by ‘://’ separator and additional data. The URLs supported by Wydawca version 4.0.3 are described in the table below. As usual, square brackets indicate optional parts:
Use an SMTP server on host to relay messages. The host part is either an IP address in dotted-quad notation or as a symbolic host name. In the latter case, DNS system is be used to resolve it. Optional port specifies port number or symbolic name (as defined in /etc/services). It defaults to 25. For example:
mailer smtp://remote.server.net:24;
Use sendmail-compatible program progname. Sendmail-compatible means that the program must be able to read an RFC-822 message from its standard input and must support the following command line options:
Do not treat ‘.’ as message terminator.
Use addr as the sender address.
Get recipient addresses from the message.
Example:
mailer sendmail:///usr/sbin/exim;
This is a special form of the ‘sendmail’ mailer. It uses the
sendmail
binary from the _PATH_SENDMAIL
macro in your
/usr/include/paths.h. It is the default mailer.
A prog mailer. This is a generalization of ‘sendmail’ mailer that allows to use arbitrary external programs as mailers.
The full file name of the program is given in progname part. The query part is a list of arguments, separated by ‘&’ signs. Arguments may contain the following macro-substitutions:
Expands to the sender email address.
Expands to the recipient email addresses.
The program progname must read an RFC-822 message from its standard input.
An example of ‘prog’ mailer definition:
mailer "prog:///bin/nullmail?localhost&-F${sender}&${rcpt}
When sending a mail, wydawca
will invoke:
/bin/nullmail localhost -Fsender rcpt
where sender means the sender address, and rcpt stands for the recipient email address.
Equivalent to the ‘prog’ mailer, described above, but written in a more natural fashion. In this notation, the example definition above becomes:
mailer "|/bin/nullmail localhost -F${sender} ${rcpt}"
This document was generated on January 6, 2021 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.