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

# maillog(1)

seach logs for mail to/from particular people.

## NAME

maillog - seach logs for mail to/from particular people.

## SYNOPSIS

**maillog** *\[-0-9 -s\] person*

## DESCRIPTION

*maillog* searches the machines' current mail logs for mail to or from the user. It is used to see if one's mail was sent (actually \`\`was processed by the router or smtp programs''), and when.

 The \`\`-0'' through \`\`-9'' options cause older copies of the logs to be searched.

The \`\`-s'' option causes smtp logs to be searched.

## EXAMPLE

The log router entry for each message consists of the mailer's internal file number, the sender, the string \`\`=\>'' and all recipients.  This is illustrated just below.

```
%  maillog info@uunet.ca
maillog: searching for mail to/from info@uunet.ca in router log.
<91Oct8.132745edt.9237@nexus.yorku.ca>: file: 9237 David Collier-Brown
<davecb> => <davecb@nexus.yorku.ca>, <info@uunet.ca>
```

The smtp logs entries are different: they contain an internal file number, the string \`\`MAIL From:'' or \`\`RCPT To:'' and the person's name, thusly:

```
% maillog -s davecb
maillog: searching for mail to/from davecb in smtp log.
858w    MAIL From:<davecb@nexus.yorku.ca>
1971w   MAIL From:<@VM1.YorkU.CA:davecb@nexus.yorku.ca>
4321w   RCPT To:<davecb@carr.yorku.ca>
```

## SEE ALSO

[mailpath(1)](/mailpath/1.md), [mailq(1)](/mailq/1.md), [zmailer(1)](/zmailer/1.md).

## AUTHORS

Dave Collier-Brown (davecb@nexus.yorku.ca)

## BUGS

The current log may be for as little as one day or as long as several weeks, depending on your site's configuration. Most include only the current day's messages. The -0 through -9 options may give you older logs, depending on site policy.
