Problem
The "From", "Received:", and "Date:" lines give different times in the same mail header.
Cause
Most processes in UNIX look for the local time zone using the
environment variable TZ. Sendmail is run as a SUID process
and will not trust those environment variables. Therefore, it
is necessary to use the "t" option to give sendmail the correct
time zone information. Solution
The "t" option can be set in the sendmail.cf or from the command line.
Using the sendmail.cf:The time zone can be set by configuring the Ot option in the
sendmail.cf file. In the /usr/lib/sendmail.cf file, edit the
"Ot" macro to read:Ot<STD#DST>where 'STD' is the abbreviation for local standard time, '#' is the number of hours local standard time differs from Greenwich Mean Time, and 'DST' is the abbreviation for local daylight savings time.
For example, in California, the macro reads:
OtPST8PDTIf you were on the east coast of the United States, the macro would read:
OtEST5EDTTo invoke this option from the command line, type (omitting the #):
#/usr/lib/sendmail -otSTD#DST -bd -q1hwhere 'STD', '#', and 'DST' are the same as above.
WARNING: Invoking the "t" option from the command line poses a security risk as it may cause sendmail to relinquish its root privilege.
See also
sendmail(ADMN)