bsd-mailx - simple mail user agent

Property Value
Distribution Debian 8 (Jessie)
Repository Debian Main i386
Package name bsd-mailx
Package version 8.1.2
Package release 0.20141216cvs-2
Package architecture i386
Package type deb
Installed size 195 B
Download size 83.99 KB
Official Mirror
bsd-mailx is the traditional simple command-line-mode mail user agent.
Even if you don't use it, it may be required by other programs.
The /usr/bin/mail command provided by this package is a very simple one,
and does not include many features that can be found in more advanced
mail user agents.
For example bsd-mailx DOES NOT support:
- MIME           (i.e. no attachments, no UTF-8 or other charsets support);
- SMTP protocol  (/usr/sbin/sendmail interface only is used);
- POP3/IMAP      (bsd-mailx reads local mailboxes only);
- maildir format (traditional mbox only format is supported).
If the above features are needed, please consider installing another package
providing similar /usr/bin/mail interface:
- heirloom-mailx package,
- or mailutils package.


Package Version Architecture Repository
bsd-mailx_8.1.2-0.20141216cvs-2_amd64.deb 8.1.2 amd64 Debian Main
bsd-mailx - - -


Name Value
base-files >= 2.2.0
default-mta -
libbsd0 >= 0.2.0
libc6 >= 2.8
liblockfile1 >= 1.0
mail-transport-agent -


Name Value
mail-reader -
mailx -


Name Value
mailx << 1:20071201


Type URL
Binary Package bsd-mailx_8.1.2-0.20141216cvs-2_i386.deb
Source Package bsd-mailx

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install bsd-mailx deb package:
    # sudo apt-get install bsd-mailx




2015-03-15 - Robert Luberda <>
bsd-mailx (8.1.2-0.20141216cvs-2) unstable; urgency=medium
* Add 27-Fix-getopt-string.patch to fix `-N' flag that does not take
an argument (LP: #1411623).
2014-12-18 - Robert Luberda <>
bsd-mailx (8.1.2-0.20141216cvs-1) unstable; urgency=high
* New upstream version from OpenBSD cvs repository. The version consists of:
- The changes that are part of the following recent stable security update
by Florian Weimer:
bsd-mailx (8.1.2-0.20111106cvs-1+deb7u1) wheezy-security; urgency=high
* Apply OpenBSD patches from Todd Miller:
+ 80-remove_T.patch (remove undocumented/obsolete -T option)
+ 81-minus_f.patch (adjust -f processing)
+ 82-expandaddr.patch (fix CVE-2014-7844)
+ 83-nosendmail.patch (make -- work for option parsing suppression)
- A simple change in lex.c related to preferring mkostemp(O_CLOEXEC) over
mkstemp()+fcntl(F_SETFD) and fopen("re") over fopen("r")+fcntl(F_SETFD).
- A change in fio.c to use glob() to expand filenames. The change however
is not enabled in the Debian package (i.e. outside of `#ifdef DEBIAN'
code) as wordexp() function instead has been used in Debian for last
10 years.
* Bump Standards-Version to 3.9.6.
2014-08-26 - Robert Luberda <>
bsd-mailx (8.1.2-0.20140825cvs-1) unstable; urgency=medium
* New upstream version from OpenBSD CVS repository.
* 26-Add-missing-include.patch: fix implicit declaration of function `warnc'
* Add a dummy debian/version file to make lintian happy.
* debian/rules: enable LFS support (lintian).
* Standards-Version: 3.9.5 (no changes).
2013-10-06 - Robert Luberda <>
bsd-mailx (8.1.2-0.20131005cvs-1) unstable; urgency=low
* New upstream version from OpenBSD CVS repository.
* Remove 23-Treat-new-line-only-messages-as-empty-ones.patch, introduced 
in 1:8.1.2-0.20071017cvs-1 so that bsd-mailx will behave like other mailx
implementations and will not treat messages containing a single new line 
only as an empty ones (LP: #607099, reopens #355545).
* Extend description of this package to mention the fact that bsd-mailx lacks
many features that may be found in other packages like heirloom-mailx
or mailutils (closes: #508303).
* Add 26-Fix-confusing-error.patch to make a message given when -b is used
without -t less confusing (closes: #327809).
* Fix 00-Makefile.patch not to override CC and pass CPPFLAGS while compiling.
* debian/rules:
+ apply patch from Ubuntu to respect DEB_HOST_GNU_TYPE when selecting CC 
for cross-compiling;
+ do not try to run make clean on unpatched Makefile.
* Bump Standards-Version to 3.9.4 (no changes).
2011-11-20 - Robert Luberda <>
bsd-mailx (8.1.2-0.20111106cvs-1) unstable; urgency=low
* New upstream version from OpenBSD CVS repository.
* Drop the additional source files from EXT directory, use libbsd-dev
instead. Move EXT to debian.
* 00-Makefile: don't override CFLAGS set in environment.
* Switch to dpkg-source 3.0 (quilt) format.
* Use debhelper v9 and tiny debian/rules file.
* debian/control:
+ Build-Depends on libbsd-dev;
+ Standards-Version: 3.9.2;
+ use Breaks instead of versioned Conflicts;
+ add Vcs fields;
+ reformat the dependencies fields with `wrap-and-sort' command.
* Include full text of BSD licence in copyright (lintian).
2010-03-14 - Robert Luberda <>
bsd-mailx (8.1.2-0.20100314cvs-1) unstable; urgency=low
* New upstream version from OpenBSD CVS repository.
* Follow upstream and stop installing the outdated documentation 
(closes: #455708); also remove doc-base file.
* debian/control:
+ depend on default-mta instead of exim4 (closes: #555495);
+ add ${misc:Depends} dependency (lintian);
+ Standards-Version: 3.8.4 (no changes).

See Also

Package Description
bsdcpio_3.1.2-11+deb8u3_i386.deb Implementation of the 'cpio' program from FreeBSD
bsdgames_2.17-22_i386.deb collection of classic textual unix games
bsdiff_4.3-15_i386.deb generate/apply a patch between two binary files
bsdmainutils_9.0.6_i386.deb collection of more utilities from FreeBSD
bsdtar_3.1.2-11+deb8u3_i386.deb Implementation of the 'tar' program from FreeBSD
bsdutils_2.25.2-6_i386.deb basic utilities from 4.4BSD-Lite
bsfilter_1.0.19-2_all.deb Bayesian spam filter
bsh-doc_2.0b4-15+deb8u1_all.deb Documentation for bsh
bsh-src_2.0b4-15+deb8u1_all.deb Java scripting environment (BeanShell) Version 2 (source code)
bsh_2.0b4-15+deb8u1_all.deb Java scripting environment (BeanShell) Version 2
bsign_0.4.5_i386.deb Corruption & intrusion detection using embedded hashes
bsnes_094-5_all.deb transitional dummy package
btag_1.1.3-1+b3_i386.deb interactive command-line based multimedia tag editor
btanks-data_0.9.8083-4_all.deb fast 2D tank arcade game -- data
btanks_0.9.8083-4_i386.deb fast 2D tank arcade game with multiplayer and split-screen modes