以前からRgreyを利用させてもらってましたが、
今回、Mac-miniにサーバを移動したのを機にして、
taRgreyに変更しました。
今のところPostfixにかけているオプションはこんな感じ。
# Basicmessage_size_limit = 20971520
transport_maps = hash:/opt/local/etc/postfix/transport
local_recipient_maps = btree:/opt/local/etc/postfix/local_recipient_maps# SMTP Auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth# for reject unexact mail
smtpd_helo_required = yes
disable_vrfy_command = yes# for tls
smtpd_use_tls = yes
smtpd_tls_cert_file = /opt/local/etc/key/mail.pem
smtpd_tls_key_file = /opt/local/etc/key/mail.pem
smtpd_tls_session_cache_database = btree:/opt/local/etc/postfix/smtpd_scache
tls_random_source = dev:/dev/urandom# for taRgrey
smtpd_restriction_classes =
check_sender_apacheinfo
check_helo_19info
check_sender_apacheinfo =
check_sender_access regexp:$config_directory/check_sender_apacheinfo
check_helo_19info =
check_helo_access regexp:$config_directory/check_helo_19info# for reject SPAM
smtpd_sender_restrictions =
permit_mynetworks
# check_sender_access hash:/opt/local/etc/postfix/sender_access
reject_non_fqdn_sender
reject_unknown_sender_domain
# reject_unverified_sendersmtpd_client_restrictions =
permit_mynetworks
reject_unknown_sender_domain
reject_non_fqdn_sendersmtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
permit_auth_destination
reject_unauth_destination
check_recipient_access hash:$config_directory/whitelist_recipient
check_client_access hash:$config_directory/whitelist_client
check_client_access regexp:$config_directory/permit_client_nots25r
reject_invalid_hostname
reject_non_fqdn_sender
reject_unknown_sender_domain
reject_non_fqdn_recipient
reject_multi_recipient_bounce
check_helo_access regexp:$config_directory/reject_helo
check_sender_ns_access hash:$config_directory/reject_ns
check_sender_mx_access hash:$config_directory/reject_mx
check_sender_ns_access regexp:$config_directory/check_ns
check_policy_service inet:60000
check_client_access regexp:$config_directory/prepend_client
permit
smtpd_data_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
check_recipient_access hash:$config_directory/whitelist_recipient
check_client_access hash:$config_directory/whitelist_client
check_client_access regexp:$config_directory/permit_client_nots25r
check_policy_service inet:60000
permit
本当はreject_unverified_senderを入れたいんだけど、
これが強烈過ぎてAmazonをはじいたりしてたので、
とりあえずチェックを外しています。
いまのところ、上記に加え、Postgreyがtarpit + greylistingで動いています。

最近のコメント