Postfix Rejects My Mail Saying Host is Unknown

Discussion in 'Server Operation' started by Dan Allen, Feb 1, 2018.

  1. Dan Allen

    Dan Allen New Member

    When sending mail, Postfix rejects with this message:
    <mail.example.net>: Helo command rejected: Host not found
    !! Expected response code 250/251/252 but got code "450", with message "450 4.7.1 <mail.example.net>: Helo command rejected: Host not found" (code: 450)
    >> RSET
    << 250 2.0.0 Ok
    That seems pretty unreasonable to me, because this is in /etc/postfix/main.cf
    myhostname = mail.example.net
    mydomain = example.net

    myorigin = mydomain
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    mydestination = $myhostname
    relayhost =
    mynetworks = mail.example.net 192.168.15.39 127.0.0.0/8
    smtpd_helo_restrictions= reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname,reject_unknown_helo_hostname
    smtpd_recipient_restrictions=
    permit_mynetworks,
    permit_sasl_authenticated,
    check_client_access hash:/etc/postfix/rbl_override,
    reject_unauth_destination,
    reject_unknown_recipient_domain,
    reject_unauth_destination,
    reject_rbl_client sbl.spamhaus.org,
    permit
    home_mailbox = Maildir/​

    Any suggestions on how I can get this straightened out would be immensely appreciated.

    Thank you.
     
  2. minimaLMind

    minimaLMind New Member

    change mydestination to just "mydestination ="
    (probably not the official correct way but this worked for me)
     

Share This Page