Hi all!
These are my settings (important parts):
---------------------------------------------------------------------
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_helo_hostname,
permit
smtpd_sender_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
permit
smtpd_recipient_restrictions =
... (irrelevant for this question)
---------------------------------------------------------------------
I don't have any other *_restrictions rules.
I just received a SPAM mail as follows:
---------------------------------------------------------------------
Return-Path: <[email protected]>
X-Original-To: *****@*********
Delivered-To: *****@************
Received: from localhost (localhost [127.0.0.1])
by mail.*********** (Postfix) with ESMTP id 7038A14E2A17B
for <*****@*********>; Thu, 19 May 2016 20:17:50 +0900 (JST)
X-Virus-Scanned: Debian amavisd-new at ****.***********.***
Received: from ****.***********.*** ([127.0.0.1])
by localhost (****.***********.*** [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id PAUsXE3C1PR7 for <*****@*********>;
Thu, 19 May 2016 20:17:41 +0900 (JST)
Received: from [190.220.162.210] (unknown [190.220.162.210])
<---------------------- *
by ****.***********.*** (Postfix) with ESMTP id DD65118A2A17A
for <*****@*********>; Thu, 19 May 2016 20:17:39 +0900 (JST)
Received: by ****.********.*** (Postfix, from userid 342)
id 457A533DBF; Thu, 19 May 2016 08:17:34 -0300
To: *****@*********
Subject: Thank you!
---------------------------------------------------------------------
In my understanding, "reject_non_fqdn_sender" should have blocked this
email as the sender's hostname is "unknown". If that is right, then why it
is not working? If I'm mistaken, then what do I need to block mails coming
from "unknown" sources?
Thank you in advance!