ALIASES(5) ALIASES(5) 名称 aliases - sendmail のためのエイリアスファイル 書式 aliases 解説 こ のファイルには、 sendmail が使用する、ユーザ ID の別名を記述します。 このファイルは /etc/mail に置かれる、下記の形式の一連の行です。 name: addr_1, addr_2, addr_3, . . . name はエイリアスする名前、 addr_n はその名前の別名です。 addr_n は、別 の 別名、ローカルユーザ名、ローカルファイル名、コマンド、インクルードフ ァイル、外部アドレスのいずれかです。 ローカルユーザ名 username username は、getpwnam(3) で使用可能であることが必要です。 ローカルファイル名 /path/name フルパス名 (スラッシュ (/) で開始) で指定されたファイルに、メ ッ セージが追加されます。 コマンド |command コ マンドはパイプシンボル (|) で開始し、メッセージを標準入力から 受け取ります。 インクルードファイル :include: /path/name パス名にあるエイリアスが、 name のエイリアスに追加されます。 E-Mail アドレス user@domain RFC 822 書式の e-mail アドレス。 空白ではじまる行は継続行です。行を続ける別の方法として、改行の前にバ ッ クスラッシュを置く方法があります。 # ではじまる行はコメントです。 エ イリアスはローカル名でのみ適用されます。ループは起りえません。なぜな ら、メッセージは同じ人に複数回送られないからです。 エイリアス適用後、ローカルかつ有効な受信者で ‘‘.forward’’ ファイルを ホ ー ムディレクトリに持つ人のメッセージは、このファイルに定義された一連の ユーザに転送されます。 これは単なる生のデータファイルで す; 実 際 の エ イ リ ア ス 情 報 は newaliases(1) プ ログラムを使用することにより、バイナリ形式でファイル /etc/mail/aliases.db に置かれます。aliases ファイルを更新したときには、 そ の内容を反映させるために、 newaliases コマンドを実行する必要がありま す。 関連項目 newaliases(1), dbm(3), dbopen(3), sendmail(8) SENDMAIL Installation and Operation Guide. SENDMAIL An Internetwork Mail Router バグ sendmail を NEWDB サポート付きではなく DBM サポート付きでコンパイルした 時 に は 、 エ イ リアス 1 つがおよそ 1000 バイトまでの情報に限るという dbm(3) の制約が問題となるかもしれません。このような場合に長いエイリアス を 使用するためには ‘‘連鎖’’ を使用します; これは別名の最後の名前をダミ ーの名前にし、これを引続き別の別名として使用するというものです。 歴史 aliases ファイルフォーマットは 4.0BSD に登場しました。 1Date: 2000/12/14 23:08:15 1 ALIASES(5)
ALIASES(5) ALIASES(5) NAME aliases - aliases file for sendmail SYNOPSIS aliases DESCRIPTION This file describes user ID aliases used by sendmail. The file resides in /etc and is formatted as a series of lines of the form name: addr_1, addr_2, addr_3, . . . The name is the name to alias, and the addr_n are the aliases for that name. addr_n can be another alias, a local username, a local filename, a command, an include file, or an external address. Local Username username The username must be available via getpwnam(3). Local Filename /path/name Messages are appended to the file specified by the full pathname (starting with a slash (/)) Command |command A command starts with a pipe symbol (|), it receives messages via standard input. Include File :include: /path/name The aliases in pathname are added to the aliases for name. E-Mail Address user@domain An e-mail address in RFC 822 format. Lines beginning with white space are continuation lines. Another way to continue lines is by placing a backslash directly before a newline. Lines beginning with # are comments. Aliasing occurs only on local names. Loops can not occur, since no message will be sent to any person more than once. If an alias is found for name, sendmail then checks for an alias for owner-name. If it is found and the result of the lookup expands to a single address, the envelope sender address of the message is rewritten to that address. If it is found and the result expands to more than one address, the envelope sender address is changed to owner-name. After aliasing has been done, local and valid recipients who have a ‘‘.forward’’ file in their home directory have messages forwarded to the list of users defined in that file. This is only the raw data file; the actual aliasing information is placed into a binary format in the file /etc/aliases.db using the program newaliases(1). A newaliases command should be executed each time the aliases file is changed for the change to take effect. SEE ALSO newaliases(1), dbm(3), dbopen(3), db_open(3), sendmail(8) SENDMAIL Installation and Operation Guide. SENDMAIL An Internetwork Mail Router. BUGS If you have compiled sendmail with DBM support instead of NEWDB, you may have encountered problems in dbm(3) restricting a single alias to about 1000 bytes of information. You can get longer aliases by ‘‘chaining’’; that is, make the last name in the alias be a dummy name which is a continuation alias. HISTORY The aliases file format appeared in 4.0BSD. $Date: 2004/07/12 05:39:21 $ ALIASES(5)
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa