smtp.banner.invalid_fqdn

Invalid Hostname in SMTP Banner

What we check

We parse the SMTP banner (the 220 greeting line) and check whether the hostname it presents is a valid fully qualified domain name (FQDN). RFC 5321 requires the banner to contain the server's FQDN.

What this finding means

The SMTP banner contains a hostname that is not a valid FQDN — it may be a bare hostname without a domain part (e.g., localhost, mail), an IP address without brackets, or a syntactically invalid string. This violates RFC 5321 §4.1.1.1.

Why it matters

How to fix

  1. Set the banner hostname. For Postfix:

    # /etc/postfix/main.cf
    smtpd_banner = mail.example.com ESMTP
    

    The hostname should be the server's public FQDN — the same name used in MX records and PTR records.

  2. Reload Postfix:

    postfix reload
    
  3. Verify the banner:

    telnet mail.example.com 25
    # Expected: 220 mail.example.com ESMTP ...
    

How it's graded

An invalid banner FQDN carries a 10-point penalty in the MX category. See Grading Methodology for the full scoring model.

Evidence example

S: 220 localhost ESMTP Postfix
     ^^^^^^^^^ not a valid FQDN — missing domain part

References