指定した送信元からのみ中継(転送を許可) # vim /etc/postfix/main.cf smtpd_client_restrictions = check_sender_access regexp:/etc/postfix/allow_client,reject 意味 check_sender_access: regexp:/etc/postfix/allow_client: allow_clientの中身 /hogehoge@gmail.com/ OK DBファイルを作成する。 # postmap /etc/postfix/allow_client ※newaliasコマンドでDBを作成するとエラーが出るので注意 # /etc/init.d/postfix restart ちなみにDBを作成しただけではpostfixを再起動する必要はない。 これでfromがhogehoge@gmail.comからのみ送信が可能になる。
|