FEATURE(msp)
Create a mail submission cf file V8.12 and later
FEATURE(msp) is
used to create a submit.cf file
for use with a mail submission program, which is a
command-line sendmail that
functions as a mail submission agent (MSA).
In its simplest form, this feature is used like this:
FEATURE(`msp')
Here, a configuration file suitable for an MSA will be created. The resulting MSA will forward any message it gathers to the host localhost and will do so without looking up MX records for localhost. Unless told otherwise (as described later), the MSA will submit messages locally to port 25.
In the event that mail does not go to the local host, first check to see that the host named localhost is correctly defined on your machine:
% nslookup localhost
Server: your.name.server
Address: 123.45.67.89
Name: localhost
Address: 127.0.0.1If the address printed is not 127.0.0.1 for IPv4, or ::1 for IPv6, either
correct the problem with your own name server, or
contact your ISP and demand a correction. If that
fails, you can still send to the local host by
putting the correct address directly into the
msp declaration
as an argument:
FEATURE(`msp', `[127.0.0.1]')
Here, the square brackets tell sendmail that it is dealing with an address, rather than a hostname.
The argument can also be used to tell the MSA to connect to a host other than localhost:
FEATURE(`msp', `otherhost')
Here, submitted mail will be forwarded to the host otherhost for delivery, or for relaying outward. Unless you suppress it, the MSA ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access