bsd-mailx - simple mail user agent

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Main amd64
Package filename bsd-mailx_8.1.2-0.20160123cvs-2_amd64.deb
Package name bsd-mailx
Package version 8.1.2
Package release 0.20160123cvs-2
Package architecture amd64
Package type deb
Category mail
Homepage -
License -
Maintainer Ubuntu Developers <>
Download size 62.16 KB
Installed size 163.00 KB
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.20160123cvs-2_i386.deb 8.1.2 i386 Ubuntu Main
bsd-mailx - - -


Name Value
base-files >= 2.2.0
default-mta -
libbsd0 >= 0.2.0
libc6 >= 2.17
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.20160123cvs-2_amd64.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




2016-01-28 - Robert Luberda <>
bsd-mailx (8.1.2-0.20160123cvs-2) unstable; urgency=medium
* Compile with -fPIC to fix FTBFS on some archs.
* Add 32-Fix-FTBFS-on-Hurd.patch to revert to old version
of alter() function when UTIME_OMIT is not defined -
this should fix FTBFS on Hurd.
* debian/control:
+ bump Build-Dependency on libbsd-dev to >= 0.8.1, as 0.8.0, the
current version on hppa, seems to be broken;
+ lower package priority to optional to match to the overrides file.
2016-01-27 - Robert Luberda <>
bsd-mailx (8.1.2-0.20160123cvs-1) unstable; urgency=medium
* New upstream version from OpenBSD CVS repository.
* Update patches for the new upstream version
+ Updated 00-Makefiles.patch to add -D_DEFAULT_SOURCE to CFLAGS;
+ Drop 17-Intialize-tv_used.patch, as it is no longer needed;
+ Add 30-Add-missing-includes.patch to add includes required
by calls to clock_gettime() and utimensat().
+ Add 31-Do-not-call-pledge.patch to revert a call to pledge()
which is not available on Linux.
* Enable `pie' and `bindnow' hardening flags.
* Use https protocol in Vcs-Browser control field.
* Fix a typo in README.Debian.
2015-05-17 - Robert Luberda <>
bsd-mailx (8.1.2-0.20150408cvs-1) unstable; urgency=medium
* New upstream version from OpenBSD CVS repository:
+ new `-r' option allows one to specify sender address (closes: #224530).
* Update 18-Wait-for-sendmail.patch to exit with a non-zero code when
sendmail process fails (closes: #733040).
* Fix merge issue in 21-Use-wordexpr-instead-of-echo.patch (closes: #773481).
* Update 25-Fix-confusing-error.patch not to mention the recently removed
`-t' option (closes: #781170).
* Add 29-Document-two-dashes-separator.patch to document `--' in the man
page (closes: #773317).
* Switch debian/control to DEP-5 format.
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).

See Also

Package Description
bsdmainutils_9.0.6ubuntu3_amd64.deb collection of more utilities from FreeBSD
bsdutils_2.27.1-6ubuntu3_amd64.deb basic utilities from 4.4BSD-Lite
btrfs-tools_4.4-1_amd64.deb Checksumming Copy on Write Filesystem utilities
build-essential_12.1ubuntu2_amd64.deb Informational list of build-essential packages
busybox-initramfs_1.22.0-15ubuntu1_amd64.deb Standalone shell setup for initramfs
busybox-static_1.22.0-15ubuntu1_amd64.deb Standalone rescue shell with tons of builtin utilities
byobu_5.106-0ubuntu1_all.deb text window manager, shell multiplexer, integrated DevOps environment
bzip2-doc_1.0.6-8_all.deb high-quality block-sorting file compressor - documentation
bzip2_1.0.6-8_amd64.deb high-quality block-sorting file compressor - utilities
bzr-doc_2.7.0-2ubuntu1_all.deb easy to use distributed version control system (documentation)
bzr_2.7.0-2ubuntu1_all.deb easy to use distributed version control system
bzrtools_2.6.0-3_all.deb Collection of tools for bzr
ca-certificates-java_20160321_all.deb Common CA certificates (JKS keystore)
ca-certificates-mono_4.2.1.102+dfsg2-7ubuntu4_all.deb Common CA certificates (Mono keystore)
ca-certificates_20160104ubuntu1_all.deb Common CA certificates