info > sendmail(1)

SENDMAIL(1) General Commands Manual SENDMAIL(1)

📖 NAME

sendmail - Postfix to Sendmail compatibility interface

🚀 Quick Reference

Use CaseCommandDescription
📧 Send mailsendmail [options] recipient...Read message from stdin and deliver
📋 List mail queuemailq or sendmail -bpShow queued messages with status
🔄 Initialize aliasesnewaliases or sendmail -IBuild alias database
🚀 Flush queuesendmail -qAttempt delivery of all queued mail
🔍 Verify addressessendmail -bv recipient...Test address rewriting without delivery
🛡️ SMTP server modesendmail -bsStandalone SMTP server (stdin/stdout)
⚙️ Daemon modesendmail -bdStart Postfix daemon (postfix start)
📝 Extract recipientssendmail -tGet recipients from message headers

📋 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 are provided for other common modes of operation:

📋 mailq

List the mail queue. Each entry shows the queue file ID, message size, arrival time, sender, and the recipients that still need to be delivered. If mail could not be delivered upon the last attempt, the reason for failure is shown. The queue ID string is followed by an optional status character:

This mode of operation is implemented by executing the postqueue(1) command.

🔄 newaliases

Initialize the alias database. If no input file is specified (with the -oA option, see below), the program processes the file(s) specified with the alias_database configuration parameter. If no alias database type is specified, the program uses the type specified with the default_database_type configuration parameter. This mode of operation is implemented by running the postalias(1) command.

Note: it may take a minute or so before an alias database update becomes visible. Use the "postfix reload" command to eliminate this delay.

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.

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

/var/spool/postfix, mail queue
/etc/postfix, configuration 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

SENDMAIL(1)

sendmail(1)
📖 NAME 🚀 Quick Reference 📋 SYNOPSIS 📝 DESCRIPTION
📋 mailq 🔄 newaliases
🔒 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 11:43 @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