Name

FEATURE(msp)

Synopsis

The msp feature 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 (see 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.1

If 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 will look up MX records ...

Get Sendmail, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.