RHEL 6 mail problem when using TMPDIR variable

Solution Verified - Updated -

Issue

If variable name TMPDIR is exported and if the directory does not exist, mail will not be sent out.

You will receive error message: temporary mail file: No such file or directory

The return code from the failed mail command is 0.

Environment

Red Hat Enterprise Linux 6
mailx-12.4-6.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content