---
name: "mboxpath"
section: "1"
platform: "linux"
package: "zmailer"
version: "2.99.55-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/mboxpath"
---

# mboxpath(1)

ZMailer utility to show user's mailbox path

## NAME

mboxpath - ZMailer utility to show user's mailbox path

## SYNOPSIS

**mboxpath** \[ **-D\[D\]** \] \[ **-P\[P\]** \] \[ **-X\[X\]** \] \[ **-d** *dirpath* \] *username*

## DESCRIPTION

*mboxpath* is a ZMailer utility program to be used when local user directories have been scattered around, and it is desired to have user's shell environment variable **MAIL** be set to where ever his/her UNIX mailbox file is.

This does only manage scattering under common *-d dirpath* directory prefix, but usually that is sufficient.

## OPTIONS

- \-d *dirpath*

  See [*mailbox*(8)](/mailbox/8.md).

- \-D\[D\]

  See [*mailbox*(8)](/mailbox/8.md).

- \-P\[P\]

  See [*mailbox*(8)](/mailbox/8.md).

- \-X\[X\]

  See [*mailbox*(8)](/mailbox/8.md).

## USAGE

This is intended for system-wide startup script usage with code something like following for sh:

**MAIL=\`mboxpath  -P  $USER\`**

It is important to use SAME options here as are used at running the mailbox program.

## ENVIRONMENT

The default location for user mailbox files depends per system, but one of them is: **/var/mail**. This may be modified by setting the variable **MAILBOX** in **/etc/zmailer.conf** to the directory containing user mailbox files, for example **/usr/spool/mail**. This is best done in the ZMailer SiteConfig file.

This program outputs the **likely** mailbox location to the stdout, it does not go and see if there is anything.

## FILES

*/etc/zmailer.conf*\
 */var/mail (MAILBOX)*

## SEE ALSO

[mailbox(8)](/mailbox/8.md), [scheduler(8)](/scheduler/8.md), comsat(8C), [biff(1)](/biff/1.md), [flock(2)](/flock/2.md), [Mail(1)](/Mail/1.md)

## AUTHOR

This program authored and copyright by:\
 Matti Aarnio \<mea@nic.funet.fi\>
