#### Beyond Linux® From Scratch (systemd Edition) - Version 10.1

### Chapter 19. Mail/News Clients

- Prev

  Fetchmail-6.4.16

- Next

  Mutt-2.0.5

- Up
- Home

# mailx-12.5

## Introduction to Heirloom mailx

The Heirloom mailx package (formerly known as the Nail package) contains mailx, a command-line Mail User Agent derived from Berkeley Mail. It is intended to provide the functionality of the POSIX mailx command with additional support for MIME messages, IMAP (including caching), POP3, SMTP, S/MIME, message threading/sorting, scoring, and filtering. Heirloom mailx is especially useful for writing scripts and batch processing.

This package is known to build and work properly using an LFS-10.1 platform.

### Package Information

- Download (HTTP): http://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5.orig.tar.gz

- Download MD5 sum: 29a6033ef1412824d02eb9d9213cb1f2

- Download size: 317 KB

- Estimated disk space required: 3.2 MB

- Estimated build time: less than 0.1 SBU

### Additional Downloads

- Required patch: http://www.linuxfromscratch.org/patches/blfs/10.1/heirloom-mailx-12.5-fixes-1.patch

### Heirloom mailx Dependencies

#### Optional

NSS-3.61, MIT Kerberos V5-1.19.1 (for IMAP GSSAPI authentication), and an MTA

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/mailx

## Installation of Heirloom mailx

### Note

This package does not support parallel build.

Install Heirloom mailx by running the following commands.

    patch -Np1 -i ../heirloom-mailx-12.5-fixes-1.patch &&

    sed 's@<openssl@<openssl-1.0/openssl@' \
        -i openssl.c fio.c makeconfig      &&

    make -j1 LDFLAGS+="-L /usr/lib/openssl-1.0/" \
         SENDMAIL=/usr/sbin/sendmail

This package does not come with a test suite.

Now, as the `root` user:

    make PREFIX=/usr UCBINSTALL=/usr/bin/install install &&

    ln -v -sf mailx /usr/bin/mail &&
    ln -v -sf mailx /usr/bin/nail &&

    install -v -m755 -d     /usr/share/doc/heirloom-mailx-12.5 &&
    install -v -m644 README /usr/share/doc/heirloom-mailx-12.5

## Command Explanations

make SENDMAIL=/usr/sbin/sendmail: This changes the default MTA path of /usr/lib/sendmail.

make PREFIX=/usr UCBINSTALL=/usr/bin/install install: This changes the default installation path of `/usr/local` and the default install command path of `/usr/ucb`.

## Configuring Heirloom mailx

###

#### Config Files

`/etc/nail.rc`, `~/.mailrc` and `~/.nailrc`

## Contents

Installed Programs: mail, mailx and nail
Installed Libraries: None
Installed Directories: None

### Short Descriptions

mailx | is a command-line mail user agent compatible with the mailx command found on commercial Unix versions
mail | is a symbolic link to mailx
nail | is a symbolic link to mailx

Last updated on 2021-02-22 15:55:36 -0800

- Prev

  Fetchmail-6.4.16

- Next

  Mutt-2.0.5

- Up
- Home