> Source: [sk183698](https://support.checkpoint.com/results/sk/sk183698)

# sk183698 - Failure to auto-remove MTA temp files in $FWDIR/tmp/ may lead to a full disk

| Property | Value |
|----------|-------|
| Solution ID | sk183698 |
| Date Created | 2025-07-28 |
| Last Modified | 2025-08-02 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R81.20 |

## Symptoms

- * A large number of temporary files with this naming pattern accumulate under `$FWDIR/tmp/` on the Security Gateway with MTA and Threat Emulation blades enabled.  

  `4NZG5XGM4269846A6B7UR1RH7UC5X3UUDH8YRSRUJRXJ140522`  
  `4NZG5XGM4269846A6B7UR1RH7UC5X3UUDH8YRSRUJRXJ140522_mail_body`  

* `/var/log` partition becomes full which leads to the malfunction of MTA and Threat Emulation.  

  **Example output of df -h:**

  `[Expert@HOSTNAME:0]# df -h`  
  `Filesystem Size Used Avail Use% Mounted on`  
  `/dev/mapper/vg_splat-lv_current 32G 15G 16G 48% /`  
  `/dev/md0 289M 95M 179M 35% /boot`  
  `tmpfs 32G 19M 32G 1% /dev/shm`  
  `/dev/mapper/vg_splat-lv_log 146G 146G 0 `100%` /var/log`

## Cause

Some MTA temporary files which are stored under `$FWDIR/tmp/` may not be cleaned up properly and accumulate over time. An existing cleanup script (`del_all_tmp_files.pyc`) removes only `_mail_body` files, but not the related attachment files, which can continue to grow and impact blade performance.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
