info > mailq(1)

📖 NAME

sendmail - Postfix to Sendmail compatibility interface

🚀 Quick Reference

Use Case Command Description
📧 Send mail sendmail [options] recipient... Read message from stdin and deliver to recipients
📋 List mail queue mailq or sendmail -bp Display queued messages with status indicators
🔄 Initialize aliases newaliases or sendmail -I or sendmail -bi Build or update alias database
🖥️ Run as daemon sendmail -bd Start Postfix in daemon mode
🔍 Verify addresses sendmail -bv recipient... Test address rewriting/routing without delivery
⚡ Flush queue sendmail -q Attempt delivery of all queued mail
🔌 Standalone SMTP sendmail -bs Read SMTP commands from stdin, write responses to stdout
📤 Extract recipients sendmail -t Extract recipients from message headers
📝 VERP support sendmail -XV Variable Envelope Return Path for mailing lists
🔊 Verbose logging sendmail -v (or -v -v for debug) Enable verbose delivery reports or debug logging

📋 SYNOPSIS

sendmail [option ...] [recipient ...]

mailq
sendmail -bp

newaliases
sendmail -I

📝 DESCRIPTION

The Postfix sendmail(1) command implements the Postfix to Sendmail compatibility interface. For the sake of compatibility with existing applications, some Sendmail command-line options are recognized but silently ignored.

By default, Postfix sendmail(1) reads a message from standard input until EOF or until it reads a line with only a . character, and arranges for delivery. Postfix sendmail(1) relies on the postdrop(1) command to create a queue file in the maildrop directory.

📌 Specific command aliases

Specific command aliases are provided for other common modes of operation:

These and other features can be selected by specifying the appropriate combination of command-line options. Some features are controlled by parameters in the main.cf configuration file.

⚙️ Options

The following options are recognized:

🔒 SECURITY

By design, this program is not set-user (or group) id. It is prepared to handle message content from untrusted, possibly remote, users.

However, like most Postfix programs, this program does not enforce a security policy on its command-line arguments. Instead, it relies on the UNIX system to enforce access policies based on the effective user and group IDs of the process. Concretely, this means that running Postfix commands as root (from sudo or equivalent) on behalf of a non-root user is likely to create privilege escalation opportunities.

If an application runs any Postfix programs on behalf of users that do not have normal shell access to Postfix commands, then that application MUST restrict user-specified command-line arguments to avoid privilege escalation.

🔍 DIAGNOSTICS

Problems are logged to syslogd(8) or postlogd(8), and to the standard error stream.

🌍 ENVIRONMENT

⚙️ CONFIGURATION PARAMETERS

The following main.cf parameters are especially relevant to this program. The text below provides only a parameter summary. See postconf(5) for more details including examples.

🔄 COMPATIBILITY CONTROLS

Available with Postfix 2.9 and later:

🔧 TROUBLE SHOOTING CONTROLS

The DEBUG_README file gives examples of how to troubleshoot a Postfix system.

🔐 ACCESS CONTROLS

Available in Postfix version 2.2 and later:

⚡ RESOURCE AND RATE CONTROLS

⚡ FAST FLUSH CONTROLS

The ETRN_README file describes configuration and operation details for the Postfix fast flush service.

🔁 VERP CONTROLS

The VERP_README file describes configuration and operation details of Postfix support for variable envelope return path addresses.

📦 MISCELLANEOUS CONTROLS

Postfix 3.2 and later:

📁 FILES

📚 SEE ALSO

📖 README_FILES

Use postconf readme_directory or postconf html_directory to locate this information.

📄 LICENSE

The Secure Mailer license must be distributed with this software.

👤 AUTHOR(S)

Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA

Wietse Venema
Google, Inc.
111 8th Avenue
New York, NY 10011, USA

mailq(1)
📖 NAME 🚀 Quick Reference 📋 SYNOPSIS 📝 DESCRIPTION
📌 Specific command aliases ⚙️ Options
🔒 SECURITY 🔍 DIAGNOSTICS 🌍 ENVIRONMENT ⚙️ CONFIGURATION PARAMETERS
🔄 COMPATIBILITY CONTROLS 🔧 TROUBLE SHOOTING CONTROLS 🔐 ACCESS CONTROLS ⚡ RESOURCE AND RATE CONTROLS ⚡ FAST FLUSH CONTROLS 🔁 VERP CONTROLS 📦 MISCELLANEOUS CONTROLS
📁 FILES 📚 SEE ALSO
📖 README_FILES
📄 LICENSE 👤 AUTHOR(S)

Generated by phpman v4.9.26-1-g511901d Author: Che Dong Under GNU General Public License
2026-08-08 15:17 @216.73.216.150
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format