我已经安装了ratelimit-policyd来pipe理我的Postfix邮件服务器上的saslauthentication用户。 守护进程似乎运行正常。
但是,与sasl用户一起,日志会显示大量没有sasl_usernames的protocol_state = RCPT条目。
这是什么原因?
Sat Oct 14 18:19:41 2017 New thread started Sat Oct 14 18:19:41 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:42 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:43 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:45 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:48 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:50 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:52 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:54 2017 protocol_state=RCPT sasl_username= Sat Oct 14 18:19:56 2017 Master: cache committed and flushed Sat Oct 14 18:20:04 2017 TID: 4 accepted from 127.0.0.1 ... Sat Oct 14 18:20:04 2017 Looking for johndoe Sat Oct 14 18:20:04 2017 Inserting johndoe, 300, 1, 1508022000 Sat Oct 14 18:20:04 2017 : client=mail-pf0-f174.google.com[209.85.192.174], sasl_method=PLAIN, sasl_username=johndoe, recipient_count=1, curr_count=1/300, status=INSERT Sat Oct 14 18:20:06 2017 New thread started
我在我的main.cf中使用这个:
smtpd_sender_restrictions = check_client_access hash:/etc/postfix/blacklist, permit_mynetworks, reject_unknown_sender_domain, check_policy_service inet:127.0.0.1:10032