Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the amp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function amp_has_paired_endpoint was called incorrectly. サービスが登録される前に関数を呼び出すことはできません。 The service ID "paired_routing" is not recognized and cannot be retrieved. Please see Debugging in WordPress for more information. (This message was added in version 2.1.1.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (または `amp_is_request()`、正式には `is_amp_endpoint()`) の呼び出しが早すぎたため、正常に動作しません。 WordPress は現在、フックをしていません。 `wp`アクションの前にこの関数を呼び出すと、`WP_Query`と照会されたオブジェクトにアクセスできず、それが AMP 応答であるかどうかを判断するため、`amp_skip_post()`フィルターと AMP 対応トグルは考慮されません。 この関数は、プラグインのソースを特定するために (plugins_loaded アクションの前に) あまりにも早く呼び出されました。 Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function amp_has_paired_endpoint was called incorrectly. サービスが登録される前に関数を呼び出すことはできません。 The service ID "paired_routing" is not recognized and cannot be retrieved. Please see Debugging in WordPress for more information. (This message was added in version 2.1.1.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (または `amp_is_request()`、正式には `is_amp_endpoint()`) の呼び出しが早すぎたため、正常に動作しません。 WordPress は現在、フックをしていません。 `wp`アクションの前にこの関数を呼び出すと、`WP_Query`と照会されたオブジェクトにアクセスできず、それが AMP 応答であるかどうかを判断するため、`amp_skip_post()`フィルターと AMP 対応トグルは考慮されません。 この関数は、プラグインのソースを特定するために (plugins_loaded アクションの前に) あまりにも早く呼び出されました。 Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (または `amp_is_request()`、正式には `is_amp_endpoint()`) の呼び出しが早すぎたため、正常に動作しません。 WordPress is currently doing the `plugins_loaded` hook. `wp`アクションの前にこの関数を呼び出すと、`WP_Query`と照会されたオブジェクトにアクセスできず、それが AMP 応答であるかどうかを判断するため、`amp_skip_post()`フィルターと AMP 対応トグルは考慮されません。 スラッグが「`google-analytics-for-wordpress`」のプラグインが原因のようです。投稿者に連絡してください。 Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (または `amp_is_request()`、正式には `is_amp_endpoint()`) の呼び出しが早すぎたため、正常に動作しません。 WordPress is currently doing the `plugins_loaded` hook. `wp`アクションの前にこの関数を呼び出すと、`WP_Query`と照会されたオブジェクトにアクセスできず、それが AMP 応答であるかどうかを判断するため、`amp_skip_post()`フィルターと AMP 対応トグルは考慮されません。 スラッグが「`google-analytics-for-wordpress`」のプラグインが原因のようです。投稿者に連絡してください。 Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170
postfixで特定のトップレベルドメインからのメールを拒否する - シスメモ

シスメモ

Linux(CentOS)、Windows(サーバー/クライアント)、Yamaha RTX、その他の技術メモ

CentOS CentOS6 Linux Postfix

postfixで特定のトップレベルドメインからのメールを拒否する

投稿日:

photo credit: Alex.W IMG_0466 via photopin (license)

 

〜.topドメインからのスパムが増えてきたため、topドメインからのメールは問答無用で弾きたい!ということで以下の設定を行いました。

1) /etc/postfix内にreject_senderファイルを作成する

※〜.topドメイン自体を拒否する場合:

/\.top$/ REJECT

 

2)/etc/postfix/main.cfに以下の記述を追記する

smtpd_sender_restrictions =

regexp:/etc/postfix/reject_sender

 

3)Postfixを再起動する

 

以上で、〜.topドメインからのメールを拒否することができました。

 



-CentOS, CentOS6, Linux, Postfix
-,

執筆者:


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

関連記事

rsync実行中に「cannot allocate memory」エラーが発生

photo credit: ChadScott via photopin cc 【環境】 サーバー:CentOS6(VMware ESXi5上のゲスト) バックアップ先:Windows7のPCに接続し …

CentOS6のcrontab

photo credit: hetaru via photopin cc ■CentOS6のcrontabについて centos6でcentos5以前のようにジョブを定時に実行するには、「cronie …

no image

DRBDでスプリットブレインが発生した場合

■DRBDでスプリットブレインが発生した場合 以下を実施することにより、接続できた😉 セカンダリノード: drbdadm — –discard-my-data connect …

VMware ESXi上のOpenVPN(ブリッジモード)

photo credit: ChadScott via photopin cc VMware ESXi上でOpenVPN(ブリッジモード)を導入しましたが、クライアントから 接続はできるものの、全く通 …

BackWPupで"Connection time-out" The HTTP response test get a false http status ()

photo credit: Peregrino Will Reign via photopin cc WordPressのバックアップとしてBackWPupを使い始めたのですが、ジョブ作成後のバックア …