USE_ENVIRON

Use the environ variable (V8.12 and above) Port with confENVDEF

Most versions of Unix compilers provide environment variables to programs in the third argument to main( ). Others provide environment variables in an external pointer variable called environ. If yours uses this latter approach, you can take advantage of it by defining this USE_ENVIRON compile-time macro:

APPENDDEF(`confENVDEF', `-DUSE_ENVIRON=1')      ← available with V8.12 and above

See The Environment on page 156 for a discussion of sendmail and the environment.

If you are running a precompiled sendmail binary, you can use the -d0.10 debugging command-line switch (-d0.10 on page 543) to determine whether USE_ENVIRON support is defined (if it appears in the list, it is defined).

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.