The V Configuration Command
The V configuration command was added to V8 sendmail to prevent old versions of configuration files from breaking when used with V8 sendmail. The syntax for the V configuration command looks like this:
VlevelV8.1 and above V
level/vendorV8.6 and above
Here, level is a positive integer, and /vendor is a string. We will cover the vendor part soon.
If level is higher than the maximum allowed for the current version, sendmail prints the following warning and accepts the value:
Warning: .cf version level (lev) exceeds program functionality (max)
If level is less than 0 or if the V configuration command is omitted, the default level is 0.
The effects of the various version levels are relatively minor. As sendmail continues to develop, they may become more pronounced. Currently, the version levels are as follows:
- The check for a valid shell in /etc/shells is ignored (see "The /etc/shells file").
- -1
- MX records are looked up with the RES_DEFNAMES and RES_DNSRCH cleared. The high bit is always stripped from the body of every mail message.
- +
- The sendmail program automatically adds a
-a.to the "host host" map if that map isn't declared in the configuration file. RES_DEFNAMES and RES_DNSRCH are not turned off as they were for older versions. Rule set 5 behavior is enabled. - -2
- Set
UseErrorsTo(l) option (see UseErrorsTo (l)) to true automatically. - +
- Automatically sets the
$wmacro to be the short name instead of the fully qualified local hostname ($jstill contains the fully qualified name and$mthe local domain). - +
- You may use the new-style comments.
- -5
- For V8.7 and above sendmail, level 5 or lower causes the
F=5Aw:|/@flags to automatically be set for thelocaldeliver agent and theF=oflag to automatically be set for theprogand*file*delivery agents. - -5
- Looking up MX records with
HasWildcardMXlisted with theResolverOptions(I) option (see ResolverOptions (I)), causes RES_QUERY to be used in place of RES_SEARCH. Default theColonOkInAddroption (see ColonOkInAddr) to false. - -6
- Set the
SmtpGreetingMessageoption (see SmtpGreetingMessage or $e) with the value of$eif$ehas a value. Set theOperatorCharsoption (see OperatorChars or $o) with the value of$oif$ohas a value. Beginning with V8.8 sendmail, a level of 6 or less causes theF=qflag (see F=q) for thelocal,prog, and*file*delivery agents to be automatically set. - As of V8.8, the current version.
The vendor
Beginning with V8.6 sendmail, the level for the version command can be followed by the identity of the vendor. The form of that declaration looks like this:
Vlevel/vendorV8.6 and above
The / must immediately follow the level with no intervening space. There may be arbitrary space between the / and the vendor. The string that is the vendor specification may either be one of the following:
- Berkeley
- This is a configuration file based on the BSD distribution and is the one you get when you build and install from the source. As of V8.8, this declaration does nothing. If you use this configuration file with another vendor's version of sendmail, the
Berkeleytells the other version that you are using a configuration file based on the BSD source. - Sun
- This is a configuration file intended for use with Sun's release of sendmail. If it is declared and if you are running Sun's sendmail, the enhancements documented in Appendix Appendix D, Sun Enhancements, become available for your use. If you are not running Sun's sendmail, an error is printed.
If any other string appears in the vendor part, sendmail will print the following error and ignore that vendor declaration:
invalid V line vendor code: bad vendor name here
Note that vendors other than those shown may have customized their sendmail too, so this may not be a complete list. [3]
[3] Vendors that enhance their sendmail are strongly encouraged to use a new vendor code.
V8.1 and above V