Postfixの設定

インストール後すぐには、postfixが使える状態ではない。 まずは、smtpは、postfixを使うことを宣言しないと、いけない。そこで、以下のコマンドを入力するし、posfixを指定する。 #update-alternatives –config mta 2 プログラムがあり ‘mta’を提供します。 選択 コマンド ———————————————– *+ 1 /usr/sbin/sendmail.sendmail 2 /usr/sbin/sendmail.postfix Enterを押して現在の選択[+]を保持するか、選択番号を入力します: 2 次は、conf ファイルの設定。 #vi /etc/postfix/main.cf 以下のように変更 --------ここから-------------- myhostname = あなたのサーバー名 mydomain = あなたのドメイン名 mydomain = $mydomain inet_interfaces = all #inet_interfaces = $myhostname #inet_interfaces = $myhostname, localhost #inet_interfaces = localhost #mydestination = $myhostname, localhost.$mydomain, localhost mydestination = $myhostname, localhost.$mydomain, [...]

virtual(バーチャル)ホストの設定~postfix

postfixをバーチャル・ドメインで使用する . # vi /etc/postfix/main.cf 最後部あたりに virtual_alias_maps = hash:/etc/postfix/virtual を記述。 # cd /etc/postfix #vi /etc/postfix/virtual 説明が、いろいろ書かれてるが・・・ず~と、最下部へ移動。 使用バーチャルドメイン anything 使用アカウント@givehands.jp アカウント のように記述。 たとえば、バーチャル・ドメインがaaaaaaa.comだったら・・・・・ aaaaaaa.com anything test@aaaaaaa.com admin test2@ aaaaaaa.co root みたいに記述すればOK。 #/etc/rc.d/init.d/postfix reload