ユーザ用ツール

サイト用ツール


centos:mail_command

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
centos:mail_command [2014/02/27 06:24] – centos:mailコマンド renamed to centos:mail_command clownclowncentos:mail_command [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1
行 51: 行 51:
  
 # rm -rf /var/spool/mail/root # rm -rf /var/spool/mail/root
 +</code>
 +
 +===== mail送信  =====
 +==== CentOS5.x ====
 +  - s:SUBJECT
 +  -  :TO
 +  - f:FROM
 +メール本文入力後、ピリオドで送信
 +<code>
 +# mail -s "SUBJECT" clown@example.com -- -f FROM@mail.com
 +mail body
 +.
 +EOT
 +</code>==== CentOS6.x ====
 +  - s:SUBJECT
 +  - r:FROM
 +  -  :TO
 +メール本文入力後、ピリオドで送信
 +<code>
 +# mail -s "SUBJECT" -r FROM@mail.com clown@example.com
 +mail body
 +.
 +EOT
 </code> </code>
  
行 130: 行 153:
 </code> </code>
  
 +===== メール送信時にIPv6の警告がでる =====
 +
 +mailコマンドで送信時に次のような警告が出る。
 +<code>
 +send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
 +send-mail: warning: inet_protocols: configuring for IPv4 support only
 +postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
 +postdrop: warning: inet_protocols: configuring for IPv4 support only
 +</code>
 +プロトコルはIPv4とIPv6が両方とも対応になっているようなので、設定ファイル(/etc/postfix/main.cf)を開き、ipv4 だけにする。
 +<code>
 +# vi /etc/postfix/main.cf
 +</code>
 +<code>
 +#inet_protocols = all
 +inet_protocols = ipv4
 +</code>
 +デーモン再起動。
 +<code>
 +# /etc/init.d/postfix restart
 +</code>
centos/mail_command.1393482269.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)