Name

DirectSubmissionModifiers

Synopsis

Direct submission of email is accomplished by running sendmail on the command line:

% /usr/sbin/sendmail address 
% /usr/sbin/sendmail -t < file 
%/usr/sbin/sendmail -bs

The first form shows the recipient address being set as part of the command line. The second form shows the recipient address being parsed from the headers in the file. And the third form shows the recipient being taken from an SMTP session run via standard input and output.

Regardless of how you submit messages to sendmail, on the command line or with -bs, it is still considered direct submission. When a message is directly submitted it is of a different nature than a message received over a socket. When a message is directly submitted, the ${daemon_flags} sendmail macro (${daemon_flags}) is given one of two possible sets of values. If the -G command-line switch (-G), which specifies gateway submission mode, is specified, the values are CC f. If the -G command-line switch is omitted, the values are c u.

CC f

The CC means to not canonify hostnames. The f means to require that all hostname be supplied fully canonified.

c u

The c means to canonify all hostnames. The u means that hostnames do not need to be supplied in canonified form.

But note that with the mc configuration, the default for the submit.cf file is to define the DaemonPortOptions Modify= with the character E, which means to disallow use of the ETRN command.

If you wish to specify different flags, you can use this DirectSubmissionModifiers ...

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.