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

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

関連記事

CentOS6のcrontab

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

/etc/passwd,/etc/groupだけでなく、LDAPのユーザー、グループも表示させる場合のコマンド

photo credit: *n3wjack’s world in pixels via photopin cc ■/etc/passwd,/etc/groupだけでなく、LDAPのユーザ …

OpenVPNで「Options error」

photo credit: solracarevir via photopin cc ■OpenVPNで「Options error」   事象: OpenVPNでの接続時に画面に何も表示さ …

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

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

Postfix で「inet_protocols: IPv6 support is disabled」の警告が表示される

photo credit: liwyatan via photopin cc ■Postfix で「inet_protocols: IPv6 support is disabled」の警告が表示される …