What the documentation says is incorrect. Under '3.6 Domains' of RFC
2821, it says a host name can be an address literal. So, if I use
'reject_non_fqdn_helo_host name' and a SMTP client uses an address
literal for its host name, will Postfix reject the mail?

Of course not.

According to my mail log file, it does:

Jun  7 19:31:46 n-AOD270 postfix/smtpd[17792]: NOQUEUE: reject: RCPT
from unknown[37.212.64.248]: 504 5.5.2 <37.212.64.248>: Helo command
rejected: need fully-qualified hostname; from=<>
to=<n...@nikolaskallis.com> proto=SMTP helo=<37.212.64.248>

Notice helo equals '37.212.64.248' - an address literal.

Please READ the RFC. That form is INVALID.

I think you are referring to the square brackets - I knew about them. I didn't pick up the logic in the system message. Sorry.


Never the less, '37.212.64.248' is not a domain name, so 'reject_non_fqdn_helo_host name' should not have taken action over it.

'37.212.64.248' should have been '[37.212.64.248]', and was therefore malformed. 'reject_invalid_helo_hostname' should have handled it.



Nik

Reply via email to