bsd-mailx - simple mail user agent

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Main amd64
Package name: bsd-mailx
Package version: 8.1.2
Package release: 0.20160123cvs-2
Package architecture: amd64
Package type: deb
Installed size: 163 B
Download size: 62.16 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.



  • mail-reader
  • mailx


  • mailx << 1:20071201


    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


    • /etc/mail.rc
    • /usr/bin/bsd-mailx
    • /usr/share/bsd-mailx/
    • /usr/share/bsd-mailx/mail.tildehelp
    • /usr/share/doc/bsd-mailx/README.Debian.gz
    • /usr/share/doc/bsd-mailx/changelog.Debian.gz
    • /usr/share/doc/bsd-mailx/copyright
    • /usr/share/man/man1/bsd-mailx.1.gz


    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' warning. * Add a dummy debian/version file to make lintian happy. * debian/rules: enable LFS support (lintian). * Standards-Version: 3.9.5 (no changes).