---
name: "mail.maildir"
section: "8"
platform: "linux"
package: "opensmtpd"
version: "7.9.0p0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "openbsd"]
url: "https://new.carta.tech/mail.maildir"
---

# mail.maildir(8)

store mail in a maildir

## NAME

**mail.maildir** – store mail in a maildir

## SYNOPSIS

**mail.maildir** \[**-j**\] \[*pathname*\]

## DESCRIPTION

**mail.maildir** reads the standard input up to an end-of-file and adds it to the mail directory located in *pathname* or to the mail directory *Maildir* located in the user's home directory.

The options are as follows:

- **-j**

  Scan the message for an X-Spam header and move to the Junk folder if the result is positive.

## EXIT STATUS

The **mail.maildir** utility exits 0 on success, and \>0 if an error occurs.

## SEE ALSO

[mail(1)](/mail/1.md), [smtpd(8)](/smtpd/8.md)
