-V

Specify the ENVID string V8.8 and later

The -V command-line switch is used to specify the envelope identifier for the outgoing message. That identifier is called the ENVID and is part of the DSN extension to ESMTP. ENVID and the ${envid} sendmail macro are fully discussed in ${envid} on page 823.

The form of the -V command-line switch looks like this:

-Venvid
-V envid

Space between the -V and its argument is optional. The envid must be a legal ENVID identifier. If an illegal character is specified in envid, the following error is printed, and that declaration is ignored:

Invalid syntax in -V flag

Get sendmail, 4th 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.