sendmail errors: Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF (HP UX)


Error:

While checking the mailq below messages are being seen.

                /var/spool/mqueue (25 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
084Fe2V7000352*     229 Fri Sep  4 23:40 root
                                         root
084FZ0EN019660      229 Fri Sep  4 23:35 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
084FU0lB009058      229 Fri Sep  4 23:30 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
084FP5de028755      229 Fri Sep  4 23:25 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
084FKhx8023818      229 Fri Sep  4 23:20 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
084Et10R002008*     229 Fri Sep  4 22:55 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
084Ej2ib011301      229 Fri Sep  4 22:45 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
084FF1pO014533      229 Fri Sep  4 23:15 root


Solution:

/var/mail didn't exist 
/var/mail needs to be created and bin:mail ownership and 775 permissions

Also, check that no lock file present.

Check for /var/mail/*.lock and if present please remove.

Start and stop Sendmail services.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start