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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.