Postfix バーチャルドメイン対応


この章を始める前に下記の設定が必要です
「Postfix Dovecot インストール」
ヒント
追加するドメイン名:example.com システムアカウント:user_name メールアドレス  :user_name@example.com
バーチャルドメイン設定
[root@centos ~]# vi /etc/postfix/main.cf
↓最終行に下記を記入
# Virtual configuration
virtual_alias_maps = hash:/etc/postfix/virtual
[root@centos ~]# vi /etc/postfix/virtual
↓最終行に下記を記入
example.com		anything
user_name@example.com	user_name
[root@centos ~]# postmap /etc/postfix/virtual [root@centos ~]# /etc/rc.d/init.d/postfix reload
ヒント
/etc/postfix/virtualの1行目左はドメイン名、右は慣習としてanythingを記入。 /etc/postfix/virtualの2行目左はメールアドレス、右はシステムのユーザー名を記入。
Home PageTop