''F=0 (zero)'' '''

F=0 (zero)

Turn off MX lookups for delivery agent V8.8 and above

During the delivery phase of a message, sendmail looks up the destination hostname with DNS and (possibly) redirects delivery to MX hosts, if present. One way (but not the best way) to suppress that MX lookup is to surround the destination hostname with square brackets:

% /usr/ucb/mail -v user@\[mail.us.edu\]

Note that the square brackets are retained as part of the SMTP envelope:

RCPT To:<user@[mail.us.edu]>        square brackets retained

The F=0 delivery agent flag is another way to suppress MX lookups. To illustrate, consider using this delivery agent flag with the nullclient feature (FEATURE(nullclient)):


Here, all mail will be forwarded to mail.us.edu. To suppress MX lookups, we could surround the address with square brackets:


But this is unattractive and unnecessary. Instead, we use the F=0 delivery agent flag to achieve the same MX suppression effect:

define(`SMTP_MAILER_FLAGS', `0')     prior to V8.10
define(`RELAY_MAILER_FLAGS', `0')    prior to V8.10

MODIFY_MAILER_FLAGS(`SMTP', `+0')    V8.10 and above
MODIFY_MAILER_FLAGS(`RELAY', `+0')   V8.10 and above


Note that the F=0 delivery agent flag is suitable only for configurations such as nullclient. It can be extremely dangerous to use with any other delivery agents because it will cause necessary MX lookups to be skipped.

    Part I: Build and Install
    Part II: Administration
    Part III: The Configuration File
    Chapter 21. The D (Define a Macro) Configuration Command
    Chapter 24. The O (Options) Configuration Command