#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 19. Mail/News Clients

- Prev

  Mutt-2.3.2

- Next

  Other Mail and News Programs

- Up
- Home

# Procmail-3.24

## Introduction to Procmail

The Procmail package contains an autonomous mail processor. This is useful for filtering and sorting incoming mail.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://github.com/BuGlessRB/procmail/archive/v3.24/procmail-3.24.tar.gz

- Download MD5 sum: e38b8739e5c6400e3586c5fd9810c1e0

- Download size: 296 KB

- Estimated disk space required: 2.1 MB

- Estimated build time: less than 0.1 SBU

### Additional Downloads

- Required patch: https://www.linuxfromscratch.org/patches/blfs/svn/procmail-3.24-consolidated_fixes-1.patch

### Procmail Dependencies

#### Recommended

A MTA that installs sendmail

#### Optional

libnsl-2.0.1

## Installation of Procmail

This package does not come with a test suite.

Install Procmail by running the following commands as the `root` user:

    patch -Np1 -i ../procmail-3.24-consolidated_fixes-1.patch               &&

    make CC="gcc -std=gnu17" LOCKINGTEST=/tmp MANDIR=/usr/share/man install &&
    make install-suid

## Command Explanations

make LOCKINGTEST=/tmp install: This prevents make from asking you where to test file-locking patterns.

CC="gcc -std=gnu17": This sets the C standard to C17 because this package is not compatible with C23, and no fixes are readily available.

make install-suid: Modifies permissions of the installed files.

## Configuring Procmail

### Config Files

`/etc/procmailrc` and `~/.procmailrc`

### Configuration Information

Recipes have to be written and placed in `~/.procmailrc` for execution. The procmailex man page is the starting place to learn how to write recipes. For additional information, see also https://pm-doc.sourceforge.net/.

## Contents

Installed Programs: formail, lockfile, mailstat and procmail
Installed Libraries: None
Installed Directories: None

### Short Descriptions

formail | is a filter that can be used to format mail into mailbox format
lockfile | is a utility that can lock a file for single use interactively or in a script
mailstat | prints a summary report of mail that has been filtered by procmail since the last time mailstat was ran
procmail | is an autonomous mail processor. It performs all the functions of an MDA (Mail Delivery Agent)

- Prev

  Mutt-2.3.2

- Next

  Other Mail and News Programs

- Up
- Home