Recipient names must be specified
Recipient names must be specified
SENDMAIL(8) SENDMAIL(8)
名称
sendmail - 電子メール配送デーモン
書式
sendmail [flags] [address ...]
newaliases
mailq [-v]
hoststat
purgestat
smtpd
解説
sendmail はメッセージを一人または複数の受け手 (recipient) に送ります。
必要ならばインターネットワークを通してメッセージを正しい場所に転送し ま
す。
sendmail はユーザインタフェースとして使われることは考慮されていません。
ユーザにとって使いやすいフロントエンドは別のプログラムで提供されます 。
sendmail は、あらかじめメールとして整形されたメッセージを配送するためだ
けに使われます。
引数を指定せずに起動すると、 sendmail は標準入力をファイルの終端まで 、
ま たは ‘.’だけを含む行まで読み込み、そこで確認したメッセージのコピーを
、列挙されたアドレスに送ります。アドレスの文法や内容にもとづいて経路 に
使用するネットワークを決定します。
ロ ーカルアドレスは、あるファイルの中を検索して適当なエイリアスを行いま
す。先頭にバックスラッシュ ‘\’ のついたアドレスについては、エイリアスは
行 なわれません。 8.10 から、送り手はエイリアス展開の対象に含まれるよう
になりました。つまり、‘john’ が ‘group’ にメールを送る際に、 ‘john’ が
‘group’ に含まれているならば、送ったメッセージは ‘john’ にも送られます
。
パラメータ
-Btype ボディのタイプを type に設定します。現在有効なのは 、 7BIT か
8BITMIME です。
-ba ARPANET モードに移行します。すべての入力行は CR-LF で終わらなけ
ればならず、すべてのメッセージの末尾には CR-LF がつきます。ま た
、‘‘From:’’ と ‘‘Sender:’’ フィールドは送り手の名前としてチェッ
クされます。
-bd デーモンモードで実行します。Berkley IPC が必要です。 sendmail は
fork を行い、バックグラウンドで動作し、ソケット番号 25 で SMTP
コネクションを待ちます。通常このモードは、 /etc/rc から実行さ れ
ています。
-bD フォアグラウンドで動作する以外は -bd と同じです。
-bh 継続的なホスト状況データベースの現在の値を表示します。
-bH 継続的なホスト状況データベースから期限切れのエントリを抹消します
。
-bi エイリアスデータベースを初期化します。
-bm 普通にメールを配送します(デフォルト)。
-bp メールキューのリストを表示します。
-bs 標準入出力で RFC821 にもとづいた SMTP プロトコルを使います。この
フラグは、 -ba フラグのうち SMTP 互換の全ての操作を含みます。
-bt アドレスのテストモードで起動します。このモードは対話モードでアド
レスを入力し、処理の過程を表示します。設定ファイルをデバッグする
のに使います。
-bv 名前のチェックだけを行います。メッセージの収集や配送は行いません
。ベリファイモードは、ユーザやメーリングリストが有効かどうかを確
認するために使います。
-Cfile 別の設定ファイルを使います。 sendmail は、別の設定ファイルを使用
する場合は root として実行することはできません。
-dX デバッグ値を X に設定します。
-Ffullname
送り手のフルネームを設定します。
-fname ‘‘from’’ に入る名前(つまり、エンベロープ中の 送 り 手 (envelope
sender) の名前です)を設定します。最初の送信依頼の間に From: ヘッ
ダが失われている場合、このアドレスは From: ヘッダの中でも用い ら
れる場合があります。エンベロープ中の送り手アドレスは、メッセージ
伝送状態の通知の受け手として用いられ、また、Return-Path: ヘッ ダ
に も現れます。 -f は、‘‘trusted’’ なユーザ(普通は root, daemon,
network です)が使うか、送り手が自分自身の名前を指定して使う場 合
の み 指 定することができます。それ以外の場合、X-Authentication-
Warning ヘッダがメッセージに付加されます。
-G メッセージのリレー (ゲートウェイ) 送信。例えば、 rmail が send-
mail を呼ぶときがそうです。
-hN ホップカウントを N に設定します。ホップカウントは、メールが処理
されるたびに増えていきます。ホップカウントが上限に達したとき、メ
ールは「エイリアスがループしている」という旨のエラーメッセージと
いっしょに送り返されます。もしこのフラグが指定されなければ、メッ
セージのなかの ‘‘Received:’’ 行がカウントされます。
-i 入力されるメッセージ中の ‘.’ だけを含む行を無視します。このフラ
グは、データをファイルから読み込むような場合に使用する必要があり
ます。
-L tag syslog メッセージ中で使われる識別子を、指定した tag に設定します
。
-N dsn 配送状況の通知条件を dsn に設定します。 dsn には、 ‘never’ (何も
通 知しない)または、コンマで区切った、 ‘failure’ (配送が失敗した
場合に通知する) ‘delay’ (配送が遅れた場合に通知する) ‘success’ (
配送が正常に行われた場合に通知する) の組み合わせを指定する事がで
きます。
-n エイリアスを行いません。
-O option=value
オプション option を、指定した value に設定します。この形式で は
長いオプション名が使用されます。詳しくは後に記述します。
-ox value
オプション x を、指定した value に設定します。この形式では、一文
字のオプション名しか使用できません。短いオプション名についてはこ
の マニュアルには記述されていません。詳しくは、 Sendmail Instal-
lation and Operation Guide を参照して下さい。
-pprotocol
メッセージを受け取るために利用するプロトコル名を設定します。設定
できるのは、‘‘UUCP’’ のようなプロトコル名だけかプロトコル+ホスト
名、たとえば ‘‘UUCP:ucbvax’’ などです。
-q[time]
キューのなかにあるメッセージを処理する間隔を設定します。 time を
省略した場合は、キューの内容を一度だけしか処理しません。 time は
、 ‘s’ (秒)、 ‘m’ (分)、 ‘h’ (時間)、 ‘d’ (日)、 ‘w’ (週)の単 位
を付けた数字で指定します。たとえば、 ‘-q1h30m’ や ‘-q90m’ は、タ
イムアウトを 1 時間 30 分に設定します。 time が指定され る と 、
sendmail はデーモンとしてバックグラウンドで実行されます。このオ
プションは、問題なく -bd と共に指定可能です。
-qIsubstr
キュー ID の文字列に substr が含まれるジョブのみを処理します。
-qRsubstr
受け手のリストの文字列に substr が含まれるジョブのみを処理します
。
-qSsubstr
送り手の文字列に substr が含まれるジョブのみを処理します。
-R return
メッセージがバウンスした時に返送されるメッセージの量を設定します
。 return パラメータには、メッセージ全体を返送する場合は ‘full’
を、ヘッダのみを返送する場合は ‘hdrs’ を指定します。
-rname -f フラグと同じですが、古い形式です。
-t 受け手をメッセージから読み取ります。To:, Cc:, Bcc: フィールドが
受け手のアドレスとして読み込まれます。Bcc: フィールドはメッセ ー
ジの転送前に削除されます。
-U 最初の(ユーザからの)発送である事を示します。このフラグは、 Mail
や exmh のようなユーザエージェントから呼び出す場合は 必ず指定 す
る 必要があり、 rmail などのネットワーク配送エージェントから呼び
出す場合は、 絶対に指定してはいけません。
-V envid
オリジナルのエンベロープ ID を設定します。これは、DSN をサポート
す るサーバ間では SMTP 上を伝達し、 DSN に従ったエラーメッセージ
の中で返送されます。
-v 詳細モードに移行します。エイリアスの展開などが報告されます。
-X logfile
指定された logfile に、メーラに出入りする情報すべてを記録しま す
。メーラをデバッグする際の最後の手段としてのみ使ってください。非
常に大量の情報があっという間に記録されます。
-- コマンドフラグ処理を停止し、残りの引数をアドレスとして使用します
。
オプション
sendmail には、設定することができる多くの処理オプションがあります。通常
、これらのオプションはシステム管理者のみが使います。オプションは、コ マ
ン ドラインから -o フラグを使って(短いオプション名で)指定したり、 -O フ
ラグを使って(長いオプション名で)指定したり、設定ファイルから指定する こ
と ができます。ここに記述しているのは部分的なもので、コマンド行から指定
する場合に便利な物だけを、長いオプション名で示しています。完全なリスト(
と 詳細)は、 Sendmail Installation and Operation Guide を参照してくださ
い。オプションには以下の物があります。
AliasFile=file
別のエイリアスファイルを使います。
HoldExpensive
接続するのに時間がかかるホストと接続するときは、すぐに接続せず、
リクエストはキューに入れられます。
CheckpointInterval=N
sendmail が、 N 個の配送に成功するたびにキューファイルにチェック
ポイントを設定します(デフォルトは 10 個です)。これによって、シス
テムのクラッシュによって長いメーリングリストの配送が中断されたと
きでも、再開時に同じ人に重複して配送されることを防ぎます。
DeliveryMode=x
配送モードを x に設定します。配送モードには ‘i’ 対話的(同期的)配
送モード、 ‘b’ バックグラウンド(非同期的)配送モード、 ‘q’ キュー
モード(実際の配送は、キューが実行されるときに行われる)、 ‘d’ 延
期 モード( -D オプションで指定されたマップ (デフォルトはホストマ
ップ) に対しデータベースの検索が行われない以外は ‘q’ と同じ)があ
ります。
ErrorMode=x
エラー処理をモード x に設定します。有効なモードとして、 ‘m’ はエ
ラーメッセージを送り返します。 ‘w’ はエラーメッセージを送り手 の
端末に書き出します (送り手がログインしていなければ、メールを返し
ます)。 ‘p’ は、エラーメッセージを端末に表示します(デフォルト)。
‘q’ は、エラーメッセージを捨てます(exit コードだけを返します)。
‘e’ は、BerkNet 用に特別処理をします。もし、モード ‘m’ や ‘w’ を
使っている場合に、エラーとなったメッセージがエラーメールとして送
り返されず、送り手が sendmail を実行しているマシン上のユーザなら
ば 、 メ ッ セ ー ジ の コピーは送り手のホームディレクトリにある
dead.letter に追加されます。
SaveFromLine
メッセージのはじめに UNIX-style の From 行を残します。
MaxHopCount=N
メールがループしていると判断されない、最大のホップ数を指定します
。
IgnoreDots
‘.’ だけを含む行をメッセージの終わりとして解釈しません。
SendMimeErrors
エラーメッセージをMIMEフォーマットで送り返します。設定されていな
い場合は、DSN (Delivery Status Notification: 配送状況通知) SMTP
拡張は無効になります。
ConnectionCacheTimeout=timeout
コネクションキャッシュのタイムアウトを設定します。
ConnectionCacheSize=N
コネクションキャッシュのサイズを設定します。
LogLevel=n
ログレベルを設定します。
MeToo=False
エイリアスに自分自身が含まれていても、‘‘me’’(送り手自身)には送り
ません。
CheckAliases
newaliases(1) コマンドの実行の際、エイリアスの右辺(エイリアス の
値)の有効性をチェックします。
OldStyleHeaders
このオプションが設定されていれば、メッセージが古いスタイルのヘッ
ダを持つことがあることを意味します。このオプションが設定されてい
なければ、このメッセージが新しいスタイルを持っていることが保証さ
れます(2 つのアドレスの間はスペースのかわりにコンマで区切られ ま
す) 。このオプションが設定されていると、ヘッダのフォーマットをた
いていの場合に正しく決定する適応アルゴリズムが用いられます。
QueueDirectory=queuedir
キューメッセージを保存するディレクトリを選択します。
StatusFile=file
指定した名前のファイルに統計情報をセーブします。
Timeout.queuereturn=time
キューのなかの配送されなかったメッセージのタイムアウト時間を設定
します。この時間内に(ホストのダウンなどにより)配送が行われなかっ
たときには、失敗した旨のメッセージが送り返されます。デフォルトは
5 日です。
UserDatabaseSpec=userdatabase
セットした場合、ユーザデータベースを見て、フォワード情報を得ます
。この方法をエイリアス機構の補助として使用する事ができます。この
方法は、データベースが分配されることを意図している点が異なります
。一方、エイリアスは、そのホストローカルでのみ有効です 。 send-
mail が USERDB 付きでコンパイルされていなければ使うことはできま
せん。
ForkEachJob
キューを処理する間、各ジョブごとに fork を行います。メモリが少な
いマシンでは便利です。
SevenBitInput
到着するメッセージを 7 ビットにします (8 ビット目は落します)。
EightBitMode=mode
8 ビットの入力を 7 ビットの宛先へ送る場合の処理方法を mode に設
定します。処理方法には、 m (mime 化) 7 ビット MIME 形式へ変換 、
p (パス) 8 ビットのまま配送(プロトコルには違反します)、 s (厳密)
メッセージをバウンス、があります。
MinQueueAge=timeout
配送の試行の間、ジョブがキューに蓄積される時間を設定します。
DefaultCharSet=charset
文字集合が特に指定されていない 8 ビットデータにラベル付けする 際
に用いる、デフォルトの文字集合を設定します。
DialDelay=sleeptime
コ ネクションの確立が失敗した場合に、再試行までに sleeptime だけ
スリープします。オンデマンドでダイヤル接続するサイトでの使用に便
利です。
NoRecipientAction=action
受け手ヘッダ (To:, Cc:, Bcc:) がない場合の動作を action に設定し
ます。 none メッセージを変更しない、 add-to エンベロープで指定さ
れ た受け手を入れた To: ヘッダを加える、 add-apparrently-to エン
ベロープで指定された受け手を入れた Apparrently-To: ヘッダを加 え
る 、 add-bcc 空の Bcc: ヘッダを加える、 add-to-undisclosed ‘To:
undisclosed-recipients:;’ というヘッダを加える、という動作を指定
できます。
MaxDaemonChildren=N
待 ち受け SMTP デーモンが同時に生成する子プロセスの最大数を N に
設定します。
ConnectionRateThrottle=N
SMTP ポートへの 1 秒当りの最大コネクション数を N に設定します。
エイリアスのなかで最初の文字が ‘|’ で始まるものは、メールの内容をパイプ
で コマンドに送るものと解釈されます。 sendmail に引数の間から空白文字を
削除させないようにする場合は名前をクォートする (" でくくる)必要がありま
す。以下に、例を示します:
msgs: "|/usr/bin/msgs -s"
エ イリアスには、 ‘‘:include:filename’’ という文法もあります。 sendmail
は、メールの受け手のリストを得るために、指定されたファイルを読みます 。
以下に、例を示します:
poets: ":include:/usr/local/lib/poets.list"
上記の例の場合は、 /usr/local/lib/poets.list を読み、‘poets’ のグループ
のためのアドレスリストを作ります。
sendmail は、以下に示すような終了コードを返します。これらのコード は 、
SENDMAIL(8) SENDMAIL(8)
NAME
sendmail - an electronic mail transport agent
SYNOPSIS
sendmail [flags] [address ...]
newaliases
mailq [-v]
hoststat
purgestat
smtpd
DESCRIPTION
Sendmail sends a message to one or more recipients, routing the message
over whatever networks are necessary. Sendmail does internetwork for-
warding as necessary to deliver the message to the correct place.
Sendmail is not intended as a user interface routine; other programs
provide user-friendly front ends; sendmail is used only to deliver pre-
formatted messages.
With no flags, sendmail reads its standard input up to an end-of-file
or a line consisting only of a single dot and sends a copy of the mes-
sage found there to all of the addresses listed. It determines the
network(s) to use based on the syntax and contents of the addresses.
Local addresses are looked up in a file and aliased appropriately.
Aliasing can be prevented by preceding the address with a backslash.
Beginning with 8.10, the sender is included in any alias expansions,
e.g., if ‘john’ sends to ‘group’, and ‘group’ includes ‘john’ in the
expansion, then the letter will also be delivered to ‘john’.
Parameters
-Ac Use submit.cf even if the operation mode does not indicate an
initial mail submission.
-Am Use sendmail.cf even if the operation mode indicates an initial
mail submission.
-Btype Set the body type to type. Current legal values are 7BIT or
8BITMIME.
-ba Go into ARPANET mode. All input lines must end with a CR-LF,
and all messages will be generated with a CR-LF at the end.
Also, the ‘‘From:’’ and ‘‘Sender:’’ fields are examined for the
name of the sender.
-bd Run as a daemon. Sendmail will fork and run in background lis-
tening on socket 25 for incoming SMTP connections. This is nor-
mally run from /etc/rc.
-bD Same as -bd except runs in foreground.
-bh Print the persistent host status database.
-bH Purge expired entries from the persistent host status database.
-bi Initialize the alias database.
-bm Deliver mail in the usual way (default).
-bp Print a listing of the queue(s).
-bP Print number of entries in the queue(s); only available with
shared memory support.
-bs Use the SMTP protocol as described in RFC821 on standard input
and output. This flag implies all the operations of the -ba
flag that are compatible with SMTP.
-bt Run in address test mode. This mode reads addresses and shows
the steps in parsing; it is used for debugging configuration
tables.
-bv Verify names only - do not try to collect or deliver a message.
Verify mode is normally used for validating users or mailing
lists.
-Cfile Use alternate configuration file. Sendmail gives up any
enhanced (set-user-ID or set-group-ID) privileges if an alter-
nate configuration file is specified.
-D logfile
Send debugging output to the indicated log file instead of std-
out.
-dcategory.level...
Set the debugging flag for category to level. Category is
either an integer or a name specifying the topic, and level an
integer specifying the level of debugging output desired.
Higher levels generally mean more output. More than one flag
can be specified by separating them with commas. A list of
numeric debugging categories can be found in the TRACEFLAGS file
in the sendmail source distribution.
The option -d0.1 prints the version of sendmail and the options
it was compiled with.
Most other categories are only useful with, and documented in,
sendmail’s source code.
-Ffullname
Set the full name of the sender.
-fname Sets the name of the ‘‘from’’ person (i.e., the envelope sender
of the mail). This address may also be used in the From: header
if that header is missing during initial submission. The enve-
lope sender address is used as the recipient for delivery status
notifications and may also appear in a Return-Path: header. -f
should only be used by ‘‘trusted’’ users (normally root, daemon,
and network) or if the person you are trying to become is the
same as the person you are. Otherwise, an X-Authentication-
Warning header will be added to the message.
-G Relay (gateway) submission of a message, e.g., when rmail calls
sendmail .
-hN Set the hop count to N. The hop count is incremented every time
the mail is processed. When it reaches a limit, the mail is
returned with an error message, the victim of an aliasing loop.
If not specified, ‘‘Received:’’ lines in the message are
counted.
-i Ignore dots alone on lines by themselves in incoming messages.
This should be set if you are reading data from a file.
-L tag Set the identifier used in syslog messages to the supplied tag.
-N dsn Set delivery status notification conditions to dsn, which can be
‘never’ for no notifications or a comma separated list of the
values ‘failure’ to be notified if delivery failed, ‘delay’ to
be notified if delivery is delayed, and ‘success’ to be notified
when the message is successfully delivered.
-n Don’t do aliasing.
-O option=value
Set option option to the specified value. This form uses long
names. See below for more details.
-ox value
Set option x to the specified value. This form uses single
character names only. The short names are not described in this
manual page; see the Sendmail Installation and Operation Guide
for details.
-pprotocol
Set the name of the protocol used to receive the message. This
can be a simple protocol name such as ‘‘UUCP’’ or a protocol and
hostname, such as ‘‘UUCP:ucbvax’’.
-q[time]
Process saved messages in the queue at given intervals. If time
is omitted, process the queue once. Time is given as a tagged
number, with ‘s’ being seconds, ‘m’ being minutes (default), ‘h’
being hours, ‘d’ being days, and ‘w’ being weeks. For example,
‘-q1h30m’ or ‘-q90m’ would both set the timeout to one hour
thirty minutes. By default, sendmail will run in the back-
ground. This option can be used safely with -bd.
-qp[time]
Similar to -qtime, except that instead of periodically forking a
child to process the queue, sendmail forks a single persistent
child for each queue that alternates between processing the
queue and sleeping. The sleep time is given as the argument; it
defaults to 1 second. The process will always sleep at least 5
seconds if the queue was empty in the previous queue run.
-qf Process saved messages in the queue once and do not fork(), but
run in the foreground.
-qGname
Process jobs in queue group called name only.
-q[!]Isubstr
Limit processed jobs to those containing substr as a substring
of the queue id or not when ! is specified.
-q[!]Qsubstr
Limit processed jobs to quarantined jobs containing substr as a
substring of the quarantine reason or not when ! is specified.
-q[!]Rsubstr
Limit processed jobs to those containing substr as a substring
of one of the recipients or not when ! is specified.
-q[!]Ssubstr
Limit processed jobs to those containing substr as a substring
of the sender or not when ! is specified.
-Q[reason]
Quarantine a normal queue items with the given reason or unquar-
antine quarantined queue items if no reason is given. This
should only be used with some sort of item matching using as
described above.
-R return
Set the amount of the message to be returned if the message
bounces. The return parameter can be ‘full’ to return the
entire message or ‘hdrs’ to return only the headers. In the
latter case also local bounces return only the headers.
-rname An alternate and obsolete form of the -f flag.
-t Read message for recipients. To:, Cc:, and Bcc: lines will be
scanned for recipient addresses. The Bcc: line will be deleted
before transmission.
-V envid
Set the original envelope id. This is propagated across SMTP to
servers that support DSNs and is returned in DSN-compliant error
messages.
-v Go into verbose mode. Alias expansions will be announced, etc.
-X logfile
Log all traffic in and out of mailers in the indicated log file.
This should only be used as a last resort for debugging mailer
bugs. It will log a lot of data very quickly.
-- Stop processing command flags and use the rest of the arguments
as addresses.
Options
There are also a number of processing options that may be set. Nor-
mally these will only be used by a system administrator. Options may
be set either on the command line using the -o flag (for short names),
the -O flag (for long names), or in the configuration file. This is a
partial list limited to those options that are likely to be useful on
the command line and only shows the long names; for a complete list
(and details), consult the Sendmail Installation and Operation Guide.
The options are:
AliasFile=file
Use alternate alias file.
HoldExpensive
On mailers that are considered ‘‘expensive’’ to connect to,
don’t initiate immediate connection. This requires queueing.
CheckpointInterval=N
Checkpoint the queue file after every N successful deliveries
(default 10). This avoids excessive duplicate deliveries when
sending to long mailing lists interrupted by system crashes.
DeliveryMode=x
Set the delivery mode to x. Delivery modes are ‘i’ for interac-
tive (synchronous) delivery, ‘b’ for background (asynchronous)
delivery, ‘q’ for queue only - i.e., actual delivery is done the
next time the queue is run, and ‘d’ for deferred - the same as
‘q’ except that database lookups for maps which have set the -D
option (default for the host map) are avoided.
ErrorMode=x
Set error processing to mode x. Valid modes are ‘m’ to mail
back the error message, ‘w’ to ‘‘write’’ back the error message
(or mail it back if the sender is not logged in), ‘p’ to print
the errors on the terminal (default), ‘q’ to throw away error
messages (only exit status is returned), and ‘e’ to do special
processing for the BerkNet. If the text of the message is not
mailed back by modes ‘m’ or ‘w’ and if the sender is local to
this machine, a copy of the message is appended to the file
dead.letter in the sender’s home directory.
SaveFromLine
Save UNIX-style From lines at the front of messages.
MaxHopCount=N
The maximum number of times a message is allowed to ‘‘hop’’
before we decide it is in a loop.
IgnoreDots
Do not take dots on a line by themselves as a message termina-
tor.
SendMimeErrors
Send error messages in MIME format. If not set, the DSN (Deliv-
ery Status Notification) SMTP extension is disabled.
ConnectionCacheTimeout=timeout
Set connection cache timeout.
ConnectionCacheSize=N
Set connection cache size.
LogLevel=n
The log level.
MeToo=False
Don’t send to ‘‘me’’ (the sender) if I am in an alias expansion.
CheckAliases
Validate the right hand side of aliases during a newaliases(1)
command.
OldStyleHeaders
If set, this message may have old style headers. If not set,
this message is guaranteed to have new style headers (i.e., com-
mas instead of spaces between addresses). If set, an adaptive
algorithm is used that will correctly determine the header for-
mat in most cases.
QueueDirectory=queuedir
Select the directory in which to queue messages.
StatusFile=file
Save statistics in the named file.
Timeout.queuereturn=time
Set the timeout on undelivered messages in the queue to the
specified time. After delivery has failed (e.g., because of a
host being down) for this amount of time, failed messages will
be returned to the sender. The default is five days.
UserDatabaseSpec=userdatabase
If set, a user database is consulted to get forwarding informa-
tion. You can consider this an adjunct to the aliasing mecha-
nism, except that the database is intended to be distributed;
aliases are local to a particular host. This may not be avail-
able if your sendmail does not have the USERDB option compiled
in.
ForkEachJob
Fork each job during queue runs. May be convenient on memory-
poor machines.
SevenBitInput
Strip incoming messages to seven bits.
EightBitMode=mode
Set the handling of eight bit input to seven bit destinations to
mode: m (mimefy) will convert to seven-bit MIME format, p (pass)
will pass it as eight bits (but violates protocols), and s
(strict) will bounce the message.
MinQueueAge=timeout
Sets how long a job must ferment in the queue between attempts
to send it.
DefaultCharSet=charset
Sets the default character set used to label 8-bit data that is
not otherwise labelled.
DialDelay=sleeptime
If opening a connection fails, sleep for sleeptime seconds and
try again. Useful on dial-on-demand sites.
NoRecipientAction=action
Set the behaviour when there are no recipient headers (To:, Cc:
or Bcc:) in the message to action: none leaves the message
unchanged, add-to adds a To: header with the envelope recipi-
ents, add-apparently-to adds an Apparently-To: header with the
envelope recipients, add-bcc adds an empty Bcc: header, and add-
to-undisclosed adds a header reading ‘To: undisclosed-recipi-
ents:;’.
MaxDaemonChildren=N
Sets the maximum number of children that an incoming SMTP daemon
will allow to spawn at any time to N.
ConnectionRateThrottle=N
Sets the maximum number of connections per second to the SMTP
port to N.
In aliases, the first character of a name may be a vertical bar to
cause interpretation of the rest of the name as a command to pipe the
mail to. It may be necessary to quote the name to keep sendmail from
suppressing the blanks from between arguments. For example, a common
alias is:
msgs: "|/usr/bin/msgs -s"
Aliases may also have the syntax ‘‘:include:filename’’ to ask sendmail
to read the named file for a list of recipients. For example, an alias
such as:
poets: ":include:/usr/local/lib/poets.list"
would read /usr/local/lib/poets.list for the list of addresses making
up the group.
Sendmail returns an exit status describing what it did. The codes are
defined in
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa